1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-26 04:27:25 +00:00

FS-10420: [verto.js] Verto on Safari #resolve

This commit is contained in:
Anthony Minessale 2017-06-22 16:43:11 -05:00
parent e78f3f0c04
commit cda7343841
4 changed files with 4321 additions and 18 deletions
html5/verto
js/src
video_demo-live_canvas/js
video_demo/js

@ -230,20 +230,15 @@
} }
FSRTCattachMediaStream = function(element, stream) { FSRTCattachMediaStream = function(element, stream) {
if (element && element.id && attachMediaStream) { if (typeof element.srcObject !== 'undefined') {
attachMediaStream(element, stream); element.srcObject = stream;
} else if (typeof element.src !== 'undefined') {
element.src = URL.createObjectURL(stream);
} else { } else {
if (typeof element.srcObject !== 'undefined') { console.error('Error attaching stream to element.');
element.srcObject = stream;
} else if (typeof element.src !== 'undefined') {
element.src = URL.createObjectURL(stream);
} else {
console.error('Error attaching stream to element.');
}
} }
} }
function onRemoteStream(self, stream) { function onRemoteStream(self, stream) {
if (self.options.useVideo) { if (self.options.useVideo) {
self.options.useVideo.style.display = 'block'; self.options.useVideo.style.display = 'block';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long