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

老哥,这个视频播放好像有点bug #835

Open
SaltedFish-Extreme opened this issue Sep 4, 2023 · 3 comments
Open

老哥,这个视频播放好像有点bug #835

SaltedFish-Extreme opened this issue Sep 4, 2023 · 3 comments

Comments

@SaltedFish-Extreme
Copy link

竖屏播放有时候显示标题和返回按钮,并且可以手势操作调亮度声音,有时候就不行,不能手势操作,只显示下面的进度条和全屏键

横屏全屏播放的时候,有时候连续点击几次全屏键,就会变成点击全屏键只是显示和隐藏标题和返回键,并且点击返回键没有效果,不能转回竖屏播放,按手机的返回键播放界面会卡死,然后应用闪退😂

微信图片_20230904172359
微信图片_20230904172400

WeChat_20230904172724.mp4
@SaltedFish-Extreme
Copy link
Author

我就用的wiki示例代码,配置了MediaPlayer解码,然后在新页面播放视频,代码都是复制的😂

player.setUrl(model.videoUrl.decrypt()) //设置视频地址
        val controller = StandardVideoController(this) //视频控制器
        controller.addDefaultControlComponent(model.content, false) //设置标题
        player.setVideoController(controller) //设置控制器
        player.start() //开始播放,不调用则不自动播放
override fun onPause() {
        super.onPause()
        player.pause()
    }

    override fun onResume() {
        super.onResume()
        player.resume()
    }

    override fun onDestroy() {
        super.onDestroy()
        player.release()
    }


    @Deprecated("Deprecated in Java")
    @Suppress("DEPRECATION")
    override fun onBackPressed() {
        if (!player.onBackPressed()) {
            super.onBackPressed()
        }
    }

@Xxj-star
Copy link

Xxj-star commented Sep 7, 2023

作者停止更新了

@SaltedFish-Extreme
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