1
0
mirror of https://github.com/videojs/video.js.git synced 2025-09-16 09:26:56 +02:00

Changed VideoJS -> videojs in api.md

I think, it's the proper name of the component in the default set.
This commit is contained in:
fluf1024
2013-06-20 08:13:02 +02:00
parent 85c6b46ec8
commit 93c6645744

View File

@@ -6,7 +6,7 @@ Referencing the Player
----------------------
To use the API functions, you need access to the player object. Luckily this is easy to get. You just need to make sure your video tag has an ID. The example embed code has an ID of "example\_video_1". If you have multiple videos on one page, make sure every video tag has a unique ID.
```js
var myPlayer = VideoJS("example_video_1");
var myPlayer = videojs("example_video_1");
```
(If the player hasn't been initialized yet via the data-setup attribute or another method, this will also initialize the player.)
@@ -15,7 +15,7 @@ Wait Until the Player is Ready
------------------------------
The time it takes Video.js to set up the video and API will vary depending on the playback technology being used (HTML5 will often be much faster to load than Flash). For that reason we want to use the player's 'ready' function to trigger any code that requires the player's API.
```javascript
VideoJS("example_video_1").ready(function(){
videojs("example_video_1").ready(function(){
var myPlayer = this;