Closed isaranghi closed 1 year ago
Based on some of the online samples, subtitleView.SetCues(cueGroup.cues) should do the trick. But I can't seem to find cues property on CueGroup class. Is it sometjing that's missed?
2.11.8 seems very outdated considering we're on 2.18.* now, think you could update to 2.18 for MAUI or XF? (2.18-xamarin)
Edit: Ah I didn't read the bottom part of the issue
It could be possible that it was removed due to some other part of ExoPlayer being removed in bindings, it certainly looks like it wasn't deprecated by Google.
I've had a look at CueGroup and it seems that everything needed is there, I think you pass a list to CueGroup of your Cues and you should get a CueGroup back which you then pass to SetCues
Java:
C# Bindings:
Thank you very much for your response but I don't think this issue is closed. Based on the similar answer for ExoPlayer (https://github.com/google/ExoPlayer/issues/9805), you can see that I should be able to do the following...
public void OnCues(CueGroup cueGroup) { _subtitleView.SetCues(cueGroup.Cues); }
But there is no property cue available. I think that CueGroup should publicaly expose a List
@martijn00 I think we should re-open this issue.. You can see that C# biniding for CueGroup class has public property List
@isaranghi Since you did not provide a full sample, could you compile https://github.com/ArchangelWTF/ExoPlayerXamarin/tree/cues_fix this and see if Cues() will work for you?
@isaranghi Did you manage to get this working yet?
@ArchangelWTF yes it worked with the List
💬 Questions and Help
Hello,
Previously I was using Xam.Plugins.Android.ExoPlayer.Leanback version 2.11.8. I was able to load the subtitles using the following code
` var subtitleView = RequireActivity().FindViewById(Resource.Id.leanback_subtitles) as SubtitleView;
`
Now after upgrading to version 2.18.9 I am not able to call
textComponent.AddTextOutput(subtitleView);
Seems like AddTextOutput function isn't available anymore. Can anyone please help how can I make subtitles work.Thanks