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

FLUID-4558: Error handling #92

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

acheetham
Copy link
Member

No description provided.

@@ -374,6 +488,13 @@ a.fl-videoPlayer-button-wrapper {
.fl-videoPlayer-languageMenu .fl-videoPlayer-menuItem:hover {
background-color: #ffcc00;
}
.fl-videoPlayer-languageMenu .fl-videoPlayer-menuItem-disabled:after {
/* TODO: This is not internationalizable */
content: " (unavailable)";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason you are doing this here if it's not internationalizable?

Conflicts:
	js/VideoPlayer_transcript.js
js/ErrorPanel.js Outdated
retryButton: ".flc-errorPanel-retryButton",
retryButtonText: ".flc-errorPanel-retryButton-text"
},
retryCallback: null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to expose a callback here instead of having an event that we can attach listeners to?

@acheetham
Copy link
Member Author

I've updated this branch to use an event for the retry callback, but I haven't yet addressed the other comments.

Regarding event on track load error, in Safari it seems the track element (not its TextTrack object) does fire an "error" event. We should use that when it's available. The Captionator polyfill does NOT fire this error.

* Arrays will work here as well.
*/
that.show = function (values) {
that.locate("message").text(fluid.stringTemplate(that.options.strings.messageTemplate, fluid.makeArray(values)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps instead of converting these to arrays and using %0 and %1 in the string template. We could switch to using %language and %medium in the template and change the values to being an object. This would probably make it easier to read the template and ensure that the correct data is put in each token.

@jobara
Copy link
Member

jobara commented Dec 5, 2012

@acheetham I ran through the unit tests. There seems to be some strange timing issues happening that are causing the tests to fail when the all-tests.html file is run. There is also an issue with the VideoPlayerIntegration-tests for "Video Player Error Handling Tests: Transcript (amara) load error", which works when run by itself but not as part of the test suite. Other than that the unit tests seem fine in Firefox. Webkit browsers seem to have more of these timing issues.

@jobara jobara changed the base branch from master to main October 22, 2020 13:40
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants