videojs-player icon indicating copy to clipboard operation
videojs-player copied to clipboard

Cannot read property 'duration' of undefined

Open shiliangL opened this issue 5 years ago • 2 comments

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. (master-playlist-controller.js:662) at SegmentLoader.data.dispatcher (video.cjs.js:1967) at trigger (video.cjs.js:2099) at SegmentLoader../node_modules/video.js/dist/video.cjs.js.EventTarget.trigger (video.cjs.js:2593) at SegmentLoader.playlist (segment-loader.js:477) at PlaylistLoader. (master-playlist-controller.js:471) at PlaylistLoader.data.dispatcher (video.cjs.js:1967)

shiliangL avatar Jul 01 '19 09:07 shiliangL

遇到同样的问题,我发现是m3u8文件的EXT-X-MEDIA-SEQUENCE不连续造成的

ViolaGuo avatar Jan 15 '20 11:01 ViolaGuo

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.

mms- avatar Jun 14 '20 12:06 mms-