         ]
     }
 
-    private func defaultPlayerVars() -> PlayerParameters {
-        return [
-            "playsinline": 1,
-            "controls": 0,
-            "autoplay": 1,
-            "disablekb": 1,
-            "rel": 0,
-            "modestbranding": 1,
-            "showinfo": 0
-        ]
-    }
-
-    private func playerCallbacks() -> PlayerParameters {
+    private func playerCallbacks() -> YouTubePlayerParameters {
         return [
             "onReady": "onReady",
             "onStateChange": "onStateChange",

/** 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


    // MARK: Player setup

    private func loadWebViewWithParameters(parameters: YouTubePlayerParameters) {

        // Get HTML from player file in bundle
        let rawHTMLString = htmlStringWithFilePath(playerHTMLPath())!
