diff --git a/videojs/videojs.d.ts b/videojs/videojs.d.ts index 49fb1c09a8..ddebe216bb 100644 --- a/videojs/videojs.d.ts +++ b/videojs/videojs.d.ts @@ -40,12 +40,12 @@ interface VideoJSPlayer { requestFullScreen(): VideoJSPlayer; cancelFullScreen(): VideoJSPlayer; ready(callback: () => void ): void; - addEvent(eventName: string, callback: () => void ): void; - removeEvent(eventName: string, callback: () => void ): void; + on(eventName: string, callback: () => void ): void; + off(eventName: string, callback: () => void ): void; } interface VideoJSStatic { (id: any, options?: VideoJSOptions, ready?: () => void): VideoJSPlayer; } -declare var _V_:VideoJSStatic; \ No newline at end of file +declare var _V_:VideoJSStatic;