We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling the stopViedo() method causes a memory leak. I only used events on the UI button
class ViewController: UIViewController { private var ytPlayer: YTPlayerView private let stop = UIButton() init(ytPlayer: YTPlayerView = YTPlayerView()) { self.ytPlayer = ytPlayer super.init(nibName: nil, bundle: nil) self.ytPlayer.load( withVideoId: "VideoID", playerVars: [ "autoplay": 0, "playsinline" : 1, "cc_load_policy" : 1, "loop" : 1, "playlist" : "VideoID", "fs": 0]) stop.addTarget(self, action: #selector(test), for: .touchUpInside) } @objc func test() { ytPlayer.stopVideo() } }
How do you solve this issue?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Calling the stopViedo() method causes a memory leak.
I only used events on the UI button
How do you solve this issue?
The text was updated successfully, but these errors were encountered: