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

docs: Fix Player#src API documentation. #4454

Merged
merged 2 commits into from
Jul 14, 2017

Conversation

misteroneill
Copy link
Member

The API docs for Player#src are inaccurate/incomplete.

Requirements Checklist

  • Feature implemented / Bug fixed
  • Reviewed by Two Core Contributors

src/js/player.js Outdated
* @param {Tech~SourceObject|Tech~SourceObject[]|string} [source]
* A SourceObject, an array of SourceObjects, or a string referencing
* a URL to a media source. If not provided, this method acts as a
* getter.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth recommending using an object rather than a string here so that source selection can take account of the source's type?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, thanks.

@gkatsev gkatsev merged commit 7579fc1 into videojs:master Jul 14, 2017
@misteroneill misteroneill deleted the fix-player-src-docs branch October 2, 2017 20:37
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.

3 participants