Jandig icon indicating copy to clipboard operation
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.

Open rodrigocam opened this issue 6 years ago • 5 comments

Create a way to save and share images/videos inside ARte and share this content in different medias.

rodrigocam avatar Sep 01 '18 17:09 rodrigocam

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?

vjpixel avatar Sep 21 '19 16:09 vjpixel

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.

pablodiegoss avatar Sep 30 '19 13:09 pablodiegoss

@vjpixel please review

luccaepp avatar Feb 06 '20 20:02 luccaepp

This issue needs #36 to be properly tested.

vjpixel avatar Feb 10 '20 19:02 vjpixel

This is a very old feature we want to implement. We tried many times without success.

vjpixel avatar Jul 11 '21 01:07 vjpixel