我使用视频文件直接申请了。在英特尔的CPU上,一切正常(Dell Venue 7)。但是,当我将在基于ARM的cpu devie(HTC One S z520e或Asus Google Nexus 7 2013)上启动应用程序时,我收到了通知"无法播放此视频"。我怎么能解决这个问题?我的视频的性能:mp4,320x480,500Kbps,30FPS
XML:
<VideoView
android:id="@+id/videoView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center" />
JAVA: public class Intro扩展了ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_intro);
VideoView vv = (VideoView) findViewById(R.id.videoView1);
Uri uri = Uri.parse("android.resource://com.example.video/raw/video");
vv.setVideoURI(uri);
//vv.setVideoPath("/sdcard/video.mp4");
vv.start();
}
}