使用MediaPlayer 制作一个视频播放器

上传者: aduovip | 上传时间: 2021-09-14 11:07:48 | 文件大小: 64KB | 文件类型: RAR
使用MediaPlayer 制作一个 视频播放器 ,可指定视频的大小、预览的模式之外,还提供对 prepare,OnCompletionListener 等事件的判断。 通过创建SurfaceView 视图与控制SurfaceView 的 SurfaceHolder 对象,搭配 MediaPlayer 的 setDisplay() 方法来指定要将图像显示于指定的 SurfaceView 之上

文件下载

资源详情

[{"title":"( 32 个子文件 64KB ) 使用MediaPlayer 制作一个视频播放器","children":[{"title":"EX07_14","children":[{"title":".project <span style='color:#111;'> 843B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"irdc","children":[{"title":"ex07_14","children":[{"title":"EX07_14.java <span style='color:#111;'> 5.51KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 607B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable","children":[{"title":"icon.png <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false},{"title":"reset.png <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"stop.png <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"play.png <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"pause.png <span style='color:#111;'> 2.64KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"main.xml <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"color.xml <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 439B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.ui.prefs <span style='color:#111;'> 119B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 21.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"irdc","children":[{"title":"ex07_14","children":[{"title":"R.java <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"default.properties <span style='color:#111;'> 960B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 66B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 14.71KB </span>","children":null,"spread":false},{"title":"classes.dex <span style='color:#111;'> 7.96KB </span>","children":null,"spread":false},{"title":"irdc","children":[{"title":"ex07_14","children":[{"title":"R$layout.class <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 585B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"EX07_14$5.class <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"EX07_14$3.class <span style='color:#111;'> 996B </span>","children":null,"spread":false},{"title":"EX07_14$1.class <span style='color:#111;'> 951B </span>","children":null,"spread":false},{"title":"EX07_14$2.class <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 522B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 489B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"EX07_14.class <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"EX07_14$4.class <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"EX07_14.apk <span style='color:#111;'> 20.29KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • doumiji :
    挺好的,帮助挺大的
    2019-07-13
  • sinat_25011851 :
    资源很不错哟
    2017-10-24
  • jingjack218 :
    非常有用,对我帮助很大,谢谢
    2016-02-17
  • u010231454 :
    感觉不错!值得学习哦!
    2014-09-07
  • panguofu :
    恩,可以学习用
    2014-08-14

免责申明

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