Inject video files to test video-based scenarios with App Automate capability.
This feature is available only under Device Cloud Pro plan. For more details, check out our pricing page.
App Automate’s video injection feature lets you upload video files to BrowserStack devices to test video-based features. Video injection simulates the camera video function and uses the uploaded video as an input to mimic the camera video function.
Supported OS versions
BrowserStack supports video injection in the following OS versions:
OS
OS version
iOS
iOS 13 and above
Android
Android 9 and above
Upload video
Upload your desired video to BrowserStack using the following cURL command.
BrowserStack SDK is a plug-n-play solution that takes care of all the integration steps for you. Using the BrowserStack SDK is the recommended integration method for your project. To know more, visit the SDK core concepts page.
Use the following code snippet to enable Video injection:
Inject the uploaded video using BrowserStack’s custom executor with the action cameraVideoInjection as shown in the following code snippets. Ensure the video is injected before the camera is triggered in the app as the camera only captures the last injected video.
Add the logic to click the camera button in the mobile app after the logic to inject the uploaded video is added in the script. The video captured from the camera is the last injected video.
Did this page help you?
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked