-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Hotfix/multiple videos bug #835
Conversation
(isFinite(parseInt(this.el.data('yt-test-timeout'), 10))) ? | ||
parseInt(this.el.data('yt-test-timeout'), 10) : | ||
1500 | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not use ?: in multiline if
@wedaly Please review. |
|
@nedbat can you also review this fix and confirm (or at least give a probability over 95%) that this patch will fix our intermittent YouTube error (BLD-313)? |
@nedbat Should be ready for you r review. Putting up my comment from https://edx-wiki.atlassian.net/browse/BLD-313 : The following has been done to address the current issue (Video player doesn't play for some students):
then video is not rendered, and a message instead of the video is displayed. |
Update:
we continue loading YouTube video in-case that the timeout was to short, and that YouTube is accessible. In the case of China, or some other place where YouTube is unavailable, instead of the video, some page will be shown where the YouTube request is set to redirect (by external routers). |
When this is approved, can you make another branch off of release so that we may hotfix it? |
@@ -164,6 +164,12 @@ def get_html(self): | |||
sources = {get_ext(src): src for src in self.html5_sources} | |||
sources['main'] = self.source | |||
|
|||
# for testing Youtube timeout in acceptance tests | |||
if settings.__getattr__('VIDEO_PORT', None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getattr(settings, 'VIDEO_PORT', None) is better: it's very rare to call dunder methods directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thank you.
In fact, if this is going to be hotfixed, this branch needs to be rebased off of release for testing purposes |
Did a quick spot check on localdev and the video which had been failing to load on master is working on this branch |
👍 |
Adding yt_test_timeout option on the backend. Updating state.config to read yt test timeout from the attributes of video div. Add additional fallbacks. Add acceptance tests for supporting Youtube failover. Add yt-test-url to fixtures. Add Youtube failover parameters to tests. Wrapped HTML error message in i18n.
Carried over to https://github.com/edx/edx-platform/pull/850 and https://github.com/edx/edx-platform/pull/851 . Merged to master. |
[MCKIN-5253] Version bump to problem-builder v2.7.0
…eement-switch ENH: setting to remove platform name from registration page in honor link
This PR addresses the issue BLD-292: "If multiple video players are put on the same page, only one of them works".
@polesye Please update this description, adding any necessary information on what is being done. Also, assign someone for review.
@singingwolfboy Please review!