Subtitles in multiperiod throws "Error creating fragmentedText source buffer".
Created by: panofr
Environment
-
The MPD passes the DASH-IF Conformance Tool on http://dashif.org/conformance.html -
The stream has correct Access-Control-Allow-Origin headers (CORS) -
There are no network errors such as 404s in the browser console when trying to play the stream -
The issue observed is not mentioned on https://github.com/Dash-Industry-Forum/dash.js/wiki/FAQ -
The issue occurs in the latest reference client on http://reference.dashif.org/dash.js/ and not just on my page
- Link to playable MPD file:http://maintenance.anywarevideo.com:8140/subtitles.mpd
- Dash.js version:2.7.0
- Browser name/version: Chrome 67.0.3396.79
- OS name/version: Windows 10 version 1709
Steps to reproduce
- Load http://maintenance.anywarevideo.com:8140/subtitles.mpd in reference client.
- Wait for second period or seek directly into it.
- An error is displayed "Error creating fragmentedText source buffer." and subtitles will disapear even if we seek again in first period.
Observed behaviour
I can't get any subtitle after changing the period, moreover even disable and enable subtitles doesn't fix anything, I need to reset the player.
Technical détails
Once the error occured in dash.all.debug.js, setCurrentFragmentedTrackIdx is not called anymore so currFragmentedTrackIdx stays at null.