mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FS-10688: [verto.js] Add hack for IOS11 #resolve
This commit is contained in:
@@ -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