I am playing with getUserMedia
. Code is super simple:
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
var video = $('#video')[0];
navigator.getUserMedia({
audio: false,
video: true
}, function(stream){
video.src = (window.URL) ? window.URL.createObjectURL(stream) : stream;
video.play();
window.stream = stream;
}, function(error){ });
When I am accessing stream
I always see that id
and label
is always the same.
ended: false
id: "WgpeMZaOLc7LslcVmfumid0gaLLdNg0aWifl"
label: "WgpeMZaOLc7LslcVmfumid0gaLLdNg0aWifl"
onaddtrack: null
onended: null
onremovetrack: null
What is the reason to have them equal?