mirror of
https://github.com/videojs/video.js.git
synced 2025-01-25 11:13:52 +02:00
Corrected API method name
Corrected API method name and added helpful message on using events. I was confused for a while regarding how to use the events, so it might help someone else.
This commit is contained in:
parent
b2f6175a7b
commit
5812d64154
@ -19,7 +19,7 @@ In the follwing example, the `data-setup` attribute tells the Video.js library t
|
||||
</video>
|
||||
```
|
||||
|
||||
After an instance has been created it can be accessed globally using `Video('example_video_1')`.
|
||||
After an instance has been created it can be accessed globally using `videojs('example_video_1')`.
|
||||
|
||||
---
|
||||
|
||||
@ -920,6 +920,7 @@ _inherited from_: [src/js/component.js#L747](https://github.com/videojs/video.js
|
||||
---
|
||||
|
||||
## EVENTS
|
||||
Callback functions can be added to events by using the [`on`](#on-type-fn-) or [`one`](#one-type-fn-) methods. They can be removed from events by using the [`off`](#off-type-fn-) method. Events can be triggered manually with the [`trigger`](#trigger-type-event-) method.
|
||||
|
||||
### durationchange `EVENT`
|
||||
> Fired when the duration of the media resource is first known or changed
|
||||
|
Loading…
x
Reference in New Issue
Block a user