PluginRTC: IE/Safari Plugins compatible WebRTC-Experiments
This repository is a sub-part of: https://github.com/muaz-khan/WebRTC-Experiment
This repository isn't providing WebRTC plugins. It is simply using existing plugins in WebRTC-Experiments & Libraries e.g. RTCMultiConection.js, DataChannel.js and especially RecordRTC.js and MediaStreamRecorder.js.
=
- RTCMultiConection.js -
npm install rtcmulticonnection
Scroll to bottom to see how to use these plugins within other WebRTC Experiments.
=
- https://github.com/sarandogou/webrtc-everywhere#downloads
- https://temasys.atlassian.net/wiki/display/TWPP/Downloads+and+Installing
=
First step; link any of the following:
<script src="//cdn.webrtc-experiment.com/Plugin.EveryWhere.js"></script>
<!-- or -->
<script src="//cdn.webrtc-experiment.com/Plugin.Temasys.js"></script>
Second step; add following code:
var Plugin = {};
window.onPluginRTCInitialized = function(pluginRTCObject) {
Plugin = pluginRTCObject;
MediaStreamTrack = Plugin.MediaStreamTrack;
RTCPeerConnection = Plugin.RTCPeerConnection;
RTCIceCandidate = Plugin.RTCIceCandidate;
RTCSessionDescription = Plugin.RTCSessionDescription;
};
if (!!window.PluginRTC) window.onPluginRTCInitialized(window.PluginRTC);
Now you can use Plugin
object like this:
// capture video
Plugin.getUserMedia({video: true}, function(stream) {
Plugin.attachMediaStream( DOMLoaded_HTML_Video_Element, stream );
}, function(error) {});
=
- Personal Webpage — http://www.muazkhan.com
- Email — [email protected]
- Twitter — https://twitter.com/muazkh and https://twitter.com/WebRTCWeb
=
PluginRTC is released under MIT licence . Copyright (c) Muaz Khan.