Android MediaPlayer与Http Proxy结合之基础篇

上传者: hellogv | 上传时间: 2019-12-21 19:51:44 | 文件大小: 108KB | 文件类型: zip
如何实现一个简单的代理服务器(仅支持Http Get),与Android的MediaPlayer结合,从而可以扩展出“播放 反盗链的媒体文件”,“边播放边保存”的功能。

文件下载

资源详情

[{"title":"( 66 个子文件 108KB ) Android MediaPlayer与Http Proxy结合之基础篇","children":[{"title":"HttpGetProxy","children":[{"title":"musicplayer_demo","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 13.12KB </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":"com","children":[{"title":"musicplayer","children":[{"title":"Player$1.class <span style='color:#111;'> 963B </span>","children":null,"spread":false},{"title":"WebServer.class <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"CallBack.class <span style='color:#111;'> 420B </span>","children":null,"spread":false},{"title":"test_musicplayer$ClickEvent.class <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 477B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"test_musicplayer$SeekBarChangeEvent.class <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"HttpConstants.class <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"Worker.class <span style='color:#111;'> 8.29KB </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"Player.class <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"test_musicplayer.class <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"Player$2.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"MusicPlayer.apk <span style='color:#111;'> 13.22KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"classes.dex <span style='color:#111;'> 12.73KB </span>","children":null,"spread":false},{"title":"com","children":[{"title":"musicplayer","children":[{"title":"Player$1.class <span style='color:#111;'> 963B </span>","children":null,"spread":false},{"title":"HttpGetProxy$OnFinishListener.class <span style='color:#111;'> 255B </span>","children":null,"spread":false},{"title":"HttpGetProxy$1.class <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"test_musicplayer$ClickEvent.class <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 414B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"test_musicplayer$SeekBarChangeEvent.class <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"HttpGetProxy.class <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"Player.class <span style='color:#111;'> 3.86KB </span>","children":null,"spread":false},{"title":"test_musicplayer.class <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"Player$2.class <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"HttpGetProxy$2.class <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"HttpGetProxy$3.class <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"MusicPlayer.apk <span style='color:#111;'> 12.51KB </span>","children":null,"spread":false},{"title":"resources.ap_ <span style='color:#111;'> 4.97KB </span>","children":null,"spread":false}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 5.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":null,"spread":false},{"title":"drawable","children":[{"title":"icon.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 173B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":null,"spread":false},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"default.properties <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"musicplayer","children":[{"title":"R.java <span style='color:#111;'> 793B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 170B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"musicplayer","children":[{"title":"test_musicplayer.java <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"HttpGetProxy.java <span style='color:#111;'> 4.94KB </span>","children":null,"spread":false},{"title":"Player.java <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 391B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 756B </span>","children":null,"spread":false}],"spread":false},{"title":"HttpGetProxy","children":[{"title":"bin","children":[{"title":"HttpGetProxy$OnFinishListener.class <span style='color:#111;'> 223B </span>","children":null,"spread":false},{"title":"HttpGetProxy$1.class <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"HttpGetProxy.class <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false},{"title":"testHttpGetProxyForJ2SE.class <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"HttpGetProxy$2.class <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"HttpGetProxy$3.class <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 88B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"HttpGetProxy.java <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false},{"title":"testHttpGetProxyForJ2SE.java <span style='color:#111;'> 582B </span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 232B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • a1111111984 :
    12年的,有点老
    2017-11-08
  • y44260351 :
    很不错,值得学习
    2017-03-29
  • kangxi95 :
    在播放某些音频的时候出错
    2016-05-20
  • Mokin_Zhao :
    非常不错是的撒打算
    2015-11-03
  • TANGKEZHU :
    很好的例子,不过不是我想要的
    2015-08-17

免责申明

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