Skip to content

VideoPlayerCtrl onVideoPlayerEvent CLICKED 事件需要判断是否全屏 #847

Open
@DreamZhou

Description

@DreamZhou

如果全屏状态, 无法暂停.

        if (event === cc.VideoPlayer.EventType.CLICKED) {
            if (!this.videoPlayer.isFullscreen) {   // <------ 需要加此判断
                if (this.videoPlayer.isPlaying()) {
                    this.videoPlayer.pause();
                } else {
                    this.videoPlayer.play();
                }
            }
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions