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

Small Refinements on Documentation #536

Merged
merged 3 commits into from
Sep 29, 2016
Merged

Small Refinements on Documentation #536

merged 3 commits into from
Sep 29, 2016

Conversation

toshi0383
Copy link
Contributor

  • Add tutorial tag to shakaExtern.RetryParameters
  • Add more description to Lisence Server Auth Sample Code

Properties like `backoffFactor` or `fuzzFactor` is a little difficult to
understand for new users.
Made it easier to figure out what it is.
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

Copy link
Member

@joeyparrish joeyparrish left a comment

Choose a reason for hiding this comment

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

One small nit, but it looks good otherwise. Also, make sure you've gone through the CLA process, which the CLA bot has pointed out. Thanks for the pull request!

@@ -89,6 +89,8 @@ We can use a request filter to modify the URL and add the required parameter:
// Only add headers to license requests:
if (type == shaka.net.NetworkingEngine.RequestType.LICENSE) {
// This is the specific parameter name and value the server wants:
// Note that there would be multiple uris for lisence server.
Copy link
Member

Choose a reason for hiding this comment

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

Small spelling error: "license". Also, it would be more accurate to say something like

"All network requests can have multiple URIs (for fallback), and therefore this is an array. But there should only be one license server URI."

@joeyparrish joeyparrish self-assigned this Sep 28, 2016
@googlebot
Copy link

CLAs look good, thanks!

@toshi0383
Copy link
Contributor Author

Fixed comment and rebased.
Also signed CLAs!

@@ -89,6 +89,10 @@ We can use a request filter to modify the URL and add the required parameter:
// Only add headers to license requests:
if (type == shaka.net.NetworkingEngine.RequestType.LICENSE) {
// This is the specific parameter name and value the server wants:
// Note that there would be multiple uris for license server.
// e.g. one for Widevine and one for PlayReady
Copy link
Member

Choose a reason for hiding this comment

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

I think this part is confusing. It implies that uris[0] might be Widevine, for example, while uris[1] might be PlayReady. This is not the case. For a license request, uris.length will always be 1, and uris[0] will always be the license server URI for the chosen key system.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's what I thought... I'll fix it.

// Note that there would be multiple uris for license server.
// e.g. one for Widevine and one for PlayReady
// All network requests can have multiple URIs (for fallback), and
// therefore this is an array. But there should only be one license server URI.
Copy link
Member

Choose a reason for hiding this comment

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

Style nit: please wrap this line at 80 columns.

@toshi0383
Copy link
Contributor Author

Fixed !

@joeyparrish joeyparrish merged commit d4cb981 into shaka-project:master Sep 29, 2016
@toshi0383 toshi0383 deleted the ts-doc-update branch September 29, 2016 15:01
joeyparrish pushed a commit that referenced this pull request Oct 19, 2016
* Add tutorial tag to shakaExtern.RetryParameters

Properties like `backoffFactor` or `fuzzFactor` is a little difficult to
understand for new users.  Link to the tutorial to explain.

* Additional Description to Sample Code

Explains why request.uris is an array.
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants