Hello I am setting up the close caption with osmf
it is working fine
whenever i load a video i do
where CAPTION_URL = 'xml/cc_'+ element +'.xml';
but I would like to know if In the middle of the video I want to load another xml ( another language ) it is possible ?
Well, there is an enhancement bug filed for this:
But doesn't really help you right now. You could make this work with some custom code. When the user clicks something on the UI to specify the language switch, you could save the current position of the video, stop it, set the metadata again, set the media element on your MediaPlayer instance again, wait for play state change, and then seek to the location you saved.
I think this would be relatively easy to do.
Thanks Charles for your reply