mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 14:28:34 +00:00
FS-10688: [verto.js] Add hack for IOS11 #resolve
This commit is contained in:
1 parent
503db7b23f
commit
0ef7be6327
3 files changed
+21
-11
No files matched your search
@@ -242,6 +242,14 @@
|
||||
function onRemoteStream(self, stream) {
|
||||
if (self.options.useVideo) {
|
||||
self.options.useVideo.style.display = 'block';
|
||||
|
||||
// Hacks for Mobile Safari
|
||||
self.options.useVideo.setAttribute("playsinline", true);
|
||||
self.options.useVideo.setAttribute("controls", true);
|
||||
setTimeout(() => {
|
||||
self.options.useVideo.removeAttribute("controls");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
var element = self.options.useAudio;
|
||||
@@ -249,7 +257,9 @@
|
||||
|
||||
FSRTCattachMediaStream(element, stream);
|
||||
|
||||
self.options.useAudio.play();
|
||||
|
||||
|
||||
//self.options.useAudio.play();
|
||||
self.remoteStream = stream;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user