aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.61k stars 3.94k forks source link

Camera not active in Ionic-iOS #4159

Open abroekhuis opened 5 years ago

abroekhuis commented 5 years ago

Description: When using aframe in an Ionic based application, the camera is not started. Also the following error is given in the console log:

[Error] Not allowed to load local resource: blob:blobinternal:///480951e5-1001-423b-837f-2f6d1572d469

Some more details about the project, by default on iOS there is no webrtc when using Ionic. We use the iosrtc plugin to solve this. I can open the camera when using the rtc api (getUserMedia etc).

Ionic/iOS uses wkwebview, this view does have issues with getting local files. (see https://ionicframework.com/docs/v3/wkwebview/). I suspect this is related to the problem, but am not sure..

When plotting a simple box, I can see the box, but not the camera view.

abroekhuis commented 5 years ago

Some more info that might be helpful, looking in the "network" tab of the console, I see a request that fails:

URL: data:video/mp4;base64,...

dmarcos commented 5 years ago

This seems a like a ionic usage question. Likely more appropriate for StackOverflow