W3C home > Mailing lists > Public > public-media-capture@w3.org > January 2013

How to direct audio/vido streams from HTML5 media element to PeerConnection?

From: LiLi (Z) <Li.NJ.Li@huawei.com>
Date: Wed, 30 Jan 2013 21:28:49 +0000
To: "public-media-capture@w3.org" <public-media-capture@w3.org>
Message-ID: <B60F8F444AAC9C49A9EF0D12D05E0942220A75F9@dfweml513-mbx.china.huawei.com>
I wonder if it is possible to send the audio/video streams from a HTML5 <audio>/<video> element to a RTCPeerConnection object [1], such that when played, the stream is display locally and sent to the remote peer.

The easiest way to do this is to drop the HTML5 audioTrack and videoTrack objects [2] obtained from the HTML5 element into the constructor of MediaStream [3].
But this doesn't seem possible as the HTML5 audioTrack and videoTrack interfaces are unrelated to the MediaStreamTrack interface accepted by the constructor.


[1] http://www.w3.org/TR/webrtc/#peer-to-peer-connections
[2] http://www.w3.org/TR/html5/embedded-content-0.html#htmlmediaelement
[3] http://www.w3.org/TR/mediacapture-streams/#mediastreamtrack
Received on Wednesday, 30 January 2013 21:29:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:24:38 UTC