Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions YouTubePlayer/YouTubePlayer/YouTubePlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public enum YouTubePlaybackQuality: String {
case HighResolution = "highres"
}

public protocol YouTubePlayerDelegate: class {
public protocol YouTubePlayerDelegate: AnyObject {
func playerReady(_ videoPlayer: YouTubePlayerView)
func playerStateChanged(_ videoPlayer: YouTubePlayerView, playerState: YouTubePlayerState)
func playerQualityChanged(_ videoPlayer: YouTubePlayerView, playbackQuality: YouTubePlaybackQuality)
Expand Down Expand Up @@ -86,7 +86,7 @@ public func videoIDFromYouTubeURL(_ videoURL: URL) -> String? {
open class YouTubePlayerView: UIView, WKNavigationDelegate {

public typealias YouTubePlayerParameters = [String: AnyObject]
public var baseURL = "about:blank"
public var baseURL = "https://www.youtube.com"

fileprivate var webView: WKWebView!

Expand Down