]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11229 - [verto_communicator]: deprecating use of URL.createObjectURL
authornetoguimaraes <joao.neto.guimaraes@gmail.com>
Fri, 13 Jul 2018 17:59:57 +0000 (14:59 -0300)
committernetoguimaraes <joao.neto.guimaraes@gmail.com>
Fri, 13 Jul 2018 18:03:47 +0000 (15:03 -0300)
html5/verto/js/src/jquery.FSRTC.js

index f4f79f0c8631f32252ccf6ee7b2afaf51d360298..46d8d5582cf3d356830107beea02c6c49d7e70f3 100644 (file)
     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.');
        }
 
         function streaming(stream) {
             if (options.localVideo) {
-                options.localVideo['src'] = window.URL.createObjectURL(stream);
+                options.localVideo['srcObject'] = stream;
                options.localVideo.style.display = 'block';
             }