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

exo模式,视频播放完成后拖动进度条,有声音无画面 #2813

Closed
wdeo3601 opened this issue Jul 2, 2020 · 4 comments
Closed

Comments

@wdeo3601
Copy link

wdeo3601 commented Jul 2, 2020

问题描述:

demo里的 自定义EXO 播放视频,播放完成后再去拖动进度条,这时候会有音频继续播放,但是没有画面。ijk模式无此问题。

问题机型/系统:

三星S8/android9.0

GSY依赖版本

    GSYVideoPlayerVersion=7.1.4
    //GSYVideoPlayer 视频播放
    implementation "com.shuyu:gsyVideoPlayer-java:$GSYVideoPlayerVersion"
    implementation "com.shuyu:GSYVideoPlayer-exo2:$GSYVideoPlayerVersion"
    implementation "com.shuyu:gsyVideoPlayer-armv5:$GSYVideoPlayerVersion"
    implementation "com.shuyu:gsyVideoPlayer-armv7a:$GSYVideoPlayerVersion"
    implementation "com.shuyu:gsyVideoPlayer-x86:$GSYVideoPlayerVersion"

Demo中的复现步骤

Demo中的 自定义EXO 点击进入后,播放完成后拖动进度条。

问题代码:(如果有)

xxxxxxx

问题log(如果有)


xxxxxxx

@CarGuo
Copy link
Owner

CarGuo commented Jul 3, 2020

我没记错的话,播放完之后拖动应该不会继续播放呀,直接切换到 exo 内核模式试试,不要试 demo 的 自定义

@wdeo3601
Copy link
Author

wdeo3601 commented Jul 3, 2020

我没记错的话,播放完之后拖动应该不会继续播放呀,直接切换到 exo 内核模式试试,不要试 demo 的 自定义

嗯,我昨天先是在我自己的项目里试了下,发现播放完后拖动会有声音,然后又用 demo 试了下,demo里切换 exo、自定义exo,都是播放完后拖动有声音,切换到ijk就是正常的。。

@CarGuo
Copy link
Owner

CarGuo commented Jul 3, 2020

那还真得做处理,重载下 onCompletion , 和 onAutoCompletion 方法,增加:

    mHadPlay = false;

CarGuo added a commit that referenced this issue Jul 3, 2020
@wdeo3601 wdeo3601 closed this as completed Jul 3, 2020
CarGuo added a commit that referenced this issue Jul 3, 2020
@CarGuo
Copy link
Owner

CarGuo commented Jul 3, 2020

8d0d0d3cfdcef1

CarGuo added a commit that referenced this issue Dec 30, 2021
CarGuo added a commit that referenced this issue Dec 30, 2021
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