Skip to content

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

@WeiCharlie

Description

@WeiCharlie
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);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions