videojs / mpd-parser

https://videojs.github.io/mpd-parser/
Other
78 stars 54 forks source link

Audio only MPD cannot be converted using toM3u8 #93

Closed TcT2k closed 3 years ago

TcT2k commented 4 years ago

I'm trying to load an audio only MPD in video.js using http-streaming.

I've traced down the issue to the following line in the mpd-parser : https://github.com/videojs/mpd-parser/blob/c4c0418b0fe10d78fa43ab4e24220c032b525752/src/toM3u8.js#L271

master.playlists is only initialized from the videoPlaylists (which are empty on an audio only MPD). I've tried simply adding addSegmentInfoFromSidx(audioPlaylists, sidxMapping) as a quick workaround in the debugger, but that crashes the tab in chrome and triggers out of memory on firefox (after some time). I'll try to investigate this further but would be thankful for any input regarding the issue.