如何在Chromecast中播放流畅的流式视频? [英] How to play smooth streaming video in Chromecast?

查看:190
本文介绍了如何在Chromecast中播放流畅的流式视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据Chromecast开发人员页面,Chromecast支持SmoothStreaming容器,我相信该容器使用扩展名为.ismv的视频块.我无法播放这些视频文件.

According the Chromecast Developers page, Chromecast supports the SmoothStreaming container, which I believe uses video chunks with the .ismv extension. I am having problems getting those video files to play.

如果我没记错的话,Chrome/Chromecasts的video标签实现仅支持.mp4和.webm文件,因此,如果您为它传递清单的网址,则无法使用cast.MediaLoadRequest(在Chrome Sender应用程序中)文件或.ismv容器.

If I am not mistaken, Chrome/Chromecasts's implementation of the video tag only supports .mp4 and .webm files, so using cast.MediaLoadRequest (in a Chrome Sender App) would not work if you pass it a url for a manifest file or .ismv container.

使用

It does seem possible to write code that stitches together MPEG-DASH chunks using the MediaSource API from a MPEG-DASH manifest file. However, it doesn't appear that Chrome's implementation of the MediaSource spec supports .ismv chunks and therefore a means to play smooth streaming video.

假设您解析了清单文件以获取流畅的流式视频块,Chromecast如何播放.ismv h.264容器,例如可以找到的容器

Assuming you parsed a manifest file to get the smooth streaming video chunks, how would it be possible for Chromecast to play .ismv h.264 containers, such as the ones that can be found here? Or does Chrome not support .ismv files? If so, what SmoothStreaming containers does Chrome/Chromecast support?

推荐答案

Chromecast支持MPEG-DASH和平滑流.在此处查看更多详细信息:

Chromecast supports MPEG-DASH and Smooth Streaming. See more detail here:

https://developers.google.com/cast/supported_media_types

我们将尽快提供一些平滑流式传输的代码段.敬请期待.

We'll provide some code snippet of smooth streaming soon. Stay tuned.

这篇关于如何在Chromecast中播放流畅的流式视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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