MediaStreamAPI: Difference between revisions

Line 69: Line 69:
   // 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 getStream();
   readonly attribute stream;
   
   
   // Returns the same stream as getStream(), but also sets the captureAudio attribute.
   // Returns the same stream as 'stream', but also sets the captureAudio attribute.
   Stream captureStream();
   Stream captureStream();
   
   
   // When set, do not produce direct audio output. Audio output
   // When set, do not produce direct audio output. Audio output
   // is still sent to the streams created by getStream() or captureStream()
   // is still sent to 'stream'.
  // is called.
   // This attribute is NOT reflected into the DOM. It's initially false.
   // This attribute is NOT reflected into the DOM. It's initially false.
   attribute boolean captureAudio;
   attribute boolean captureAudio;
1,295

edits