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(安卓)Design in Action —
  2. Android应用程序注冊广播接收器(registerR
  3. android每日一问1【2011-09-08】
  4. 深入理解Android消息处理系统——Looper
  5. androidManifest.xml之uses-permission(
  6. Android(安卓)启动过程分析 (一)
  7. android Fragments详解一:概述
  8. Android(安卓)GPS (当前位置 & GPS信息更
  9. Android(安卓)USB配件模式
  10. Android——ListView控件(Android(安卓)S