HTMLMediaElement: defaultPlaybackRate property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("HTML DOM")}}
The **HTMLMediaElement.defaultPlaybackRate** property indicates the default playback rate for the media.
Value
A double. 1.0 is "normal speed," values lower than 1.0 make the media play slower than normal, higher values make it play faster.
Exceptions
NotSupportedError{{domxref("DOMException")}}- : Thrown if the specified value is not supported.
Examples
js
const obj = document.createElement("video");
console.log(obj.defaultPlaybackRate); // 1Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{domxref("HTMLMediaElement")}}: Interface used to define the
HTMLMediaElement.defaultPlaybackRateproperty