IOS 11中的Safari WebRTC支持

IOS 11中的Safari WebRTC支持,ios,webrtc,ios11,Ios,Webrtc,Ios11,我们在ios11中使用WebRTC开发了一个应用程序,它说它支持WebRTC,但该应用程序在ios11上的Safari中不工作。在Safari浏览器上,我们需要做些什么来支持这一点?我们需要对脚本进行任何更改吗?请提供帮助。您是否获得了最后一个假定与浏览器兼容的adapter.js 这是一个适用于我的示例代码 // create video element first var video = document.createElement('video'); video.style.width

我们在
ios11
中使用
WebRTC
开发了一个应用程序,它说它支持
WebRTC
,但该应用程序在
ios11
上的
Safari
中不工作。在
Safari
浏览器上,我们需要做些什么来支持这一点?我们需要对脚本进行任何更改吗?请提供帮助。

您是否获得了最后一个假定与浏览器兼容的adapter.js


这是一个适用于我的示例代码

// create video element first 
var video = document.createElement('video');
video.style.width = document.width + 'px';
video.style.height = document.height + 'px';
video.setAttribute('autoplay', '');
video.setAttribute('muted', '');
video.setAttribute('playsinline', '');
document.body.appendChild(video);

 //setup your constraints 
  constraints = {
     audio: false,
     video: {
       facingMode: front
      }
   }

  //ask navigator to allow access 
 navigator.mediaDevices.getUserMedia(constraints).then(function 
 success(stream) {
   video.srcObject = stream; 
 });
});

欢迎来到堆栈溢出。请阅读。