YoutubeKit icon indicating copy to clipboard operation
YoutubeKit copied to clipboard

YTSwiftyPlayer can't be released

Open fordringd2008 opened this issue 7 years ago • 0 comments

    let player = YTSwiftyPlayer(
        frame: CGRect(x: 0, y: 0, width: ScreenWidth, height: playHeight),
        playerVars: [.playsInline(true), .videoID(self.videoID), .loopVideo(true), .showRelatedVideo(false)])
    player.autoplay = true
    self.view.addSubview(player)
    player.loadPlayer()
    player.snp.makeConstraints { (make) in
        make.centerX.equalTo(self.view)
        make.centerY.equalTo(self.view).offset(-NavBarHeight / 2.0)
        make.width.equalTo(ScreenWidth)
        make.height.equalTo(playHeight)
    }
    self.playerT = player

fordringd2008 avatar Nov 07 '18 10:11 fordringd2008