更新时间:2023-09-28 10:12:10
您可以把视频中的原始文件夹而不是构建一个URI是这样的:
You could put the video in the raw folder instead and construct a URI like this:
android.resource://[package]/[resource_id]
android.resource://[package]/[res type]/[res name]
例如:
Uri videoUri = Uri.parse("android:resource://com.my.package/"+R.raw.myVideo);
mVideoView.setVideoURI(videoUri);