cancel
Showing results for 
Search instead for 
Did you mean: 

Images getting replaced in DOM in SAP UI5 Camera functionality.

Shailesh_Pawar
Explorer
0 Kudos

Greeting Experts,

I am working on Camera Functionality in UI5. My purpose is to capture image in UI5 using HTML video tag and place image in VBox control. I am following this blog. While Capturing second/another image, all previously captured images are replaced by new one, e.g: while clicking first image-

After capturing another image:

Here is a code for my controller:

view3.txt

Kindly please suggest me some solution about it.

Regards,

Shailesh

View Entire Topic
cbsmerveguel
Explorer
0 Kudos

Hi Sailesh,

Could you please place the "this.fixedDialog.attachBeforeClose(that.setImage, that);" statement into the "beginButton" press event, right above the dialog close statement? Basically, to the line 25 (from the shared example blog)? If it does not work, please handle some debugging and share your observation if you need any help.

Best,

Merve

Shailesh_Pawar
Explorer
0 Kudos

Hi merveguel ,

Thanks for responding, I have made changes as you said, but same issue still persisting and nothing changes in my debugging observations. In VBox, canvas is updating for every image but image value is replacing after every camera click in each canvas. Please do check on it if possible.

Regards,

Sailesh