Skip to content

Commit 420226c

Browse files
changes video inj
1 parent eefebf8 commit 420226c

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

docs/camera-image-injection-on-real-devices.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The Image and Video Injection processes leverages **Sensor Instrumentation** tec
7474

7575
## Supported Camera APIs
7676

77-
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.
77+
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.
7878

7979
<Tabs className="docs__val">
8080

@@ -95,14 +95,42 @@ Below given is the list of Camera APIs which are supported by LambdaTest Image I
9595
| Supported APIs |
9696
|----------------|
9797
| `CameraX` API is used. <br />📕 For details, please check [CameraX documentation](https://developer.android.com/training/camerax) |
98-
| `Camera` API is used. <br />📕 For details, please check [Camera documentation](https://developer.android.com/training/camera-deprecated)|
98+
| `Camera` API is used. <br />📕 For details, please check [Camera documentation] (https://developer.android.com/training/camera-deprecated)|
9999
| `Camera2` API is used. <br />📕 For details, please check [Camera2 documentation](https://developer.android.com/training/camera2)|
100100
| `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)|
101101
</div>
102102

103103
</TabItem>
104104
</Tabs>
105105

106+
## Supported Camera Video APIs
107+
108+
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.
109+
110+
<Tabs className="docs__val">
111+
112+
<TabItem value="bash" label="iOS >= version 13" default>
113+
114+
<div className="lambdatest__codeblock">
115+
| Supported APIs |
116+
|----------------|
117+
| `captureOutput(_:didOutput:from:)` method of `AVCaptureVideoDataOutputSampleBufferDelegate` protocol. <br /><br />📕 For details, please check [Apple Documentation](https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutputsamplebufferdelegate) |
118+
119+
</div>
120+
121+
</TabItem>
122+
123+
<TabItem value="powershell" label="Android >= version 13" default>
124+
125+
<div className="lambdatest__codeblock">
126+
| Supported APIs |
127+
|----------------|
128+
| `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) |
129+
</div>
130+
131+
</TabItem>
132+
</Tabs>
133+
106134
## Image and Video Injection in Real Device App Testing
107135

108136
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:

docs/video-injection.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ This tool is ideal for testing features such as:
6161
## How It Works
6262
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.
6363

64-
:::warning note
65-
- This feature is currently available on iOS only. Support for Android will be available soon.
66-
:::
67-
68-
6964
## Video Injection in App Automation
7065

7166
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.

0 commit comments

Comments
 (0)