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

Youtube Video Fix #2234

Merged
merged 4 commits into from
Sep 17, 2023
Merged

Youtube Video Fix #2234

merged 4 commits into from
Sep 17, 2023

Conversation

dennisrijsdijk
Copy link
Collaborator

Description of the Change

Fixes Youtube Video duration fetching. Youtube may reject requests to load the video, which means we can't fetch the duration. If this happened previously, the youtube video would load in the overlay (and sometimes succeed to play) while the backend would wait for 0 seconds. This could create situations where multiple videos would play, or setups would otherwise break.

With these changes, if the video effect is set to wait and there's an error retrieving the video duration, the effect logs an error message and stops without playing the video. If the effect is not set to wait, it'll continue to send the youtube video to the overlay. During testing, Youtube was more likely to block the iframe API in electron than the iframe API in the overlay, so this can help some videos to still play.

Applicable Issues

N/A

Testing

These changes were extensively tested for issues, and pre-existing setups relying on wait for video duration work properly again.

@ebiggz ebiggz merged commit 683ae70 into crowbartools:v5 Sep 17, 2023
1 check passed
@dennisrijsdijk dennisrijsdijk deleted the v5-youtube-fix branch July 31, 2024 10:22
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.

2 participants