Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions docs/camera-image-injection-on-real-devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ The Image and Video Injection processes leverages **Sensor Instrumentation** tec

## Supported Camera APIs

Below given is the list of Camera APIs which are supported by LambdaTest Image Injection tool. Please ensure that your app uses these APIs only to enable Image Injection.
Below given is the list of Camera APIs which are supported by LambdaTest Image Injection tool. Please ensure that your app uses these APIs only to enable Video Injection.

<Tabs className="docs__val">

Expand All @@ -95,14 +95,42 @@ Below given is the list of Camera APIs which are supported by LambdaTest Image I
| Supported APIs |
|----------------|
| `CameraX` API is used. <br />📕 For details, please check [CameraX documentation](https://developer.android.com/training/camerax) |
| `Camera` API is used. <br />📕 For details, please check [Camera documentation](https://developer.android.com/training/camera-deprecated)|
| `Camera` API is used. <br />📕 For details, please check [Camera documentation] (https://developer.android.com/training/camera-deprecated)|
| `Camera2` API is used. <br />📕 For details, please check [Camera2 documentation](https://developer.android.com/training/camera2)|
| `ACTION_IMAGE_CAPTURE` is standard Intent action that can be sent to have the camera application capture an image and return it. <br /><br />📕 For details, please check [MediaStore documentation](https://developer.android.com/reference/android/provider/MediaStore)|
</div>

</TabItem>
</Tabs>

## Supported Camera Video APIs

Below given is the list of Camera APIs which are supported by LambdaTest Video Injection tool. Please ensure that your app uses these APIs only to enable Image Injection.

<Tabs className="docs__val">

<TabItem value="bash" label="iOS >= version 13" default>

<div className="lambdatest__codeblock">
| Supported APIs |
|----------------|
| `captureOutput(_:didOutput:from:)` method of `AVCaptureVideoDataOutputSampleBufferDelegate` protocol. <br /><br />📕 For details, please check [Apple Documentation](https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutputsamplebufferdelegate) |

</div>

</TabItem>

<TabItem value="powershell" label="Android >= version 13" default>

<div className="lambdatest__codeblock">
| Supported APIs |
|----------------|
| `ImageReader` class for accessing video frames from the camera output. <br /><br />📕 For details, please check [ImageReader documentation](https://developer.android.com/reference/android/media/ImageReader) |
</div>

</TabItem>
</Tabs>

## Image and Video Injection in Real Device App Testing

This feature helps you inject any video or image which you want your app to click or scan through the device camera. You just need to follow the steps given below:
Expand Down
5 changes: 0 additions & 5 deletions docs/video-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ This tool is ideal for testing features such as:
## How It Works
LambdaTest utilizes **Sensor Instrumentation** to integrate with various mobile sensors, including the camera. When you enable Video Injection for a session, LambdaTest injects its camera code module into your app through Sensor Instrumentation. This module then mocks or overrides the iOS SDK used in your app.

:::warning note
- This feature is currently available on iOS only. Support for Android will be available soon.
:::


## Video Injection in App Automation

This section explains how to use Video Injection with App automation. This section will also teach you how to use video injection for all the possible test cases for your app along with other useful information.
Expand Down
Loading