mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
dcc44df7e1
This is follow up work to the VideoPuppeteer changes that have it take snapshots to prevent racing. For this work the motivations are the same: prevent racing by querying a stable snapshot of video state, rather than making sequential JS requests to the browser between which video state may change. Much of the YouTubePuppeteer has been made internal, so the class can encapsulate its snapshotting. The property methods have been rolled into the snapshotted data named tuple to make it clear they're derived from snapshotted data. A number of broken parts of the code have been removed or reworked: - Disabling autoplay was not working and has been removed. This is partially addressed by using embedded URLs (in another commit) -- embedded videos do not play next video automatically. However, there may be merit in reinstating a working version of this in future if possible - particularly for videos that can't be embedded, which we have some of in our tests. - Ad skipping was not working. The getOption('ad', 'displaystate') JS call appears to always report an ad is not skippable even if it is. Code related to skipping ads has been removed for now, and ads are waited out. This may also be something worth revisiting if a working implementation is possible. *** Review feedback: update YT puppeteer to use more concise calling conventions, compatibility with changes to VideoPuppeteer. MozReview-Commit-ID: CCxf9ItFYtl --HG-- extra : rebase_source : 99aac08fd86d41e7fa3df9b00604dd583ca27bf8 |
||
---|---|---|
.. | ||
docs | ||
external_media_harness | ||
external_media_tests | ||
mach_commands.py | ||
MANIFEST.in | ||
README.md | ||
requirements-docs.txt | ||
requirements.txt | ||
setup.py |
external-media-tests
Documentation for this library has moved to https://developer.mozilla.org/en-US/docs/Mozilla/QA/external-media-tests.