Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add webdriver for automated testing #6

Merged
merged 9 commits into from
Oct 13, 2024
Merged

add webdriver for automated testing #6

merged 9 commits into from
Oct 13, 2024

Conversation

Ender-Wang
Copy link
Contributor

No description provided.

The script downloads a video file if it doesn't exist and then converts it to VP8 video with Opus audio in a WebM container. This is done by re-encoding the video using FFmpeg. The script also extracts the original bitrate of the video and uses it to set the bitrate of the re-encoded video.
- startStreamerApp.sh: run streamer-app at its root dir as child process in webdriver
- webdriver.js:
1. enable a. webtransport support, b. headless mode, c. mute audio in chromedriver,
2. run streamer-app by executing the sh script, then catch the npm start output that includes the url where the streamer-app is started,
3. then open that url (driver.get(url)) to simulate goLive button click, which sends the encoded media tracks to server.
- startAudienceApp.sh: run audience-app at its root dir as child process in webdriver
- webdriver.js:
1. enable a. webtransport support, b. headless mode, c. mute audio in chromedriver,
2. run audience-app by executing the sh script, then catch the npm start output that includes the url where the audience-app is started,
3. then open that url (driver.get(url)) to simulate connect button click, then simulate choosing channel 'ninja' with another button click
@Ender-Wang Ender-Wang merged commit 7a016ab into master Oct 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant