         } else {
             playbackState = .stopped
         }
-        
+
         self.setupPlayerItem(nil)
-        
+
         if let url = url {
             let asset = AVURLAsset(url: url, options: .none)
             self.setupAsset(asset)

        self.playbackState = .stopped
        self.playbackDelegate?.playerPlaybackDidEnd(self)
    }
    
    /// Updates playback to the specified time.
    ///
    /// - Parameters:

                        break
                    }
                }

            } else if keyPath == PlayerLoadedTimeRangesKey {

                // PlayerLoadedTimeRangesKey

                if let item = self._playerItem {
                    self.bufferingState = .ready

                    let timeRanges = item.loadedTimeRanges
                    if let timeRange = timeRanges.first?.timeRangeValue {
                        let bufferedTime = CMTimeGetSeconds(CMTimeAdd(timeRange.start, timeRange.duration))
