video_playback¶
Source code: video_playback.py
A video playback test.
Description¶
This test exposes options to assign file to play, loop, control ui, and time limitation.
Test Procedure¶
This is an automatic test that doesn’t need any user interaction.
Dependency¶
HTML <video> Tag
Examples¶
To record from camera and internal mics and playback immediately:
{
"pytest_name": "video_playback"
}
To play an video, you must put 720_h264.mp4 under video_playback_static:
{
"pytest_name": "video_playback",
"args": {
"video_file": "720_h264.mp4"
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
video_file |
str |
(optional; default: |
loop |
bool |
(optional; default: |
time_limit |
int |
(optional; default: |
show_controls |
bool |
(optional; default: |
audio_device |
str |
(optional; default: |
video_device |
str |
(optional; default: |