MediaStreamAPI: Difference between revisions

Line 67: Line 67:
   // 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();
   Stream createStream();
   
   
   // Like getStream(), but also sets the streamaudio attribute.
   // Like getStream(), 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 produced when getStream() or captureStream() is called.
   // is still sent to the streams created by createStream() or captureStream()
   attribute boolean streamaudio;
  // is called.
  // This attribute is NOT reflected into the DOM. It's initially false.
   attribute boolean captureAudio;
   
   
   // Can be set to a Stream. Blocked streams play silence and show the last video frame.
   // Can be set to a Stream. Blocked streams play silence and show the last video frame.
1,295

edits