-
Notifications
You must be signed in to change notification settings - Fork 431
Open
Description
http-streaming/src/playlist-controller.js
Lines 429 to 450 in 33c61b7
switchMedia_(playlist, cause, delay) { const oldMedia = this.media(); const oldId = oldMedia && (oldMedia.id || oldMedia.uri); const newId = playlist && (playlist.id || playlist.uri); if (oldId && oldId !== newId) { this.logger_(`switch media ${oldId} -> ${newId} from ${cause}`); const metadata = { renditionInfo: { id: newId, bandwidth: playlist.attributes.BANDWIDTH, resolution: playlist.attributes.RESOLUTION, codecs: playlist.attributes.CODECS }, cause }; this.trigger({type: 'renditionselected', metadata}); this.tech_.trigger({type: 'usage', name: `vhs-rendition-change-${cause}`}); } this.mainPlaylistLoader_.media(playlist, delay); } - console error occurs at line 439
Uncaught TypeError: Cannot read properties of null (reading 'attributes')
at PlaylistController.switchMedia_ (video.es.js:52054:31)
at PlaylistController.fastQualityChange_ (video.es.js:52668:10)
Reproduce step:
- Play one video
- After that video ended, play the second video
- Error occurs just after video changed
Metadata
Metadata
Assignees
Labels
No labels