Pre-recorded-Media-Streaming/index-2.html
<script src="https://www.webrtc-experiment.com/MediaStreamer.js"> </script>
var streamer = new MediaStreamer(websocket, outputVideo);
streamer.stream(file);
websocket.onmessage = function(e) {
streamer.onstream(e.data);
};
mozCaptureStreamUntilEnded)partial interface HTMLMediaElement {
readonly attribute MediaStream stream;
MediaStream **captureStream** ();
MediaStream captureStreamUntilEnded();
readonly attribute boolean audioCaptured;
attribute any src;
};
We will be able to get stream from video like this:
video.src = 'your pre-recorded webm/etc. video';
var preRecordedStream = video. **captureStream** ();
peer.addStream ( preRecordedStream );
var videoStream = video.createMediaElementSource();
var audioStream = audio.createMediaElementSource();
"createMediaElementSource" is also landed on chrome M >= 30. It is also useful for streaming pre-recorded medias.
You can do all such things today!
In simple words; you can stream part of video from first WebM file; part of video from second WebM file and so on, in realtime!
Send MessageEnter your email too; if you want "direct" reply!