Chromecast iOS:流式传输HTML内容 [英] Chromecast ios: stream html content

查看:127
本文介绍了Chromecast iOS:流式传输HTML内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始开发自己的应用程序,用于将html网站流式传输到chromecast。
在文档中说Google安装了一个默认应用来显示HTML,视频,图像等内容。
我尝试了一下,视频和图像运行良好(URL结尾= .mp3或 .mkv)。但是,当我尝试流式传输网站(URL结尾= .html)时,它根本不流式传输任何内容。

I started developing my own app for streaming a html website to the chromecast. In the documentation it says that google installed a default app for displaying content like HTML, Videos, Images etc. I tried it and videos and images are working well (url ending = ".mp3" or ".mkv"). But when I am trying to stream a website (url ending = ".html) it simply doesnt stream anything.

我正在使用mediachannel和mediaInfo进行此操作。

I am doing this with a mediachannel and mediaInfo.

var mediaInfo = new GCKMediaInformation (url, GCKMediaStreamType.None, "unkown", metadata, 0, null); 

预先感谢
Alex

Thanks in advance Alex

推荐答案

您在我们的文档中哪里看到默认接收器支持 html作为一种内容类型?我们的文档状态:可用的第三个选项是默认媒体接收器。这是Google托管的预先构建的接收器应用程序,旨在流式传输您的音频和视频内容。

Where did you see in our documentation that "html" was supported as a type of content for our Default Receiver? Our documentation for the Default Receiver states: "A third option available is the Default Media Receiver. This is a pre-built receiver application hosted by Google that is designed for streaming your audio and video content."

简而言之,默认接收器仅支持以下内容:指定的类型,而不是html内容。

In short, the Default Receiver only supports media contents of the specified types, not an html content.

这篇关于Chromecast iOS:流式传输HTML内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆