ios - How To Stream Local Files Such As .MP4 Files To Chrome Cast? -
ios - How To Stream Local Files Such As .MP4 Files To Chrome Cast? -
okay i'm developing application supports casting local media chrome cast. far have connected device , have streamed sample video i'm know struggerling streaming local files such .mp4/.mp3 files located in documents directory of application. have tried utilize url of file instead of sample video. not work. believe due fact file path not within @ http:// format i'm not sure. if right in thinking how can round it?
here code i'm using stream google sample video chrome cat:
gckmediainformation *mediainformation = [[gckmediainformation alloc] initwithcontentid: @"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/bigbuckbunny.mp4" streamtype:gckmediastreamtypenone contenttype:type metadata:metadata streamduration:0 customdata:nil];
thanks in advance...
the reply reasonably simple in end need serve files http server , play them there. used cocoahttpserver
ios objective-c google-cast
Comments
Post a Comment