Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Fetch camera image as <video> #63

Open
kyasbal opened this issue May 4, 2018 · 2 comments
Open

Fetch camera image as <video> #63

kyasbal opened this issue May 4, 2018 · 2 comments

Comments

@kyasbal
Copy link

kyasbal commented May 4, 2018

As far as I see, this browser uses custom API to show video image since WebView on iOS is not supporting getUserMedia API. If this logic is working with getUserMedia, I think I could get <video> tag easily. But, how can I get camera image with WebARonARKit?

@VioletteA
Copy link

Hi,

I had the same problem (see issue #48 ). You can access to the video (frame by frame) by setting SEND_CAMERA_FRAME_TO_JS to true (in ViewController.m).

Then, (if I keep the same notation as in the examples), in js the frames will be accessible in arView.vrDisplay.passThroughCameraImage_.src

@kyasbal
Copy link
Author

kyasbal commented Jul 7, 2018

@VioletteA Thank you for your valuable information. I will try that! 😸

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants