videojs-player
videojs-player copied to clipboard
Cannot read property 'duration' of undefined
Hd video play after a while 。
video.cjs.js:440 VIDEOJS: ERROR: TypeError: Cannot read property 'duration' of undefined
at sumDurations (playlist.js:217)
at SyncController.getExpiredTime (sync-controller.js:253)
at MasterPlaylistController.onSyncInfoUpdate_ (master-playlist-controller.js:1099)
at SegmentLoader.
遇到同样的问题,我发现是m3u8文件的EXT-X-MEDIA-SEQUENCE不连续造成的
Yes it is related to EXT-X-MEDIA-SEQUENCE continuity.
Occurs every time when the current m3u8 playlist resets, that is when a live stream is restarted and file indexes in the playlist change from _123.ts to _0.ts.
Any way to handle catch this error? Seems that #6280 is wrong as event does not get fired.