     open override func seekToLivePosition() {
         guard canSeek else { return }
         play()
-        seek(Double.infinity)
+        seek(.infinity)
     }
 
     open override func mute(_ enabled: Bool) {
-        if enabled {
-            player?.volume = 0.0
-        } else {
-            player?.volume = 1.0
-        }
+        player?.volume = enabled ? .zero : 1.0
     }
 
     open override func observeValue(forKeyPath keyPath: String?, of _: Any?,

    private var kvoViewBounds = 0

    private let characteristicsKey = "availableMediaCharacteristicsWithMediaSelectionOptions"
    private(set) var seekToTimeWhenReadyToPlay: TimeInterval?

    @objc internal dynamic var player: AVPlayer?

            return
        }

        let timeScale = Int32(NSEC_PER_SEC)
        let time = CMTimeMakeWithSeconds(timeInterval, preferredTimescale: timeScale)
        let tolerance = CMTime(value: 0, timescale: timeScale)

        trigger(.willSeek)

