When and How to inject the image using Appium-Javascript?

When and How to inject the image using Appium-Javascript?

Hi Macy-Davis,

Please refer to the code snippet below and make sure that the image needs to be injected before the camera is triggered in your application:

driver.execute_script("lambda-image-injection=media_url") //Add media_url here