Skip to content

Changing quality on a live stream causes null exception #9109

@gabebond7

Description

@gabebond7

When switching video quality while a live stream video is playing, it throws:

chunk-JC4WVIWU.js?v=0d0a2935:10846 VIDEOJS: ERROR: TypeError: Cannot read properties of undefined (reading 'duration')
at MediaSequenceSync.calculateBaseTime_ (chunk-JC4WVIWU.js?v=0d0a2935:46130:29)
at MediaSequenceSync.update (chunk-JC4WVIWU.js?v=0d0a2935:46043:62)
at SegmentLoader.playlist (chunk-JC4WVIWU.js?v=0d0a2935:43134:31)
at PlaylistController.handleUpdatedMediaPlaylist (chunk-JC4WVIWU.js?v=0d0a2935:48698:29)
at PlaylistLoader. (chunk-JC4WVIWU.js?v=0d0a2935:48611:12)
at data.dispatcher (chunk-JC4WVIWU.js?v=0d0a2935:11686:31)
at trigger (chunk-JC4WVIWU.js?v=0d0a2935:11762:25)
at PlaylistLoader.trigger (chunk-JC4WVIWU.js?v=0d0a2935:11958:5)
at PlaylistLoader.haveMetadata (chunk-JC4WVIWU.js?v=0d0a2935:31736:10)
at chunk-JC4WVIWU.js?v=0d0a2935:31599:12

"video.js": "^8.23.4",
"@mycujoo/videojs-hls-quality-selector": "^1.1.5-rc.4",

tried other quality selector as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions