aframe-ar
aframe-ar copied to clipboard
Safari11 on iOS 11 Public Beta4 Support
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.
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.