Description
Reproducible using Shaka v2.0.0-debug. (Commit #6f47acf688 currently 1 commit behind)
(1) Load content that contains MP4 embedded TTML
<AdaptationSet group="3" contentType="text" lang="en" minBandwidth="1000" maxBandwidth="1000" mimeType="application/mp4" codecs="stpp">
(2) Side load a web/vtt text track:
shakaPlayer.addTextTrack(trackUrl, 'eng', 'caption', 'text/vtt');
Expected:
Two text tracks should be available.
Result:
Bad Encoding (2004) error.
It appears that when the vtt track is not loaded then then the text track listed in the manifest is parsed using the Mp4TtmlParser
and there are no errors. However when the the vtt track is sideloaded then a new parser is set in the TextEngine
(line 38). When it comes time then to parse the TTML track, the TextEngine
attempts to parse the track using the VttTextParser
and it fails.
I'm not sure I can distribute the content that I used to reproduce this but I'll try to provide some content ASAP.