KirovBvulgaru / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Add video subtitle to RemoteMediaPlayer #143

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
RemoteMediaPlayer doesn't seem to support specifying a video subtitle URL.

It would be nice to have this ability in a future version, for example through 
MediaInfo passed to load():

MediaInfo.Builder(url).setSubTitleURL("http://.../blargh.vtt");

An even better solution would be the ability to set/unset subtitles at any time 
when a video is playing.

Original issue reported on code.google.com by pujos.mi...@gmail.com on 16 Feb 2014 at 2:50

GoogleCodeExporter commented 8 years ago

Original comment by anad...@google.com on 17 Feb 2014 at 5:33

GoogleCodeExporter commented 8 years ago
Subtitle is supported in some of the media types: 
https://developers.google.com/cast/docs/reference/messages.

The default media receiver actually handles that properly.   See this sample 
sender code on how meta data get sent to receiver: 
https://github.com/googlecast/CastMedia-chrome

Original comment by shawns...@google.com on 21 Feb 2014 at 6:29

GoogleCodeExporter commented 8 years ago
That subtitle property you are referring to has nothing to do with subtitles as 
in WebVTT subtitles or as the <track> HTML5 element but this doesn't matter 
anyway as I have solved what I wanted to do by other means.

Original comment by pujos.mi...@gmail.com on 21 Feb 2014 at 6:38

GoogleCodeExporter commented 8 years ago
Ah, we do support TTML and WebVTT subtitle (or closed caption).  Are you able 
to make it work using WebVTT?

Original comment by shawns...@google.com on 21 Feb 2014 at 6:41

GoogleCodeExporter commented 8 years ago
Yes, but I had to write my own receiver.

Original comment by pujos.mi...@gmail.com on 21 Feb 2014 at 6:46

GoogleCodeExporter commented 8 years ago
We are looking into providing support from the SDK side for Closed Caption/Sub 
Title. We will publish a simple sample soon that shows how developers can do 
that on their own till we add the official support and have it added to the SDK 
and our supported receivers. Since you have already done it, the 
soon-to-be-published sample is probably not going to be useful for you.

Original comment by anad...@google.com on 21 Feb 2014 at 7:02