1

所以,我正在制作一个 AR 应用程序,并有一些在 pc 浏览器上运行良好的基本代码。

激活网络摄像头的代码如下:

        //handle arToolkitSource
        var arToolkitSource = new THREEx.ArToolkitSource({
            // to read from the webcam 
            sourceType : 'webcam',  
        })

当我使用 android 设备时,我收到错误:

网络摄像头错误名称:NotFoundError 消息:在此处找不到对象。

但是,我希望这段代码也可以在 android 浏览器上运行,所以你认为有解决这个问题的方法吗?

我用作模板的代码可以在此链接中找到:

https://github.com/jeromeetienne/AR.js/blob/master/three.js/examples/basic.html

4

0 回答 0