captureStream method

MediaStream captureStream()

The captureStream() method of the HTMLMediaElement interface returns a MediaStream object which is streaming a real-time capture of the content being rendered in the media element.

This can be used, for example, as a source for a WebRTC RTCPeerConnection.

Implementation

external MediaStream captureStream();