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: emphasize src object and video-js element #5960

Merged
merged 3 commits into from
Apr 29, 2019
Merged

Conversation

mister-ben
Copy link
Contributor

Favours using a source object as the argument to src() in the workflows doc, and adds <video-js> to the setup doc.

@@ -306,14 +306,16 @@ var myPlayer = videojs('some-player-id');
myPlayer.src('http://www.example.com/path/to/video.mp4');
```

When a string is provided as the source, Video.js will try to infer the video type from the file extension, but this iferrence will not work in all cases. It is recommended that the source is provided as an object including the type, as below.
Copy link
Member

@OwenEdwards OwenEdwards Apr 25, 2019

Choose a reason for hiding this comment

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

... but this inference will not work ...

Copy link
Member

@OwenEdwards OwenEdwards left a comment

Choose a reason for hiding this comment

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

One typo, otherwise LGTM.

@mister-ben
Copy link
Contributor Author

Thanks, fixed

@gkatsev gkatsev merged commit e1afa3e into videojs:master Apr 29, 2019
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