You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering a playback issue with Video.js when using a dynamic (Live) MPD DASH manifest for a live video stream. The video stream is an MP4 file segmented according to DASH standards and plays the initial segments correctly. However, Video.js seems to have difficulty handling subsequent updates to the MPD, resulting in the error:
VIDEOJS: ERROR: TypeError: Cannot use 'in' operator to search for 'default' in undefined
at video.js:42423:19
at video.js:40328:11
at Array.forEach (<anonymous>)
at forEachMediaGroup (video.js:40321:28)
at removeOldMediaGroupLabels (video.js:42422:5)
at updateMain (video.js:42483:5)
at DashPlaylistLoader.handleMain_ (video.js:42939:19)
at DashPlaylistLoader.refreshMedia_ (video.js:43034:14)
at DashPlaylistLoader.<anonymous> (video.js:42565:14)
at data.dispatcher (video.js:2206:33)
Live Stream Setup: Live video stream from an MP4 file segmented on the fly.
Video stream is video-only (no audio).
MPD Configuration: The MPD is dynamic with minimumUpdatePeriod="PT5.000S" (updates every 5 seconds).
MPD uses SegmentURL and indexRange for segment information.
Playback Behavior: The initial segments from the first MPD are played correctly.
Video.js fails to recognize updates to the MPD and throws the error, preventing playback of new segments.
###Troubleshooting Steps Taken:
Verified that the initial MPD and video segments are playable. the mpd is DASH-
IF Conformant.
Confirmed the API is updating the MPD dynamically with the expected update period specified by minimumUpdatePeriod .
###Questions:
How can I ensure Video.js properly handles updates to the dynamic MPD and refreshes the segments accordingly? Are there specific methods or events within Video.js that can be leveraged for this purpose?
Are there any known compatibility issues with Video.js and dynamic MPD updates?
Could there be any potential issues with the way the updated MPD is being generated by the server-side logic?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description:
I'm encountering a playback issue with Video.js when using a dynamic (Live) MPD DASH manifest for a live video stream. The video stream is an MP4 file segmented according to DASH standards and plays the initial segments correctly. However, Video.js seems to have difficulty handling subsequent updates to the MPD, resulting in the error:
code I use:
###Context:
Live Stream Setup: Live video stream from an MP4 file segmented on the fly.
Video stream is video-only (no audio).
MPD Configuration: The MPD is dynamic with minimumUpdatePeriod="PT5.000S" (updates every 5 seconds).
MPD uses SegmentURL and indexRange for segment information.
Playback Behavior: The initial segments from the first MPD are played correctly.
Video.js fails to recognize updates to the MPD and throws the error, preventing playback of new segments.
###Troubleshooting Steps Taken:
Verified that the initial MPD and video segments are playable. the mpd is DASH-
IF Conformant.
Confirmed the API is updating the MPD dynamically with the expected update period specified by
minimumUpdatePeriod
.###Questions:
How can I ensure Video.js properly handles updates to the dynamic MPD and refreshes the segments accordingly? Are there specific methods or events within Video.js that can be leveraged for this purpose?
Are there any known compatibility issues with Video.js and dynamic MPD updates?
Could there be any potential issues with the way the updated MPD is being generated by the server-side logic?
Beta Was this translation helpful? Give feedback.
All reactions