     }
 
     /// Stops playback of the media.
-    public func stop() {
+    open func stop() {
         if self.playbackState == .stopped {
             return
         }

    }

    /// Player view's initial background color.
    public var layerBackgroundColor: UIColor? {
        get {
            guard let backgroundColor = self._playerView.playerLayer.backgroundColor else { return nil }
            return UIColor(cgColor: backgroundColor)

            self.pause()
        }
    }
    
    // MARK: - Playback funcs

    /// Begins playback of the media from the beginning.
    open func playFromBeginning() {
        self.delegate?.playerPlaybackWillStartFromBeginning?(self)
        self._avplayer.seek(to: kCMTimeZero)
        self.playFromCurrentTime()
    }

    /// Begins playback of the media from the current time.
    open func playFromCurrentTime() {
        self.playbackState = .playing
        self._avplayer.play()
    }

    /// Pauses playback of the media.
    open func pause() {
        if self.playbackState != .playing {
            return
        }
