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

集成SDK之后,进入播放页面,使用StandardGSYVideoPlayer发现进度条等UI变大了好多 #4073

Open
mysterymanX1 opened this issue Dec 23, 2024 · 8 comments

Comments

@mysterymanX1
Copy link

ac723120f47374a75fe743fbd1a2889

@mysterymanX1
Copy link
Author

@CarGuo 麻烦帮我看下

@CarGuo
Copy link
Owner

CarGuo commented Dec 23, 2024

a08bc48c46f28e30aaeb2b5f4043e305

@mysterymanX1
Copy link
Author

mysterymanX1 commented Dec 23, 2024

(!!!!请务必务必按照issue模板,修改 后提交问题!!!!,不按模板提Isuue删除处理)

(ps 首页问题集锦和demo请先了解一下!)

⚠️提问前建议先看看: https://mp.weixin.qq.com/s/HjSdmAsHuvixCH_EWdvk3Q

问题描述:

集成SDK之后,视频页面标题栏、底部进度条栏,播放按钮变大,正常的View放进视图中,无故会变大

出现问题的视频流

http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/prog_index.m3u8

问题机型/系统:

小米12SP Android14

GSY依赖版本

implementation 'com.github.CarGuo.GSYVideoPlayer:gsyvideoplayer:v10.0.0'

Demo中的复现步骤

集成之后直接调用setUp进行播放

问题代码:(如果有)

videoPlayer = findViewById(R.id.video_player) as StandardGSYVideoPlayer

    val source1 =
        "http://devimages.apple.com.edgekey.net/streaming/examples/bipbop_4x3/gear3/prog_index.m3u8"
    videoPlayer!!.setUp(source1, true, "测试视频")

    //增加title
    videoPlayer!!.titleTextView.visibility = View.VISIBLE
    //设置返回键
    videoPlayer!!.backButton.visibility = View.VISIBLE
    //设置旋转
    orientationUtils = OrientationUtils(this, videoPlayer)
    //设置全屏按键功能,这是使用的是选择屏幕,而不是全屏
    videoPlayer!!.fullscreenButton.setOnClickListener {
        // ------- !!!如果不需要旋转屏幕,可以不调用!!!-------
        // 不需要屏幕旋转,还需要设置 setNeedOrientationUtils(false)
        orientationUtils!!.resolveByClick()
        //finish();
    }
    //是否可以滑动调整
    videoPlayer!!.setIsTouchWiget(true)
    //设置返回按键功能
    videoPlayer!!.backButton.setOnClickListener { onBackPressed() }


    ///不需要屏幕旋转
    videoPlayer!!.isNeedOrientationUtils = false

    videoPlayer!!.startPlayLogic()

问题log(如果有)

xxxxxxx

![d4a6e66b10d5c3901fad2bdec387a27](https://github.com/user-attachments/assets/398ff76e-7e88-40ab-809c-7ab2c75a0676)
![Snipaste_2024-12-23_16-50-37](https://github.com/user-attachments/assets/9b8529de-5f36-49c5-8686-a9bc1bf4303b)
![Snipaste_2024-12-23_16-50-44](https://github.com/user-attachments/assets/c360e5ff-a8bf-4f89-a991-368ecf2acc1a)

https://github.com/user-attachments/assets/b1b323f9-1bba-48f2-aac1-ac5ca723b7f9



@CarGuo 

@CarGuo
Copy link
Owner

CarGuo commented Dec 23, 2024

直接跑 demo 是否有问题?

@mysterymanX1
Copy link
Author

mysterymanX1 commented Dec 23, 2024 via email

@mysterymanX1
Copy link
Author

横屏的时候就会变得很大,竖屏就是正常的 @CarGuo

@CarGuo
Copy link
Owner

CarGuo commented Dec 24, 2024

我这边 demo 测试正常

@mysterymanX1
Copy link
Author

好吧 我这再看看

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