Android MediaPlayer与Http Proxy结合之优化篇

上传者: hellogv | 上传时间: 2019-12-21 19:51:44 | 文件大小: 87KB | 文件类型: rar
本文是在《玩转 Android MediaPlayer之视频预加载(优化)》基础上修复Http代理服务器(Http Proxy()透传的bug。前面几篇相关文章所用的代理服务器一个时间只能监听来自Mediaplayer的一个Request请求,但在实际项目开发过程中,发现有些支持m3u8格式Mediaplayer发出新的Request请求之前不会中断旧的Request请求,所以本文代码会加入多线程监听Request请求。

文件下载

资源详情

[{"title":"( 51 个子文件 87KB ) Android MediaPlayer与Http Proxy结合之优化篇","children":[{"title":"videoplayer_demo","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable","children":[{"title":"icon.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":null,"spread":false},{"title":"drawable-hdpi","children":null,"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 173B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"proxy","children":[{"title":"Config.java <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"DownloadThread.java <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"Utils.java <span style='color:#111;'> 6.39KB </span>","children":null,"spread":false},{"title":"HttpGetProxyUtils.java <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"HttpParser.java <span style='color:#111;'> 5.19KB </span>","children":null,"spread":false},{"title":"HttpGetProxy.java <span style='color:#111;'> 10.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"videoplayer","children":[{"title":"testVideoPlayer.java <span style='color:#111;'> 3.43KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"proxy","children":[{"title":"Config.class <span style='color:#111;'> 719B </span>","children":null,"spread":false},{"title":"HttpGetProxy$1.class <span style='color:#111;'> 591B </span>","children":null,"spread":false},{"title":"HttpParser.class <span style='color:#111;'> 5.13KB </span>","children":null,"spread":false},{"title":"Utils$1.class <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"HttpGetProxy$Proxy.class <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false},{"title":"HttpGetProxyUtils.class <span style='color:#111;'> 4.10KB </span>","children":null,"spread":false},{"title":"HttpGetProxy$2.class <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"Config$ProxyResponse.class <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"HttpGetProxy.class <span style='color:#111;'> 6.35KB </span>","children":null,"spread":false},{"title":"DownloadThread.class <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false},{"title":"Utils$2.class <span style='color:#111;'> 959B </span>","children":null,"spread":false},{"title":"Config$ProxyRequest.class <span style='color:#111;'> 423B </span>","children":null,"spread":false},{"title":"Utils$3.class <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"Utils.class <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"videoplayer","children":[{"title":"BuildConfig.class <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"testVideoPlayer$1.class <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"testVideoPlayer$3.class <span style='color:#111;'> 819B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"testVideoPlayer$2.class <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"testVideoPlayer.class <span style='color:#111;'> 4.14KB </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable","children":[{"title":"icon.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"jarlist.cache <span style='color:#111;'> 119B </span>","children":null,"spread":false},{"title":"classes.dex <span style='color:#111;'> 28.35KB </span>","children":null,"spread":false},{"title":"VideoPlayer.apk <span style='color:#111;'> 20.90KB </span>","children":null,"spread":false},{"title":"proguard.txt <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"resources.ap_ <span style='color:#111;'> 4.82KB </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 380B </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"default.properties <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 115B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"videoplayer","children":[{"title":"R.java <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"BuildConfig.java <span style='color:#111;'> 157B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • Sunkynet :
    很好很强大,支持CSDN
    2019-03-28
  • siow :
    还不错,学习了
    2018-11-20
  • 围巢 :
    感谢分享啊,谢谢。
    2018-09-09
  • 京京_0327 :
    不错,给我的应用提供了很好的思路
    2018-08-30
  • IMT8585 :
    很好,可以正常使用
    2018-03-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明