MediaStreamAPI: Difference between revisions

Line 61: Line 61:


  interface HTMLMediaElement {
  interface HTMLMediaElement {
   // Returns new stream of "what the element is playing" ---
   // 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. This stream never
   // seeking, or buffering), the stream is blocked. When the element
   // ends; if the element ends playback, the stream just blocks
   // is in the ended state, the stream is in the ended state.
  // and can resume if the element starts playing again.
   // 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 createStream();
   Stream getStream();
   
   
   // Like getStream(), but also sets the captureAudio attribute.
   // Returns the same stream as getStream(), but also sets the captureAudio attribute.
   Stream captureStream();
   Stream captureStream();
   
   
1,295

edits