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

播放状态ConstantKeys.CurrentState.STATE_COMPLETED和ConstantKeys.CurrentState.STATE_BUFFERING_PLAYING定义感觉好像反了呢 #133

Open
WeiCharlie opened this issue Jan 9, 2023 · 2 comments

Comments

@WeiCharlie
Copy link

case ConstantKeys.CurrentState.STATE_COMPLETED:
            playStateString = "buffered";
            break;
        case ConstantKeys.CurrentState.STATE_BUFFERING_PLAYING:
            playStateString = "playback completed";
            break;

/**
* 视频播放完成回调
*/
@OverRide
public void onCompletion() {
mPlayerContainer.setKeepScreenOn(false);
mCurrentPosition = 0;
if (mProgressManager != null) {
//播放完成,清除进度
mProgressManager.saveProgress(mUrl, 0);
}
setPlayState(ConstantKeys.CurrentState.STATE_BUFFERING_PLAYING);
VideoPlayerConfig config = com.honda.thridlibrary.ycvideoplayer.video.player.VideoViewManager.getConfig();
if (config!=null && config.mBuriedPointEvent!=null){
//视频播放完成
config.mBuriedPointEvent.playerCompletion(mUrl);
}
}

@guoxiaodonggit
Copy link

自信点,确实状态回调错了,不过将错就错了

@wentaojava
Copy link

wentaojava commented Nov 14, 2023 via email

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

3 participants