Last active
August 29, 2015 14:02
-
-
Save BalajiIyengar/2c196c326642d5711d4f to your computer and use it in GitHub Desktop.
WEB-RTC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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