You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/camera-image-injection-on-real-devices.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ The Image and Video Injection processes leverages **Sensor Instrumentation** tec
74
74
75
75
## Supported Camera APIs
76
76
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.
78
78
79
79
<TabsclassName="docs__val">
80
80
@@ -95,14 +95,42 @@ Below given is the list of Camera APIs which are supported by LambdaTest Image I
95
95
| Supported APIs |
96
96
|----------------|
97
97
| `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)|
99
99
| `Camera2` API is used. <br />📕 For details, please check [Camera2 documentation](https://developer.android.com/training/camera2)|
100
100
| `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)|
101
101
</div>
102
102
103
103
</TabItem>
104
104
</Tabs>
105
105
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
+
<TabsclassName="docs__val">
111
+
112
+
<TabItemvalue="bash"label="iOS >= version 13"default>
113
+
114
+
<divclassName="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
+
<TabItemvalue="powershell"label="Android >= version 13"default>
124
+
125
+
<divclassName="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
+
106
134
## Image and Video Injection in Real Device App Testing
107
135
108
136
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:
Copy file name to clipboardExpand all lines: docs/video-injection.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,6 @@ This tool is ideal for testing features such as:
61
61
## How It Works
62
62
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.
63
63
64
-
:::warning note
65
-
- This feature is currently available on iOS only. Support for Android will be available soon.
66
-
:::
67
-
68
-
69
64
## Video Injection in App Automation
70
65
71
66
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