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
MediaMetadata.Builder builder = new MediaMetadata.Builder().setTitle("Video Title");
List <MediaItem.Subtitle> subtitleList = new ArrayList<>();
MediaItem.Subtitle subtitle = new MediaItem.Subtitle(subtitleUri, MimeTypes.APPLICATION_SUBRIP, "en", C.SELECTION_FLAG_DEFAULT);
subtitleList.add(subtitle);
MediaItem.Builder mMediaItemBuilder = new MediaItem.Builder()
.setUri(videoSourceUri)
.setMediaMetadata(builder.build())
.setSubtitles(subtitleList)
.setMimeType(mimeType);
castPlayer.setMediaItem(mMediaItemBuilder.build(), resumePosition);
This is not displaying the selected subtitle on Chrome Cast
PS : Local ExoPlayer with new style player control working as expected
Cast Demo app is not updated and cast demo don't include subtitle implementation
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #8669, specifically this comment from @marcbaechinger discusses adding support for subtitle tracks in DefaultMediaItemConverter.
Yes, @icbaker is right that this is currently not supported and is tracked with #8669 that is marked as an enhancement. I updated the title of the other issue to clarify this.
We don't have an ETA for this right now but you can inject your own MediaItemConverter into CastPlayer to do that conversion yourself.
Please add you rcomments regarding this to #8669. I'm closing this as a duplicate. Please re-open if you think we need to continue here.
This is not displaying the selected subtitle on Chrome Cast
PS : Local ExoPlayer with new style player control working as expected
Cast Demo app is not updated and cast demo don't include subtitle implementation
The text was updated successfully, but these errors were encountered: