-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems Side Loading Subtitles in ExoPlayer v2.0.1 #1882
Labels
Comments
1 - It's working as intended that the track isn't selected by default. If you want this behaviour, you should specify 2 - This is a bug. We'll push a fix shortly. |
1 - Thanks providing what is missed |
ojw28
added a commit
that referenced
this issue
Oct 3, 2016
- Fix NPE issue in SingleSampleMediaPeriod. - Delay handling of EOS in TextRenderer until the last subtitle is fully played out. Issue: #1882 ------------- Created by MOE: https:/google/moe MOE_MIGRATED_REVID=134979286
A fix has been pushed to |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We use SmoothStreaming / Playready and depend on Side Loading independent TTML Subtitles.
Found two problems trying to Side Load TTML Subtitles using MergingMediaSource containing SingleSampleMediaSource and SsMediaSource:
1-
DefaultTrackSelector.selectTextTrack correctly receives the TTML track, but it never gets it selected.
Hint : adjusting the score check in a DefaultTrackSelector subclass to be {if (trackScore >= selectedTrackScore) ... } , Solved it and got it selected.
2 -
Received crash:
Caused by: java.lang.NullPointerException: Attempt to get length of null array
at com.google.android.exoplayer2.source.SingleSampleMediaPeriod$SourceLoadable.load(SingleSampleMediaPeriod.java:272)
Examining this NullPointerException crash , we found that it is checking length of SourceLoadable.sampleData before it ever gets initialized or assigned.
The text was updated successfully, but these errors were encountered: