Skip to content

Instantly share code, notes, and snippets.

@BalajiIyengar
Last active August 29, 2015 14:02
Show Gist options
  • Save BalajiIyengar/2c196c326642d5711d4f to your computer and use it in GitHub Desktop.
Save BalajiIyengar/2c196c326642d5711d4f to your computer and use it in GitHub Desktop.
WEB-RTC
http://lynckia.com/licode/install.html
http://dev.w3.org/2011/webrtc/editor/webrtc.html
http://www.html5rocks.com/en/tutorials/webrtc/basics/
MediaStream --> Get Access To Devices;
var constraints={video:true};
function successCallback(responseStream)
{
var video = document.querySelector("video");
video.src = window.URL.createObjectURL(responseStream);
}
function errorCallback(error)
{
console.log("Error Occured"+error);
}
navigator.getUserMedia(constraints,successCallback,errorCallback);
+
Web Audio
function getStream(responseStream)
{
var audioContext = new webkitAudioContext();
var mediaStreamSource = audioContext.createMediaStreamSource(responseStream);
mediaStreamSource.connect(audioContext.destination);
}
navigator.webkitGetUserMedia({audio:true},getStream);
RTCPeerConnection --> Communicating between peers
RTCDataChannel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment