文件名称:安卓视频播放器
文件大小:43KB
文件格式:ZIP
更新时间:2017-03-18 14:44:14
播放器
mediaPlayer.reset(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); videoView.setVisibility(View.GONE); surfaceView.setVisibility(View.VISIBLE); mediaPlayer.setDisplay(surfaceView.getHolder()); try { mediaPlayer.setDataSource(url); mediaPlayer.prepare(); // might take long! (for buffering, etc) mediaPlayer.start(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); }
【文件预览】:
.project
src
----com()
--------androidhuman()
AndroidManifest.xml
res
----drawable-ldpi()
--------icon.png(2KB)
----drawable-hdpi()
--------icon.png(4KB)
----drawable-mdpi()
--------icon.png(3KB)
----layout()
--------main.xml(524B)
----values()
--------strings.xml(183B)
assets
gen
----com()
--------androidhuman()
default.properties
.classpath
bin
----resources.ap_(10KB)
----com()
--------androidhuman()
----VideoViewExample.apk(14KB)
----classes.dex(4KB)