题目内容
下面是一段视频播放程序片断,请根据注释在空白划线片填写代码。private void initVideoPath() {File file = new File(Environment.getExternalStorageDirectory(), "movie.3gp");// 为视频播放对象videoView设置视频文件file(1)_____________________________________;}@Overridepublic void onClick(View v) {switch (v.getId()) {case R.id.play:if (!videoView.isPlaying()) {// 启动视频播放(2)_____________________________________;}break;case R.id.pause:if (videoView.isPlaying()) {// 暂停视频播放(3)_____________________________________;}break;case R.id.replay:if (videoView.isPlaying()) {// 恢复视频播放(4)_____________________________________;}break;}}@Overrideprotected void onDestroy() {super.onDestroy();if (videoView != null) {// 中止视频播放(5)_____________________________________;}}
查看答案
搜索结果不匹配?点我反馈