Skip to main content

WebRTC python unit tests inspired to '80s

Project description

VideoDrone

Test popular WebRTC Platform 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 directory before executing videodrone.

  • y4m, where your preferred y4m files resides.
    • 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

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

Drone Connectors

Drone connectors are simple selenium browser macro written in pythom. See videodrone.drones.jitsi_drone for example. Drone connectors must be packaged and installed, or available in your PYTHONPATH (sys.path).

Credits

Fabio Farina

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

videodrone-0.6.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

videodrone-0.6.4-py3.8.egg (8.7 kB view details)

Uploaded Source

File details

Details for the file videodrone-0.6.4.tar.gz.

File metadata

  • Download URL: videodrone-0.6.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for videodrone-0.6.4.tar.gz
Algorithm Hash digest
SHA256 e07abe05d1725bcedcace7aba412bb51d477c3033ccf0a8f74c141074085c945
MD5 a71f19fe3947b13d647fd9f443d060c7
BLAKE2b-256 f2cdf3ab9f246a44231e8ba0a345347e64f89f69dab48926df8887b78ef45bdd

See more details on using hashes here.

File details

Details for the file videodrone-0.6.4-py3.8.egg.

File metadata

  • Download URL: videodrone-0.6.4-py3.8.egg
  • Upload date:
  • Size: 8.7 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

Hashes for videodrone-0.6.4-py3.8.egg
Algorithm Hash digest
SHA256 c1c5f0f9b399bf7276a4faa161c5de70ff06ae34245f7b5f50147386480718bd
MD5 6f66c490171b73b7c2aec80eeb416f5d
BLAKE2b-256 aaf9a2ea522ffb6c3fc9237dc30a3ce697bbe2d3e4ec0597f17f04b30afe4d19

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page