Use `HTMLMediaElement.srcObject` instead or createObjectURL.
parent
b845607b7d
commit
ca81f496db
|
|
@ -35,7 +35,7 @@ function pageReady() {
|
||||||
|
|
||||||
function getUserMediaSuccess(stream) {
|
function getUserMediaSuccess(stream) {
|
||||||
localStream = stream;
|
localStream = stream;
|
||||||
localVideo.src = window.URL.createObjectURL(stream);
|
localVideo.srcObject = stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
function start(isCaller) {
|
function start(isCaller) {
|
||||||
|
|
@ -85,7 +85,7 @@ function createdDescription(description) {
|
||||||
|
|
||||||
function gotRemoteStream(event) {
|
function gotRemoteStream(event) {
|
||||||
console.log('got remote stream');
|
console.log('got remote stream');
|
||||||
remoteVideo.src = window.URL.createObjectURL(event.stream);
|
remoteVideo.srcObject = event.stream;
|
||||||
}
|
}
|
||||||
|
|
||||||
function errorHandler(error) {
|
function errorHandler(error) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue