gpt4 book ai didi

javascript - GetUserMedia iOS 问题?

转载 作者:太空狗 更新时间:2023-10-29 16:39:33 24 4
gpt4 key购买 nike

我在 HTML5 页面中使用以下代码。当我在 Android 和 PC (chrome) 上运行我的页面时,代码工作正常并且我得到了正确的 JavaScript alert(); 但是当我在 iOS 设备(如 iPhone 或 iPad)上运行相同的页面时,我没有得到任何东西(根本没有 alert())。

这是我的代码:

navigator.getUserMedia = ( navigator.getUserMedia || // use the proper vendor prefix
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia);

navigator.getUserMedia({video: true}, function() {
alert('camera is supported in your browser');
}, function() {
alert('camera is not supported in your browser!');
});

有什么我想念的吗?

如有任何帮助,我们将不胜感激。

最佳答案

一旦 iOS11 发布,它将在 2017 年秋季运行。

关于javascript - GetUserMedia iOS 问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37258597/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com