-
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
SingleSampleMediaSource Format.Builder bug #10016
Labels
Comments
Thanks for flagging this - I'll deprecate |
icbaker
added a commit
to androidx/media
that referenced
this issue
Mar 7, 2022
This method is no longer needed since we added SubtitleConfiguration#id in 59d98b9. Issue: google/ExoPlayer#10016 #minor-release PiperOrigin-RevId: 432169262
icbaker
added a commit
to androidx/media
that referenced
this issue
Mar 9, 2022
This method is no longer needed since we added SubtitleConfiguration#id in 59d98b9. Issue: google/ExoPlayer#10016 #minor-release PiperOrigin-RevId: 432169262 (cherry picked from commit 232f2d8)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
SetId for Format Builder is used twice, meaning subtitleConfiguration.id is the only valid id that will be used.
Please resolve the problem in the following code:
format =
new Format.Builder()
.setId(trackId)
.setSampleMimeType(firstNonNull(subtitleConfiguration.mimeType, MimeTypes.TEXT_UNKNOWN))
.setLanguage(subtitleConfiguration.language)
.setSelectionFlags(subtitleConfiguration.selectionFlags)
.setRoleFlags(subtitleConfiguration.roleFlags)
.setLabel(subtitleConfiguration.label)
.setId(subtitleConfiguration.id)
.build();
I believe that trackId is not needed anymore.
The text was updated successfully, but these errors were encountered: