         }
     }
 
-    fileprivate func toggleVisibility() {
-        if showControls {
-            show(animated: true) { [weak self] in
-                self?.disappearAfterSomeTime(self?.longTimeToHideMediaControl)
-            }
+    private func toggleVisibility() {
+        guard controlsEnabled else { return }
+        
+        show(animated: true) {
+            self.disappearAfterSomeTime(self.longTimeToHideMediaControl)
         }
     }
 

                }
            }

            listenTo(playback, eventName: Event.error.rawValue) { [weak self] _ in
                self?.showControls = false
            }
        }
    }


    private func bindPlaybackEvents() {
        if let playback = activePlayback {
            listenTo(playback, event: .ready) { [weak self] _ in
                self?.controlsEnabled = true
            }
            }

            listenTo(playback, eventName: Event.didComplete.rawValue) { [weak self] _ in
