Skip to content

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

Description

@DreamZhou

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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