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

(已解决)开始播放后,出现软件崩溃,偶尔不崩溃,不崩溃时播放器正常播放。 #3980

Closed
lm-rui opened this issue May 12, 2024 · 5 comments

Comments

@lm-rui
Copy link

lm-rui commented May 12, 2024

问题描述:

开始播放后,出现软件崩溃,偶尔不崩溃,不崩溃时播放器正常播放。

出现问题的视频流

http://vjs.zencdn.net/v/oceans.mp4

问题机型/系统:

真机 小米Mi10 Android7.0

GSY依赖版本

//基础包
implementation 'com.shuyu:gsyVideoPlayer-java:7.1.4'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.1.4'
//更多ijk的编码支持
implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.1.4'

Demo中的复现步骤

继承并重写播放器,增加了一个按钮功能,如文件所示。

fragment 页面的播放器点击开始播放后会出现这个问题。

问题代码:

[SampleVideo.zip](https://github.com/CarGuo/GSYVideoPlayer/files/15285891/SampleVideo.zip)

问题log:


xiaomi/umi/umi:13/TKQ1.221114.001/V816.0.3.0.TJBCNXM:user/release-keys
#00 pc000000000014001c3[anon:dalvik-main space(region space)]

@CarGuo
Copy link
Owner

CarGuo commented May 13, 2024

非 gsy demo 复现问题请自行调试解决
a08bc48c46f28e30aaeb2b5f4043e305

@CarGuo CarGuo closed this as completed May 13, 2024
@lm-rui
Copy link
Author

lm-rui commented May 13, 2024

抱歉,安卓调试不太会使用,平时都是用日志打印看问题具体出在哪儿,这个崩溃让我的日志打印大法失效了,实在不知道是哪里的问题,所以只附上了手机报错时的信息TT。
我使用的是 demo 中的 SimpleDetailActivityMode2.java 模板,只是移植到了 Fragment 中,然后播放器类继承 StandardGSYVideoPlayer 之后使用的是 SampleVideo.java 的模板也只是增加了一个按钮。是否是因为我混搭了播放器与 demo 导致不兼容?

非 gsy demo 复现问题请自行调试解决 编号:A08bc48c46f28e30aaeb2b5f4043e305

@lm-rui
Copy link
Author

lm-rui commented May 13, 2024

@CarGuo 我似乎没有找到对 SampleVideo.java 这个播放器进行调用的 demo,拜托可否指条明路?TT

@lm-rui
Copy link
Author

lm-rui commented May 14, 2024

@CarGuo 今天试了官方demo:SimplePlayer.java。无论是这个demo,还是我前面上传的改过的demo,都遇到了同样的问题和报错。
无筛选:
PixPin_2024-05-14_22-49-18
筛选ERROR后:
image

@lm-rui
Copy link
Author

lm-rui commented May 14, 2024

已解决,跟代码没关系。
解决方法:引入最新的依赖。

@lm-rui lm-rui changed the title 开始播放后,出现软件崩溃,偶尔不崩溃,不崩溃时播放器正常播放。 (已解决)开始播放后,出现软件崩溃,偶尔不崩溃,不崩溃时播放器正常播放。 May 14, 2024
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