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

您好,问下我集成视频库,播放视频为甚么播放不了? #15

Open
qinchangbiao opened this issue Mar 31, 2020 · 0 comments

Comments

@qinchangbiao
Copy link

VideoPlayerManager.getInstance().setVideoDisplayType(VideoConstants.VIDEO_DISPLAY_TYPE_CUT);
mVideoPlayer = findViewById(R.id.video_player);
int itemHeight = this.getResources().getDisplayMetrics().widthPixels * 9 / 16;
mVideoPlayer.getLayoutParams().height = itemHeight;
DetailsCoverController coverController = new DetailsCoverController(VideoPlayerActivity.this);
mVideoPlayer.setVideoCoverController(coverController, true);
mVideoPlayer.setGlobaEnable(true);
mVideoPlayer.startPlayVideo("http://baobab.kaiyanapp.com/api/v1/playUrl?vid=189024&resourceType=video&editionType=default&source=aliyun&playUrlType=url_oss", "测试一下视屏功能");

核心代码就这些点击播放时候一直转圈圈

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

1 participant