From 5812d64154022818599b9aea8618e6e95f3fb5db Mon Sep 17 00:00:00 2001 From: Steven Meyer Date: Fri, 4 Jul 2014 14:24:34 +0100 Subject: [PATCH] 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. --- docs/api/vjs.Player.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/vjs.Player.md b/docs/api/vjs.Player.md index 24988e298..4e4a1776f 100644 --- a/docs/api/vjs.Player.md +++ b/docs/api/vjs.Player.md @@ -19,7 +19,7 @@ In the follwing example, the `data-setup` attribute tells the Video.js library t ``` -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