You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fastSeek() method seeks an <audio> or <video> element as fast as possible, by seeking to a keyframe instead of
exactly the requested time.
The preservesPitch property for <audio> or <video> adjusts the pitch of audio to sound more natural when the playback rate is faster or slower than the default.
The showPicker() method for <input> elements shows the user interface for picking a value. For example, for <input type="date"> it shows the interface for picking a date.
The showPicker() method for <select> elements shows the dropdown menu or other user interface for picking one of the options.
We should document if we say <thing>, <thing> element, or HTMLThingElement.
The reason I have gone with <audio> and <video> is that it's less obvious what HTMLMediaElement is. And there are APIs that are only on HTMLAudioElement or HTMLVideoElement. Using the interface names here would mean no overlap talking about HTMLMediaElement for fastSeek(), but HTMLVideoElement for requestVideoFrameCallback(). I liked having <video> in both descriptions.
The downside with saying <audio> and <video> is that it's not as technically correct. Those strings refer to HTML syntax, but are used as a shorthand for everything about that element, including not just parsing rules but also APIs and all the algorithms for it.
The text was updated successfully, but these errors were encountered:
We have a mix of styles in descriptions so far:
fastSeek()
method seeks an<audio>
or<video>
element as fast as possible, by seeking to a keyframe instead ofexactly the requested time.
preservesPitch
property for<audio>
or<video>
adjusts the pitch of audio to sound more natural when the playback rate is faster or slower than the default.showPicker()
method for<input>
elements shows the user interface for picking a value. For example, for<input type="date">
it shows the interface for picking a date.showPicker()
method for<select>
elements shows the dropdown menu or other user interface for picking one of the options.We should document if we say
<thing>
,<thing>
element, orHTMLThingElement
.The reason I have gone with
<audio>
and<video>
is that it's less obvious whatHTMLMediaElement
is. And there are APIs that are only onHTMLAudioElement
orHTMLVideoElement
. Using the interface names here would mean no overlap talking aboutHTMLMediaElement
forfastSeek()
, butHTMLVideoElement
forrequestVideoFrameCallback()
. I liked having<video>
in both descriptions.The downside with saying
<audio>
and<video>
is that it's not as technically correct. Those strings refer to HTML syntax, but are used as a shorthand for everything about that element, including not just parsing rules but also APIs and all the algorithms for it.The text was updated successfully, but these errors were encountered: