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

Chore: Adding download reachability checks to other viewers #705

Merged
merged 2 commits into from
Mar 13, 2018
Merged

Chore: Adding download reachability checks to other viewers #705

merged 2 commits into from
Mar 13, 2018

Conversation

jeremypress
Copy link
Contributor

Tests on the way, adding checks for media and text viewers.

@boxcla
Copy link

boxcla commented Mar 7, 2018

Verified that @jeremypress has signed the CLA. Thanks for the pull request!

@@ -16,6 +16,9 @@ const MANIFEST = 'manifest.mpd';
const DEFAULT_VIDEO_WIDTH_PX = 854;
const DEFAULT_VIDEO_HEIGHT_PX = 480;

const SHAKA_CODE_UNEXPECTED_NETWORK_FAILURE = 1002;
Copy link
Contributor

Choose a reason for hiding this comment

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

You can get the error codes from shaka.util.Error.Code. So you should be able to do shaka.util.Error.Code.HTTP_ERROR instead of hard coding the number. Might be more future proof? docs at https://shaka-player-demo.appspot.com/docs/api/lib_util_error.js.html

@jeremypress jeremypress merged commit ac73b92 into box:master Mar 13, 2018
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.

4 participants