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

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


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"
