Trick-play API elements

The PSDK includes methods, properties, and events for implementing fast forward and rewind.

  • MediaPlayer.setRate
    Rate value Effect on playback
    2, 4, 8, 16 Switches to fast-forward mode with the specified multiplier faster than normal (for example, 4 is 4 times faster than normal)
    -2, -4, -8, -16 Switches to fast-rewind mode
    1 Switches to normal play mode (calling play is the same as setting the rate property to 1.0)
    0 Pauses (calling pause is the same as setting the rate property to 0.0)
    0.25, 0.5, 0.75 Switches to slow motion
  • MediaPlayer.getRate
  • PlaybackRateEvent.getRate
  • MediaPlayer.getLocalTime
  • MediaPlayerEvent.RATE_SELECTED
  • MediaPlayerEvent.RATE_PLAYING
  • MediaPlayerItem.isTrickPlaySupported
  • MediaPlayerItem.getAvailablePlaybackRates
  • MediaPlayerEvent.AD_BREAK_SKIPPED