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...


更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android studio真机调试安装失败,虚拟机正
  2. Android 学习 第一章(环境搭建)
  3. Android中JNI开发(二)Android.mk写法
  4. Android(安卓)dumpstate 工具解析
  5. Android ListView实现任意layout
  6. Android之渐变动画
  7. android 网络读取图片 带进度条
  8. 转:Android 获取Root权限
  9. Android Studio 添加百分比布局库的依赖
  10. Android(安卓)SQLite学习指南