       return false
     }
   }
-  
+
   func enableShuffle() {
     hysteriaPlayer.setPlayerShuffleMode(.On)
   }
-  
+
   func disableShuffle() {
     hysteriaPlayer.setPlayerShuffleMode(.Off)
   }
-  
+
   // Repeat Methods
   func repeatStatus() -> (Bool, Bool, Bool) {
     switch hysteriaPlayer.getPlayerRepeatMode() {

      return (false, false, true)
    }
  }
  
  func enableRepeat() {
    hysteriaPlayer.setPlayerRepeatMode(.On)
  }
  
  func enableRepeatOne() {
    hysteriaPlayer.setPlayerRepeatMode(.Once)
  }
  
  func disableRepeat() {
    hysteriaPlayer.setPlayerRepeatMode(.Off)
  }
  
  func seekTo(slider: UISlider) {
    let duration = hysteriaPlayer.getPlayingItemDurationTime()
    if isfinite(duration) {
      let minValue = slider.minimumValue
      let maxValue = slider.maximumValue
      let value = slider.value
      
      let time = duration * (value - minValue) / (maxValue - minValue)
      hysteriaPlayer.seekToTime(Double(time))
    }

    }
    return nil
  }

  func currentIndex() -> Int {
    let index: NSNumber = hysteriaPlayer.getHysteriaIndex(hysteriaPlayer.getCurrentItem())
    return Int(index)
  }

  private func fetchAndPlayAtIndex(index: Int) {
    hysteriaPlayer.fetchAndPlayPlayerItem(index)
  }

  func playingItemDurationTime() -> Float {
    return hysteriaPlayer.getPlayingItemDurationTime()
  }
