关于自定义请看
项目中主要提供一些常用的基础功能,很多方法都有保护方法,继承好即可修改逻辑。
关于ui,可以虽然自定义,返回你的ui逻辑,内部已经尽可能的做了判空,如果还有哪里没处理好空判断请提出。
你可以使用相同id调整布局,或者完全使用自己的布局
如果我在自定义布局中没有定义相对应的控件id,是否会出问题
理论上是没问题的
系统MediaMetadataRetriever和https://github.com/wseemann/FFmpegMediaMetadataRetriever
surface_container为id的一个ViewGroup是必须的
你好,请问控件的进度条是否可以隐藏?
@lhzlg3368 直接继承,重载getLayoutId,在你的布局里去掉就可以了。
是我自定义的不对吗?怎么经常播放视频出现卡顿情况 地址如下http://gv.static.nextjoy.com/article/video/26779803.flv.mp4
目前使用了这个框架,在视频播放的时候,因为手机宽高比的原因,有些视频左右有黑边,有些视频上下有黑边,请问是否提供了可以代码设置视频内容宽高的方法?期待你的回复,谢谢
自定义视频播放页面,只是改变视频播放器样式,应该是改不了视频内容的宽高,但是你可以控制自定义页面的改变来变相的控制视频内容的黑边,更详尽直接的方法,建议你直接@管理员吧,他一般回复的也比较及时的
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午3:57 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
目前使用了这个框架,在视频播放的时候,因为手机宽高比的原因,有些视频左右有黑边,有些视频上下有黑边,请问是否提供了可以代码设置视频内容宽高的方法?期待你的回复,谢谢
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
好的,多谢了,遇到黑边的是全屏播放的,因为视频是16:9的,但是手机的宽高比不是,所以有些有黑边的情况,因为是全屏播放,所以这个宽高没法通过布局来调整了,这个情况下,我如何能自定义视频画面的宽高呢?
原始邮件 发件人:[email protected] 收件人:CarGuo/[email protected] 抄送:张凯强[email protected]; [email protected] 发送时间:2019年7月24日(周三) 16:03 主题:Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
自定义视频播放页面,只是改变视频播放器样式,应该是改不了视频内容的宽高,但是你可以控制自定义页面的改变来变相的控制视频内容的黑边,更详尽直接的方法,建议你直接@管理员吧,他一般回复的也比较及时的
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午3:57 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
目前使用了这个框架,在视频播放的时候,因为手机宽高比的原因,有些视频左右有黑边,有些视频上下有黑边,请问是否提供了可以代码设置视频内容宽高的方法?期待你的回复,谢谢
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
全局设置GSYVideoType API
public static int getShowType() /** * 设置显示比例,注意,这是全局生效的 */ public static void setShowType(int type) 试试,不知道有用没用
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午4:09 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
好的,多谢了,遇到黑边的是全屏播放的,因为视频是16:9的,但是手机的宽高比不是,所以有些有黑边的情况,因为是全屏播放,所以这个宽高没法通过布局来调整了,这个情况下,我如何能自定义视频画面的宽高呢?
原始邮件 发件人:[email protected] 收件人:CarGuo/[email protected] 抄送:张凯强[email protected]; [email protected] 发送时间:2019年7月24日(周三) 16:03 主题:Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
自定义视频播放页面,只是改变视频播放器样式,应该是改不了视频内容的宽高,但是你可以控制自定义页面的改变来变相的控制视频内容的黑边,更详尽直接的方法,建议你直接@管理员吧,他一般回复的也比较及时的
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午3:57 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
目前使用了这个框架,在视频播放的时候,因为手机宽高比的原因,有些视频左右有黑边,有些视频上下有黑边,请问是否提供了可以代码设置视频内容宽高的方法?期待你的回复,谢谢
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
这个属性设置可以实现全屏无黑边,只是视频拉伸了一点点,多谢
原始邮件 发件人:[email protected] 收件人:CarGuo/[email protected] 抄送:张凯强[email protected]; [email protected] 发送时间:2019年7月24日(周三) 16:17 主题:Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
全局设置GSYVideoType API
public static int getShowType() /** * 设置显示比例,注意,这是全局生效的 */ public static void setShowType(int type) 试试,不知道有用没用
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午4:09 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
好的,多谢了,遇到黑边的是全屏播放的,因为视频是16:9的,但是手机的宽高比不是,所以有些有黑边的情况,因为是全屏播放,所以这个宽高没法通过布局来调整了,这个情况下,我如何能自定义视频画面的宽高呢?
原始邮件 发件人:[email protected] 收件人:CarGuo/[email protected] 抄送:张凯强[email protected]; [email protected] 发送时间:2019年7月24日(周三) 16:03 主题:Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
自定义视频播放页面,只是改变视频播放器样式,应该是改不了视频内容的宽高,但是你可以控制自定义页面的改变来变相的控制视频内容的黑边,更详尽直接的方法,建议你直接@管理员吧,他一般回复的也比较及时的
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午3:57 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
目前使用了这个框架,在视频播放的时候,因为手机宽高比的原因,有些视频左右有黑边,有些视频上下有黑边,请问是否提供了可以代码设置视频内容宽高的方法?期待你的回复,谢谢
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
根据不同手机的宽高比例,动态设置吧,就是视频容易失真变形
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午4:33 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
这个属性设置可以实现全屏无黑边,只是视频拉伸了一点点,多谢
原始邮件 发件人:[email protected] 收件人:CarGuo/[email protected] 抄送:张凯强[email protected]; [email protected] 发送时间:2019年7月24日(周三) 16:17 主题:Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
全局设置GSYVideoType API
public static int getShowType() /** * 设置显示比例,注意,这是全局生效的 */ public static void setShowType(int type) 试试,不知道有用没用
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午4:09 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
好的,多谢了,遇到黑边的是全屏播放的,因为视频是16:9的,但是手机的宽高比不是,所以有些有黑边的情况,因为是全屏播放,所以这个宽高没法通过布局来调整了,这个情况下,我如何能自定义视频画面的宽高呢?
原始邮件 发件人:[email protected] 收件人:CarGuo/[email protected] 抄送:张凯强[email protected]; [email protected] 发送时间:2019年7月24日(周三) 16:03 主题:Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
自定义视频播放页面,只是改变视频播放器样式,应该是改不了视频内容的宽高,但是你可以控制自定义页面的改变来变相的控制视频内容的黑边,更详尽直接的方法,建议你直接@管理员吧,他一般回复的也比较及时的
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午3:57 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
目前使用了这个框架,在视频播放的时候,因为手机宽高比的原因,有些视频左右有黑边,有些视频上下有黑边,请问是否提供了可以代码设置视频内容宽高的方法?期待你的回复,谢谢
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
嗯,我目前是这样处理的,再次感谢
原始邮件 发件人:[email protected] 收件人:CarGuo/[email protected] 抄送:张凯强[email protected]; [email protected] 发送时间:2019年7月24日(周三) 16:39 主题:Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
根据不同手机的宽高比例,动态设置吧,就是视频容易失真变形
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午4:33 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
这个属性设置可以实现全屏无黑边,只是视频拉伸了一点点,多谢
原始邮件 发件人:[email protected] 收件人:CarGuo/[email protected] 抄送:张凯强[email protected]; [email protected] 发送时间:2019年7月24日(周三) 16:17 主题:Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
全局设置GSYVideoType API
public static int getShowType() /** * 设置显示比例,注意,这是全局生效的 */ public static void setShowType(int type) 试试,不知道有用没用
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午4:09 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
好的,多谢了,遇到黑边的是全屏播放的,因为视频是16:9的,但是手机的宽高比不是,所以有些有黑边的情况,因为是全屏播放,所以这个宽高没法通过布局来调整了,这个情况下,我如何能自定义视频画面的宽高呢?
原始邮件 发件人:[email protected] 收件人:CarGuo/[email protected] 抄送:张凯强[email protected]; [email protected] 发送时间:2019年7月24日(周三) 16:03 主题:Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
自定义视频播放页面,只是改变视频播放器样式,应该是改不了视频内容的宽高,但是你可以控制自定义页面的改变来变相的控制视频内容的黑边,更详尽直接的方法,建议你直接@管理员吧,他一般回复的也比较及时的
------------------ 原始邮件 ------------------ 发件人: "张凯强"[email protected]; 发送时间: 2019年7月24日(星期三) 下午3:57 收件人: "CarGuo/GSYVideoPlayer"[email protected]; 抄送: "hech"[email protected]; "Manual"[email protected]; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
目前使用了这个框架,在视频播放的时候,因为手机宽高比的原因,有些视频左右有黑边,有些视频上下有黑边,请问是否提供了可以代码设置视频内容宽高的方法?期待你的回复,谢谢
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
感谢作者的开源,我是第一次使用这个库,在自定义的ui的时候遇到一些问题:请问如何给自定义ui里边的按钮添加点击事件 版本 :6.0.3 需求:我需要在右上角添加一个新的按钮,比如说分享按钮 继承 StandardGSYVideoPlayer 之后,通过getLayoutId 方法设置了自己的layout 应该在那个方法里边设置这个按钮点击事件?希望各位使用过的前辈指导一下。
我继承StandardGSYVideoPlayer,使用自己的布局文件,添加了一个ImageView,在自定义的GSYVideoPalyer里使用findViewById获取它病绑定点击事件,点击事件有效,但是在changeUiToNormal()等方法里使用它时却报它是个空的·····不知道为啥····最后没办法重写GSYVideoControlView添加控件才解决····
自定义布局需要在两个地方都绑定id,横屏和竖屏是不一样的
自定义布局需要在两个地方都绑定id,横屏和竖屏是不一样的
请问除了那个init外还需要在哪里绑定呢?app/src/main/java/com/example/gsyvideoplayer/video/SampleCoverVideo.java里的那个ImageView也只是在init绑定的。
@Override protected void init(Context context) { super.init(context); initView(); }
private void initView() {
mSwitchSize = (TextView) findViewById(R.id.switchSize);
//切换视频清晰度
mSwitchSize.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if (mHadPlay && !isChanging) {
showSwitchDialog();
}
}
});
}
-
全屏时将对应处理参数逻辑赋给全屏播放器 *
- @param context
- @param actionBar
- @param statusBar
- @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { SmartPickVideo sampleVideo = (SmartPickVideo) super.startWindowFullscreen(context, actionBar, statusBar); sampleVideo.mSourcePosition = mSourcePosition; sampleVideo.mListItemRect = mListItemRect; sampleVideo.mListItemSize = mListItemSize; sampleVideo.mType = mType; sampleVideo.mUrlList = mUrlList; sampleVideo.mTypeText = mTypeText; sampleVideo.mSwitchSize.setText(mTypeText);
//在这绑定id
return sampleVideo;}
@override protected void init(Context context) { super.init(context); initView(); }
private void initView() { mSwitchSize = (TextView) findViewById(R.id.switchSize); //切换视频清晰度 mSwitchSize.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if (mHadPlay && !isChanging) { showSwitchDialog(); } } }); }
全屏时将对应处理参数逻辑赋给全屏播放器 *
- @param context
- @param actionBar
- @param statusBar
- @return */ @override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { SmartPickVideo sampleVideo = (SmartPickVideo) super.startWindowFullscreen(context, actionBar, statusBar); sampleVideo.mSourcePosition = mSourcePosition; sampleVideo.mListItemRect = mListItemRect; sampleVideo.mListItemSize = mListItemSize; sampleVideo.mType = mType; sampleVideo.mUrlList = mUrlList; sampleVideo.mTypeText = mTypeText; sampleVideo.mSwitchSize.setText(mTypeText);
//在这绑定id
return sampleVideo;} 搞定了,确实是这样的,不过好像是用已经有的控件给那个传进来的GSYBaseVideoPlayer的对应控件传值,而不是直接使用findviewById,谢谢大佬。
@override protected void init(Context context) { super.init(context); initView(); }
private void initView() { mSwitchSize = (TextView) findViewById(R.id.switchSize); //切换视频清晰度 mSwitchSize.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if (mHadPlay && !isChanging) { showSwitchDialog(); } } }); }
全屏时将对应处理参数逻辑赋给全屏播放器 *
- @param context
- @param actionBar
- @param statusBar
- @return */ @override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { SmartPickVideo sampleVideo = (SmartPickVideo) super.startWindowFullscreen(context, actionBar, statusBar); sampleVideo.mSourcePosition = mSourcePosition; sampleVideo.mListItemRect = mListItemRect; sampleVideo.mListItemSize = mListItemSize; sampleVideo.mType = mType; sampleVideo.mUrlList = mUrlList; sampleVideo.mTypeText = mTypeText; sampleVideo.mSwitchSize.setText(mTypeText);
//在这绑定id
return sampleVideo;}
额,还是有问题,我在这边尝试findViewById方法以及直接赋值的方法,但是非全屏时没问题,转化为全屏后就不行了,最后还是冲Controll类开始重写直接添加一个控件,后续有时间再研究下。还是谢谢大佬了。
我没做全屏的功能处理,我直接全屏时隐藏了,但是你可以试试在全屏绑定id时给它加一个点击的监听看看,应该有效果,自定义一个点击监听的接口,在页面监听一下,有回调就操作 * * @param context * @param actionBar 是否有actionBar,有的话需要隐藏 * @param statusBar 是否有状态bar,有的话需要隐藏 * @return */ @Override public GSYBaseVideoPlayer startWindowFullscreen(Context context, boolean actionBar, boolean statusBar) { GSYBaseVideoPlayer gsyBaseVideoPlayer = super.startWindowFullscreen(context, actionBar, statusBar); if (gsyBaseVideoPlayer != null) { StandardGSYVideoPlayer gsyVideoPlayer = (StandardGSYVideoPlayer) gsyBaseVideoPlayer; gsyVideoPlayer.setLockClickListener(mLockClickListener); gsyVideoPlayer.setNeedLockFull(isNeedLockFull()); initFullUI(gsyVideoPlayer); //比如你自定义了返回案件,但是因为返回按键底层已经设置了返回事件,所以你需要在这里重新增加的逻辑 } return gsyBaseVideoPlayer; }
目前使用了这个框架,在视频播放的时候,因为手机宽高比的原因,有些视频左右有黑边,有些视频上下有黑边,请问是否提供了可以代码设置视频内容宽高的方法?期待你的回复,谢谢
private fun getVideoScale(path: String): String {
val retriever = MediaMetadataRetriever()
retriever.setDataSource(path)
val width: String = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH)
val height: String = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT)
return width
}
文档提供这些接口
@CarGuo 我这边目前有m3u8,服务器做了加密,需求要请求的时候在http上面带上header给服务器,服务器给一个字符串客户端,客户端拿本地的秘钥去解密这个字符串,然后解出来的结果用来解密视频播放,这套逻辑应该怎么自定义?
@CarGuo 我这边目前有m3u8,服务器做了加密,需求要请求的时候在http上面带上header给服务器,服务器给一个字符串客户端,客户端拿本地的秘钥去解密这个字符串,然后解出来的结果用来解密视频播放,这套逻辑应该怎么自定义?
你看 Dev 分支,有自定义hls的代码,你需要就是处理给 AES128 Source 的 key
以下是我在自定义过程中,发现的关键节点,可以在这些节点修改逻辑,或者定制ui。希望对使用的朋友有点帮助。
播放器
显示与隐藏方法:这个显示底部,顶部,及其他控制按钮,
onClickUiToggle
点击锁回调和锁ui改变
lockTouchLogic
mLockCurScreen 锁的状态变量
//锁定屏幕点击
protected boolean mLockCurScreen = true;
//是否需要锁定屏幕
protected boolean mNeedLockFull = true;
GSYVideoControlView包含面板的点击事件
播放按钮:
updateStartImage
清晰度
showSwitchDialog
静音
GSYVideoManager.instance().setNeedMute(mute);
mMute.setOnClickListener点击事件
虚拟键隐藏
GSYVideoControlView
if (mHideKey && mIfCurrentIsFullscreen && mShowVKey) {
hideNavKey(mContext);
}
当前播放进度:
getCurrentPositionWhenPlaying
播放总时长
getDuration
@CarGuo 代码大概在dev分支的哪里?
你好,请问控件的进度条是否可以隐藏?
请问你隐藏了吗?如何实现的?
@MYaoDan 直接隐藏控件就可以了
请问大佬能加个QQ聊聊吗?774629431
------------------ 原始邮件 ------------------ 发件人: "wangrunxiang"<[email protected]>; 发送时间: 2020年7月13日(星期一) 上午10:23 收件人: "CarGuo/GSYVideoPlayer"<[email protected]>; 抄送: "ー牵?'挂"<[email protected]>; "Mention"<[email protected]>; 主题: Re: [CarGuo/GSYVideoPlayer] 关于自定义请看 (#410)
@MYaoDan 直接隐藏控件就可以了
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
getLayoutId的值想从xml传过来,但在执行此方法前拿不到AttributeSet的值,能否在init(Context)方法加上AttributeSet参数呢?
继承StandardGSYVideoPlayer,在类里面写了个回调提供给外部监听,当切换为横屏播放时,回调就变为null了,切换为竖屏时也还是正常的。请问大佬需要怎么处理呢
请问, 有在进度条上打关键点的功能吗?
请问能否像 ImageView 的 centerInside 属性一样,来根据每个视频宽高,动态调整以达到视频完全展示的效果(当然短边的黑边不可避免)
@CarGuo 作者您好,我用播放器自定义的界面,播放竖屏视频的时候,显示的播放视频只有中间的一个小方块并且显示不全,但是显示正常的大视频展示就是全屏的,什么方法可以让竖屏方法自适应显示呢
解决了,在以上的评论中找到了surface_container的空间,将控件的宽高改为了全屏