Chromecast上的Html5音频 - SSL(Html5 audio on Chromecast - SSL)
在Chromecast上播放Html5音频元素,并将源指向我的Subsonic音乐服务器实例。 您可以将音乐服务器设置为通过http或https进行提供。 如果https,音频元素将无法播放。 我读过一大堆证书等,但仍然没有找到解决方案。 Android应用程序中的MediaPlayer处理此罚款(没有任何证书),但在Chromecast与Html5音频元素不起作用。 需要一些方向...
Playing around with Html5 audio element on Chromecast with the source pointing to my instance of a Subsonic music server. You can set the music server to serve over http or https. If https, the audio element won't play. I've read a whole bunch on certificates etc but still not getting to a solution. The MediaPlayer in an Android app handles this fine (without any certificate) but on Chromecast with the Html5 audio element it doesn't work. Need some direction...
最满意答案
不会喜欢这个答案,但Chromecast根本不支持自签名证书。 它构建在Chromium安全模型中。 如果您可以将证书装载到证书商店中,它就可以工作(Android和Fire平板电脑和电视可以做到这一点),但这可能会有所帮助,但Chromecast(和FireStick)无法做到这一点。
Not gonna like this answer, but Chromecast simply won't support self-signed certs. It is built into the Chromium security model. IF you can get a cert side-loaded into the cert store, it would work (Android and Fire Tablet and TV can do this), it might help, but Chromecast (and FireStick) can't do that.
相关问答
更多-
你在哪里找到这个网址? 这是不完整的,正确的是http://playready.directtaps.net/smoothstreaming/TTLSS720VC1/To_The_Limit_720.ism/manifest ,但它不太可行。 其他文件发布在: 微软的SmoothStreaming示例文件 ,据说,我不相信微软提供适用于Chromecast的CORS标头。 我们提供了一些您可以自己托管的非常简单的媒体 。 我们提供了一个非常简单的服务器 ,如果您需要它来托管并提供CORS标头。 Where ...
-
通过HTML5输入音频?(Audio input via HTML5?)[2022-03-09]
网络摄像头和麦克风支持不是HTML 5规范的特色 新的API 除了指定标记之外,HTML5还指定脚本应用程序编程接口(API)。 现有的文档对象模型(DOM)接口被扩展并记录了事实上的功能。 还有新的API,例如: 立即模式的画布元素 2D绘图定时媒体播放 离线存储数据库(离线网站 应用程序)文件编辑 拖放交叉文档 消息(web消息)浏览器 历史管理MIME类型和 协议处理器注册。 微观数据 一些新功能是HTML5的一部分,主要是因为没有志愿者将HTML5拆分并保留这些功能的单独规范。 Webcam and ... -
我不知道这样的综合列表。 您需要记住,Chromecast设备主要面向媒体消费,因此对MediaElements有很好的支持。 事实上,它有一些额外的媒体扩展,如EME和MSE。 在DOM行动方面,我建议尽量减少(或更好地远离,如果可能的话)任何奇特的过渡; 对大多数事物的支持是存在的,但它没有得到优化,那些平滑(即硬件/内存)所需的资源在该设备上是稀缺的。 如果您需要了解有关覆盖范围和性能的更多信息,我建议您编写一个简单的应用程序,它可以放置许多javascript测试页面,并在实际设备上查看结果。 I ...
-
你无法避免它; 从Chrome 49开始, getUserMedia API仅在“安全上下文”(即https站点和localhost )中可用。 You can't avoid it; starting with Chrome 49, the getUserMedia API is only available in "secure contexts" (i.e. https sites and localhost).
-
使用本地嵌入式服务器来传输本地内容是唯一的方法。 Using a local embedded server for streaming local content is the only way.
-
不会喜欢这个答案,但Chromecast根本不支持自签名证书。 它构建在Chromium安全模型中。 如果您可以将证书装载到证书商店中,它就可以工作(Android和Fire平板电脑和电视可以做到这一点),但这可能会有所帮助,但Chromecast(和FireStick)无法做到这一点。 Not gonna like this answer, but Chromecast simply won't support self-signed certs. It is built into the Chromiu ...
-
正如我已经知道这是不可能的,@ ali-naddaf你可以通过任何机会输入这个作为功能请求吗? WebRTC在我们的开发CC设备上运行良好,唯一的棘手是在使用WebRTC和WebSockets接管之前必须使用Chrome扩展来启动它。 避免DIAL推出纯网络应用程序将是一个真正的杀手协议IMO。 顺便说一句,我还没有找到一个正式的方法来提出功能请求,所以这个Q / A机制就是我的方法。 As I already know this isn't possible, @ali-naddaf could you ...
-
你将编写为在chromecast上运行的接收器是一个带有css和javascript的html5页面。 除了其他方面,您发送给接收的数据应该引用您想要在那里显示的图像和视频的网址; 这些内容可以从任何类型的Web服务器提供; chromecast不关心它是通过apache或node.js还是您自己手工制作的Web服务器提供的。 为了更好地理解体系结构,通常,您可能需要查阅我们的开发人员文档 。 The receiver that you will write to run on chromecast is ...
-
你想要一个自定义接收器。 它们允许您只加载网页而不是使用默认播放器。 https://developers.google.com/cast/docs/custom_receiver You want a Custom Receiver. They allow you to just load in a webpage instead of using the default players. https://developers.google.com/cast/docs/custom_receiver
-
HTML5音频参考(HTML5 audio reference)[2022-11-11]
play(),pause()等来自HTMLMediaElement接口,这里记录: http : //www.w3.org/TR/html5/video.html#htmlmediaelement play(), pause() etc come from HTMLMediaElement interface, documented here: http://www.w3.org/TR/html5/video.html#htmlmediaelement