         var playsinline = 0
         var start = 0
         var value: [String:Int] {
-            get{
+            get {
                 return [
                     "playsinline": playsinline,
                     "autohide": 1,

        createYoutubePlayer()
    }
    
    override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        playerView.stopVideo()
        UINavigationBar.appearance().barTintColor = barTintColor
    }

    private func createYoutubePlayer() {
        loadingIndicatorView.startAnimating()
        UINavigationBar.appearance().barTintColor = .black
        view.addSubview(playerView)
    }


    let playerView: WKYTPlayerView
    var videoID: String = ""
    private var videoCurrentTime: Float = 0.0

    private lazy var errorMessageLabel: UILabel = {
        let label = UILabel()
