aframevr / aframevr/aframe

Camera not active in Ionic-iOS

Open
#4,159 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
17.6k
Forks
4.4k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproducible project at https://github.com/abroekhuis/ionic-aframe and compare A-Frame's camera behavior with the working getUserMedia/RTC API path. Investigate the reported blob: URL error and WKWebView local-file behavior; done means the camera view starts in Ionic/iOS without that console error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.