Player crashes when no text plugins but content has closed captions #5161
Labels
component: captions/subtitles
The issue involves captions or subtitles
priority: P2
Smaller impact or easy workaround
status: archived
Archived and locked; will not be updated
type: bug
Something isn't working correctly
Milestone
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.3.10
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from
main
?Yes
Are you using the demo app or your own custom app?
Custom
If custom app, can you reproduce the issue using our demo app?
No
What browser and OS are you using?
MacOS Chrome
For embedded devices (smart TVs, etc.), what model and firmware version are you using?
What are the manifest and license server URIs?
https://livesim.dashif.org/dash/vod/testpic_2s/cea608.mpd
What configuration are you using? What is the output of
player.getConfiguration()
?What did you do?
Prepared custom build without text plugins (
python3 build/build.py --name wt-test +@complete -@text
)Tried to play content with closed captions.
What did you expect to happen?
Player starts to play, closed caption tracks are selectable.
What actually happened?
Player crashed due to following error on 3.3.10:
On current main, error is following:
The problem is related to the fact, that if text engine needs to be initiated due to closed captions,
MediaSourceEngine
inits it withtext/vtt
MIME type.TextEngine
fails with assertion that no factory has been found for given MIME type.It should be easily fixed with changing used MIME type in
MediaSourceEngine
to CEA608 or 708.Bonus question - as there is a possibility to create custom build without certain plugins, do assertions in
TextEngine
around finding factory are valid? Shouldn't shaka instead throw an error but continue to play without subtitles? Or maybe prepare some dummy text parser that's always included in core?The text was updated successfully, but these errors were encountered: