1***@qq.com
1***@qq.com
  • 发布:2024-07-23 09:47
  • 更新:2024-07-23 09:47
  • 阅读:186

在webview嵌套html页面调用navigator.mediaDevices.getUserMedia()不存在

分类:HTML5+

需求是在app里面webview嵌套html页面,在html页面进行webrtc推流,目前调用navigator.mediaDevices.getUserMedia()方法报错,打印navigator是一个plus包裹的对象。
如下

{  
    "plus": {  
        "isReady": true,  
        "tools": Object{...},  
        "bridge": Object{...},  
        "obj": Object{...},  
        "accelerometer": Object{...},  
        "audio": Object{...},  
        "barcode": Object{...},  
        "cache": Object{...},  
        "camera": Object{...},  
        "contacts": Object{...},  
        "downloader": Object{...},  
        "gallery": Object{...},  
        "geolocation": Object{...},  
        "io": Object{...},  
        "maps": Object{...},  
        "messaging": Object{...},

怎么使用navigator.mediaDevices.getUserMedia()?

2024-07-23 09:47 负责人:无 分享
已邀请:

要回复问题请先登录注册