android 4.3之前的版本 播放hls获取不到总时长的原因
来源:互联网 发布:b站mac 编辑:程序博客网 时间:2024/06/05 02:45
http://stackoverflow.com/questions/16810673/android-hls-streaming-different-android-versions-load-different-location-in-st
Some versions of Android seem to interpret the HLS athttp://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 as live HLS rather than VOD HLS, and thus media player starts close to the "live" point, close to the content end, around 29 minutes into the content.
And here's why: prior to 4.3, the last line in an HLS playlist file was not parsed unless it ended in '\n'.
See the history of changes on that file:http://androidxref.com/4.3_r2.1/history/frameworks/av/media/libstagefright/httplive/M3UParser.cpp , on 12/31/12, there is change that fixed the problem. The issue is gone on 4.4.
So, one way to solve the problem on older versions is to add newline after the last line of the playlist on the server, or implement an HTTP proxy in your app that effectively adds that newline, which may not be trivial...
- android 4.3之前的版本 播放hls获取不到总时长的原因
- Android播放HLS协议的流媒体
- Android播放HLS协议的流媒体
- Android播放HLS协议的流媒体
- Android播放HLS协议的流媒体
- Android接收不到系统广播的原因
- android 开机广播接收不到的原因
- 举例说明android编程中获取不到指定文件夹中的内容的原因及解决办法
- iReport-5.6.0之前版本无法启动的某些原因
- Django的request.POST获取不到内容的原因
- 获取不到Struts2值栈的值的原因之一
- Android 获取不到自定义属性(Android studio 2.2版本中自定义属性的声明)
- 获取不到Extjs中分页参数start,limit的原因
- 64位下GetModuleFileName获取不到进程名的原因
- document.getElementById获取不到值的几种原因分析
- 前台post提交表单时获取不到数据的原因
- Dialog中IME获取不到keyevent的原因
- request.getParementer()获取不到值的原因及解决办法
- 打开Dreamweaver的时候出现错误
- DirectX11 创建渲染目标视图
- ISP图像质量调节介绍
- 黑马程序员-OC-继承
- python assert
- android 4.3之前的版本 播放hls获取不到总时长的原因
- Map insert的三种用法
- C语言位运算符及作用:与、或、异或、取反、左移和右移
- Baidu地图之removeEventListener失效问题
- VS2010 语法错误: 标识符“__RPC__out_xcount_part” 最全解决方法
- 使用迭代器遍历List的时候修改List报ConcurrentModificationException异常原因分析
- 《java编程思想》-第二章,一切都是对象
- 江苏电信欢go重新定义宽带标准
- 【Android】仿UC网络判断效果