提交 0ef7be63 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-10688: [verto.js] Add hack for IOS11 #resolve

上级 503db7b2
...@@ -242,6 +242,14 @@ ...@@ -242,6 +242,14 @@
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';
// 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; var element = self.options.useAudio;
...@@ -249,7 +257,9 @@ ...@@ -249,7 +257,9 @@
FSRTCattachMediaStream(element, stream); FSRTCattachMediaStream(element, stream);
self.options.useAudio.play();
//self.options.useAudio.play();
self.remoteStream = stream; self.remoteStream = stream;
} }
......
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论