 
     // MARK: Player setup
 
-    private func loadWebViewWithParameters(parameters: PlayerParameters) {
+    private func loadWebViewWithParameters(parameters: YouTubePlayerParameters) {
 
         // Get HTML from player file in bundle
         let rawHTMLString = htmlStringWithFilePath(playerHTMLPath())!

/** 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 parameters and defaults

    private func playerParameters() -> YouTubePlayerParameters {

        return [
            "height": "100%",
