Merge pull request #1535 in FS/freeswitch from ~NETOGUIMARAES/freeswitch:fix/deprecating_create_url to master

* commit 'fc6661ccb31bff245465a29ab0cc89db6d8c2fa2':
  FS-11229 - [verto_communicator]: deprecating use of URL.createObjectURL
This commit is contained in:
Brian West 2018-07-13 19:20:47 +00:00
commit 9bc84ac638
1 changed files with 1 additions and 3 deletions

View File

@ -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';
}