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

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

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

    }

    override var currentTime: TimeInterval {
        playerView.getCurrentTime { [weak self] time, _ in
            self?.videoCurrentTime = time
        }
        return Double(videoCurrentTime)
    }
    
    override init(environment : Environment) {
        playerView = WKYTPlayerView()
        super.init(environment: environment)
        playerView.delegate = self
    }
