-1

Suppose I have a video element...

<video src="media.webm" />

Is it possible to set its playback rate in the markup? If so, what's the proper attribute name? Neither playbackRate nor defaultPlaybackRate seem to have any effect. Of course I can set these with JavaScript just fine, but I'm curious if there's some attribute I can set instead.

Brad
  • 159,648
  • 54
  • 349
  • 530

1 Answers1

1

sadly no, the playback speed can only be controlled by Javascript (as you discovered) using playbackRate:

var vid = document.getElementById("myVideo");
vid.playbackRate = 0.5;

it seems like an omission, but the markup spec doesn't include playbackRate as an attribute, just as a property that can be accessed

Offbeatmammal
  • 7,970
  • 2
  • 33
  • 52