YoutubeKit icon indicating copy to clipboard operation
YoutubeKit copied to clipboard

is there any way to change player backgroundColor?

Open tiskender2 opened this issue 5 years ago • 0 comments

youtubePlayer = YTSwiftyPlayer(
            frame: CGRect(x: 0, y: 0, width: postView.frame.size.width, height: postView.frame.size.height),
            playerVars: [
                .playsInline(true),
                .videoID(videoUrl.getVideoIDFromYoutubeUrl()),
                .loopVideo(false),
                .showRelatedVideo(false)
        ])
        youtubePlayer?.autoplay = true
        youtubePlayer?.backgroundColor = Color.videoBackground.value
        self.postView.addSubview(youtubePlayer ?? YTSwiftyPlayer())
        //youtubePlayer?.delegate = self
        youtubePlayer?.loadPlayer()

and i also want to know to hide morevideos when the video is stopped
thanks

tiskender2 avatar Jun 03 '20 14:06 tiskender2