想通过html5 video tag播放hls视频
发现 android 4.x版本对hls的支持有限,只能播放,不能随机访问。
但是 魅族的 flyme 运行很好。
查了部分资料,得到的情况是:
android只在3.x版本中提供了对hls的完整支持,在4.1版本之后,将放弃对hls的支持以及对flash的支持,转向webm。
我的测试结果,4.0.x版本的三星note 或者 tab 可以播放hls但是不能vod seek
4.1.2版本的手机可以播放但是不能seek
http://www.360doc.com/content/10/1117/14/3779243_70124988.shtml
Android Supported Media Formats
http://developer.android.com/guide/appendix/media-formats.html
相关资料如下:
- On Honeycomb, HLS playback crashes a tablet quite consistently. The version is of little concern though, since it has 2 percent market share and is shrinking.
- On Ice Cream Sandwich (26 percent share), HLS plays, but VOD streams cannot be seeked. The aspect ratio is also not detected, leading to deformed images. When going full-screen, a video is re-started from the beginning (again with no support for seeking).
- On Jelly Bean (3 percent share, but growing), the aspect ratio issue is fixed but the no-seek issue remains. Additionally, the new default browser (Chrome) does not understand HLS, leading to broken mimetype detection and an error message plus crash of the stream when taking it full-screen.
Unfortunately, Android 4.1 did drop support for Apple’s HTTP Live Streaming protocol, after having introduced it in version 3.0. Since Adobe Flash is alsono longer supported, adaptive streaming on Android is a significant a problem. It remains to be seen how Google will approach this going forward.
打算编译一个android版本的vlc
http://wiki.videolan.org/AndroidCompile
RTSP android的支持也有些问题,对于live555
http://developer.android.com/guide/appendix/media-formats.html
http://www.jouhu.com/blog/?p=1046