playbackSpeed property

double get playbackSpeed

Gets the current playback speed of the video.

Returns 1.0 for normal speed, 0.5 for half speed, 2.0 for double speed, etc.

Implementation

double get playbackSpeed;
set playbackSpeed (double speed)

Sets the playback speed for both video and audio (if present).

  • speed must be greater than 0.0.
  • Typical values: 0.5 (half speed), 1.0 (normal), 1.5, 2.0 (double speed).

Implementations should ensure that video and audio remain synchronized.

Implementation

set playbackSpeed(double speed);