Use trick play mode (FF and REW) and slow motion

You can set up your player to allow the user to fast forward, rewind, play in slow motion, and resume playing at a normal speed.

This feature allows your video player to switch from normal playback (1x) to fast forward or fast rewind mode; these features are collectively known as trick play. The transition from normal play mode to trick play is performed by setting the rate on the MediaPlayer to a trick-play value.

The PSDK dispatches events related to trick play:
  • MediaPlayerEvent.RATE_SELECTED when the rate value changes to a different value.
  • MediaPlayerEvent.RATE_PLAYING when playback resumes at the selected rate
  • Both of these events when returning from trick-play mode to normal play mode because the PSDK internally sets the rate to normal play

The MediaPlayerItem class exposes the allowed playback rates. The PSDK automatically selects the closest allowed rate if the set rate is not in the list of allowed rates.