     }
 
     override var currentTime: TimeInterval {
-        playerView.getCurrentTime({ [weak self] (time, nil) in
+        playerView.getCurrentTime { [weak self] time, _ in
             self?.videoCurrentTime = time
-        })
+        }
         return Double(videoCurrentTime)
     }
+    
     override init(environment : Environment) {
         playerView = WKYTPlayerView()
-        barTintColor = UINavigationBar.appearance().barTintColor ?? environment.styles.navigationItemTintColor()
         super.init(environment: environment)
         playerView.delegate = self
     }

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

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

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