【发布时间】:2014-06-02 02:36:42
【问题描述】:
我想使用 Google 提供的 Chromecast iOS SDK 将我的应用程序屏幕投射到 Chromecast。
实现这一目标的最佳方法是什么?
目前我看到以下可能性:
我“在手机上创建一个迷你服务器来为他们提供服务。然后告诉你的接收器(可能是 Styled 的)访问本地服务器(在你的 iPhone 上)。”
我错过了什么吗?有没有更简单的方法来实现这一点?
提前感谢您的任何回答!
更新:
现在我来了
I have an application that is capturing video camera input and streaming it into mp4
I have an another application that is passing the first application's URL to a Chromecast device using this code
GCKMediaInformation *mediaInformation = [[GCKMediaInformation alloc] initWithContentID:@"rtsp://192.168.5.159" streamType:GCKMediaStreamTypeLive contentType:@"video/mp4" metadata:metadata streamDuration:0 customData:nil];
//cast video [_mediaControlChannel loadMedia:mediaInformation autoplay:TRUE playPosition:0];
Chromecast 设备尝试播放流,但立即失败。
你能给点建议吗?
谢谢!
【问题讨论】:
标签: ios google-cast