From: netoguimaraes Date: Fri, 13 Jul 2018 17:59:57 +0000 (-0300) Subject: FS-11229 - [verto_communicator]: deprecating use of URL.createObjectURL X-Git-Tag: v1.8.1~3^2~212^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc6661ccb31bff245465a29ab0cc89db6d8c2fa2;p=thirdparty%2Ffreeswitch.git FS-11229 - [verto_communicator]: deprecating use of URL.createObjectURL --- diff --git a/html5/verto/js/src/jquery.FSRTC.js b/html5/verto/js/src/jquery.FSRTC.js index f4f79f0c86..46d8d5582c 100644 --- a/html5/verto/js/src/jquery.FSRTC.js +++ b/html5/verto/js/src/jquery.FSRTC.js @@ -232,8 +232,6 @@ FSRTCattachMediaStream = function(element, stream) { if (typeof element.srcObject !== 'undefined') { element.srcObject = stream; - } else if (typeof element.src !== 'undefined') { - element.src = URL.createObjectURL(stream); } else { console.error('Error attaching stream to element.'); } @@ -960,7 +958,7 @@ function streaming(stream) { if (options.localVideo) { - options.localVideo['src'] = window.URL.createObjectURL(stream); + options.localVideo['srcObject'] = stream; options.localVideo.style.display = 'block'; }