WebRTC python unit tests inspired to '80s
Project description
VideoDrone
Test popular WebRTC Platforms with Selenium HQ and Python.
Your first Project
Install videodrone on a virtualenv
mkdir VideoDrones && cd VideoDrones
virtualenv -ppython3 env && source env/bin/activate
Installation
pip install videodrone
Create the following directories before executing videodrone
.
- y4m, where your preferred y4m files resides. They will be used randomically.
mkdir y4ms
wget https://media.xiph.org/video/derf/y4m/students_cif.y4m -O y4ms/students_cif.y4m
- driver, where your selenium drivers resides.
Run
VIDEODRONE_DRIVER
environment variable can override the driver path settings.
example, this connector is configured to create a drone party to https://meet.jit.si/thatroom
VIDEODRONE_DRIVER=../VideoDrone.orig/drivers/videodrone -c "videodrone.drones.jitsi_chrome" -r peo -y4m ./y4ms/
There will be a party of 4 drones in "thatroom"
videodrone -room thatroom -c "videodrone.drones.jitsi_chrome" -y4m ./y4ms/ -n 4
Output
INFO:__name__:Started drone <Process name='Process-1' pid=25900 parent=25898 started>
INFO:__name__:Started drone <Process name='Process-2' pid=25960 parent=25898 started>
INFO:__name__:Started drone <Process name='Process-3' pid=26155 parent=25898 started>
INFO:__name__:Started drone <Process name='Process-4' pid=26373 parent=25898 started>
INFO:__name__:Drone destroyed
INFO:__name__:Drone destroyed
INFO:__name__:Drone destroyed
INFO:__name__:Drone destroyed
What happens
Drone Connectors
Drone connectors are selenium browser macros, written in python, as simple as possibile. See videodrone.drones.jitsi_drone for example. Drone connectors must be packaged and installed, them must be available through your PYTHONPATH (sys.path).
Credits
Fabio Farina (Garr Consortium) Massimo Carboni (Garr Consortium) Garrlab community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file videodrone-0.7.0.tar.gz
.
File metadata
- Download URL: videodrone-0.7.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f14a176c730ae60ae27bb59d6ce274882e2c931df04a1a694ec8d43d6c2f53a1 |
|
MD5 | 8fbe2d28f34ce1d87de6b6c4ead3443e |
|
BLAKE2b-256 | 46e4fe2a0373baad1888aa5988e9dc890996540b94edab9bd88d35e8402ba582 |