1,295
edits
Line 61: | Line 61: | ||
interface HTMLMediaElement { | interface HTMLMediaElement { | ||
// Returns | // Returns the stream of "what the element is playing" --- | ||
// whatever the element is currently playing, after its | // whatever the element is currently playing, after its | ||
// volume and playbackrate are taken into account. | // volume and playbackrate are taken into account. | ||
// While the element is not playing (e.g. because it's paused, | // While the element is not playing (e.g. because it's paused, | ||
// seeking, or buffering), the stream is blocked. | // seeking, or buffering), the stream is blocked. When the element | ||
// | // is in the ended state, the stream is in the ended state. | ||
// When something else causes this stream to be blocked, | // When something else causes this stream to be blocked, | ||
// we block the output of the media element. | // we block the output of the media element. | ||
Stream | Stream getStream(); | ||
// | // Returns the same stream as getStream(), but also sets the captureAudio attribute. | ||
Stream captureStream(); | Stream captureStream(); | ||
edits