Jandig
Jandig copied to clipboard
As an user, I want to take pictures and share them, so I can show my friends what I'm seeing.
Create a way to save and share images/videos inside ARte and share this content in different medias.
We tried to do that, but the result wasn't satisfactory.
@pablodiegoss @rodrigocam can you please describe the problems you found when you worked on this?
Taking pictures inside the params of Jandig isn't a normal "screenshot". We need to capture the 3D scene with the virtual objects and the camera stream, we achieved that using the data from our canvas, but the WebRTC getusermedia camera delivers an image that is rotated 90degrees, as we screenshot the canvas we get a base64 encoding, so we need to rotate base64 data to save it in the correct orientation. (Rotating the base64 encoding led to some infinite loop where it download hundreds of images on your device)
Besides that, in PWA the "take a photo" button was really a download button, so when the user clicks on the button we get the 3D canvas and transform it into a link with the data making the user download it, but this solution often returns a "network error" or "unknown" error in some devices that we couldn't track and debug why.
The result we got with this feature was saving a rotated photo on the device and sometimes the user got errors that didn't made sense.
@vjpixel please review
This issue needs #36 to be properly tested.
This is a very old feature we want to implement. We tried many times without success.