I'm using the the TextTrack selector functionality that was added not so long ago. It's working fine in iOS, but on Android, I select the one I want, but then if I try to turn it off (by passing null to the selectedTextTrack prop) the track that was previously selected doesn't go away.
The previously selected text track should go away.
Which player are you experiencing the problem on:
If you're just trying to turn the captions off, try setting the selectedTextTrack type to 'disabled':
selectedTextTrack={{
type: "disabled",
value: "should_not_matter"
}}
This is what I do in my app through a toggle button.
@shlokamin that worked, thanks man!
Got a similar issue on iOS.
When I remove the subtitles using the above method, the last subtitle stays on screen.
If I remove it when there is no subtitles it's fine.
Also if I disable subtitles, go fullscreen and come back the subtiles are gone (as it should).
Most helpful comment
@shlokamin that worked, thanks man!