Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法播放raw文件夹下面的MP4格式的视频 #27

Closed
guozhiqiang123 opened this issue Jul 10, 2018 · 2 comments
Closed

无法播放raw文件夹下面的MP4格式的视频 #27

guozhiqiang123 opened this issue Jul 10, 2018 · 2 comments

Comments

@guozhiqiang123
Copy link

无法播放raw文件夹下面的MP4格式的视频

@ghost
Copy link

ghost commented Sep 15, 2018

String uri = "android.resource://" + getPackageName() + "/" + R.raw.video;
mDataSource.setUri(Uri.parse(uri));

@jiajunhui
Copy link
Owner

mVideoView = findViewById(R.id.testVideoView);
DataSource dataSource = new DataSource();
dataSource.setRawId(R.raw.big_buck_bunny);
mVideoView.setDataSource(dataSource);
mVideoView.start();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants