aframe-ar icon indicating copy to clipboard operation
aframe-ar copied to clipboard

Safari11 on iOS 11 Public Beta4 Support

Open osper66 opened this issue 7 years ago • 1 comments

Hi.

Currently I found this site by googling a word "a frame".

I have tried to this a frame-ar on Android Firefox and it works well.

And then I did for Sarari11 and Android Chrome, however they showed only forward camera's video.

Knowing Following site, I could access to their rear cameras.

https://webrtc.github.io/samples/src/content/devices/input-output/

Could you add these function in current code?

Thanks for advance.

osper66 avatar Aug 13 '17 11:08 osper66

Hi.

I could solve above problem by simple modification of "camera.js".

Following my modified code

var id = 'source-camera', title = 'Camera', videoElement = null , constraints = { audio : false, video : { // added facingMode : {. // added exact : "environment". // added } }
};

function start(opts) { // comment out
/* if (opts.constraints) { constraints = opts.constraints; } */

By this change, I could use rear camera on iOS11 and Android Chrome, but not working on ASUS Vivotab Note.

Please check this if you like.

osper66 avatar Aug 21 '17 15:08 osper66