         webView = UIWebView()
         webView.isOpaque = false
         webView.backgroundColor = UIColor.clear
-        webView.allowsInlineMediaPlayback = true
+        webView.allowsInlineMediaPlayback = false
         webView.mediaPlaybackRequiresUserAction = false
         webView.delegate = self
         webView.scrollView.isScrollEnabled = false

        evaluatePlayerCommand("nextVideo()")
    }
    
    fileprivate func evaluatePlayerCommand(_ command: String) -> String? {
        let fullCommand = "player." + command + ";"
        return webView.stringByEvaluatingJavaScript(from: fullCommand)
    }


import UIKit

public enum VideoControlsState: String {
    case DoNotDisplay = "0"
    case DisplayImmediately = "1"
    case DisplayAfterInitiatesVideoPlayback = "2"
    case Unknown
}

public enum YouTubePlayerState: String {
    case Unstarted = "-1"
    case Ended = "0"
