MediaStreamAPI: Difference between revisions

Line 190: Line 190:


  interface HTMLCanvasElement {
  interface HTMLCanvasElement {
   Stream createStream();
   readonly attribute Stream stream;
  };
  };


'createStream' produces a stream containing the "live" contents of the canvas as video frames, and no audio.
'stream' is a stream containing the "live" contents of the canvas as video frames, and no audio.


==== Examples  ====
==== Examples  ====
1,295

edits