gingerbeur / google-cast-sdk

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

Segmented WebVTT not working with Chromecast #422

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Try use http://subs.mavshack.com/IND-DVD-02-054--EN.m3u8 caption file with 
Customer receiver.

What is the expected output? What do you see instead?
We are expecting segmented WebVTT to be working with our iOS app HLS steam. 
However, it doesn’t work as expected.

What version of the product are you using? On what operating system?
Media Player Library 1.0

Please provide any additional information below.

This is how I create the media track for closed caption  which is not working:

GCKMediaTrack *track = [[GCKMediaTrack alloc] initWithIdentifier:1
                                           contentIdentifier:@"http://subs.mavshack.com/IND-DVD-02-054--EN.m3u8"
                                                 contentType:@"text/webvtt"
                                                        type:GCKMediaTrackTypeText
                                                 textSubtype:GCKMediaTextTrackSubtypeCaptions
                                                        name:@"English"
                                                languageCode:@"en-US"
                                                  customData:nil];

If we pass an individual segment like this it works properly.

GCKMediaTrack *track = [[GCKMediaTrack alloc] initWithIdentifier:1
                                           contentIdentifier:@"http://subs.mavshack.com/segments/IND-DVD-02-054--EN32.webvtt"
                                                 contentType:@"text/webvtt"
                                                        type:GCKMediaTrackTypeText
                                                 textSubtype:GCKMediaTextTrackSubtypeCaptions
                                                        name:@"English"
                                                languageCode:@"en-US"
                                                  customData:nil];

Original issue reported on code.google.com by pradeep....@gmail.com on 5 Nov 2014 at 1:18

GoogleCodeExporter commented 9 years ago
Will look into it.

Original comment by anad...@google.com on 5 Nov 2014 at 4:13

GoogleCodeExporter commented 9 years ago
Hi There,

 Do you have any update for me on this?

Original comment by pradeep....@gmail.com on 20 Nov 2014 at 10:59

GoogleCodeExporter commented 9 years ago
I believe you need to add the captions m3u8 to the master playlist using 
#EXT-X-MEDIA tag, similar to this sample:

https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_16x9/bipbop_16
x9_variant.m3u8

When it is a part of the master playlist, it will show up as a stream and can 
be enabled using logic similar to what is described in section "Cycling through 
caption streams" here

https://developers.google.com/cast/docs/player

Original comment by vadi...@google.com on 2 Dec 2014 at 9:46

GoogleCodeExporter commented 9 years ago

Original comment by anad...@google.com on 5 Dec 2014 at 5:40