 
     // MARK: Player parameters and defaults
 
-    private func playerParameters() -> PlayerParameters {
-
-        // Fetch default playerVars
-        var playerVars = defaultPlayerVars()
+    private func playerParameters() -> YouTubePlayerParameters {
 
         return [
             "height": "100%",

/** Embed and control YouTube videos */
public class YouTubePlayer: UIView, UIWebViewDelegate {

    typealias PlayerParameters = [String: AnyObject]

    var webView: UIWebView!

    /** The readiness of the player */
    private(set) public var ready = false

    /** The current state of the video player */
    public var playerState = YouTubePlayerState.Unstarted

    /** The current playback quality of the video player */
    public var playbackQuality = YouTubePlaybackQuality.Small

    public var delegate: YouTubePlayerDelegate?

    // MARK: Various methods for initialization

        ]
    }

    private func playerCallbacks() -> YouTubePlayerParameters {
        return [
            "onReady": "onReady",
            "onStateChange": "onStateChange",
