Android的HLS视频MIME类型 [英] Android HLS video mime type

查看:694
本文介绍了Android的HLS视频MIME类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想火的意图发挥HLS(HTTP实时流)的视频。

I would like to fire an Intent to play a HLS (HTTP Live Stream) video.

我应该把在类型字段火只是支持HLS视频播放器?

What should I put in the type field to fire just the video players that support HLS?

它试图失败如下:视频/ M3U','视频/ M3U8','视频/ HLS','应用程序/ x-mpegURL,vnd.apple.mpegURL, 视频/ MP2T','应用程序/ vnd.apple.mpegurl。

It tried unsuccessfully the following: 'video/m3u', 'video/m3u8', 'video/hls', 'application/x-mpegURL', 'vnd.apple.mpegURL', 'video/MP2T', 'application/vnd.apple.mpegurl'.

想法,请...

推荐答案

您的应该摆在RFC中指定的内容类型类型:应用程序/ vnd.apple.mpegurl 。请参见 http://tool​​s.ietf.org/html第3.1 /选秀潘托斯-HTTP-活流-08

You should put the Content-Type type specified in the RFC: application/vnd.apple.mpegurl. See section 3.1 of http://tools.ietf.org/html/draft-pantos-http-live-streaming-08

有关HLS支持Android极差。您将需要在许多设备上一些第三方的软件,特别是对小于3。谷歌的版本似乎并不关心,或者至少不回归测试。

Android support for HLS is extremely poor. You will need some third party software on many devices, especially for versions less than 3. Google doesn't seem to care, or at least not to regression test.

这篇关于Android的HLS视频MIME类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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