time display change, chapter length check fix
This commit is contained in:
parent
b0b9ab1e19
commit
180d47f04b
2 changed files with 8 additions and 3 deletions
|
@ -258,7 +258,7 @@ var videoJSextension = {
|
|||
_V_.merge( _V_.ControlBar.prototype.options.components, { ResolutionSelectorButton : {} } );
|
||||
|
||||
//chceck if chapters exist and add chapter selector
|
||||
if (item.Chapters.length > 0) {
|
||||
if (item.Chapters && item.Chapters.length) {
|
||||
// Put together the videojs source arrays for each available chapter
|
||||
$.each( item.Chapters, function( i, chapter ) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue