【发布时间】:2010-08-31 12:54:30
【问题描述】:
我可以通过插入如下 URL 来播放来自 Internet 的视频:
mPath = Uri.parse("http://commonsware.com/misc/test2.3gp");
mVid.setVideoURI(mPath);
mVid.requestFocus();
mVid.start();
但现在我的原始文件夹中有一个视频,所以路径是 res/raw/testing.3gp。下面的代码不起作用,我也尝试了一些其他的方法都没有成功。
mPath = Uri.parse("../../res/raw/testing.3gp");
有什么建议吗?
【问题讨论】:
-
好的...我找到了我之前使用不同视频的代码,但现在无法正常工作。 mPath = Uri.parse("android:resource://com.example.wordweather/" + R.raw.scott);
标签: android