You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
Thanks for flagging this - I'll deprecate SingleSampleMediaSource.Factory#setTrackId but change the logic in the constructor to still use its value if SubtitleConfiguration#id is null.
Activity
icbaker commentedon Mar 2, 2022
Thanks for flagging this - I'll deprecate
SingleSampleMediaSource.Factory#setTrackIdbut change the logic in the constructor to still use its value ifSubtitleConfiguration#idisnull.Deprecate SingleSampleMediaSource.Factory#setTrackId
Deprecate SingleSampleMediaSource.Factory#setTrackId
Deprecate SingleSampleMediaSource.Factory#setTrackId
Deprecate SingleSampleMediaSource.Factory#setTrackId