forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
froogaloop.d.ts
28 lines (26 loc) · 990 Bytes
/
froogaloop.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Type definitions for Vimeo
// Project: http://developer.vimeo.com/player/js-api
// Definitions by: Daz Wilkin <https://github.com/DazWilkin/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface VimeoParams {
name:string;
value:any;
}
interface VimeoPlayerAPI {
(method: string): any;
(method: string, callback: (value: any, player_id: any) =>void ): any;
(method: string, value: any): any;
(method: string, value: VimeoParams[]): any;
}
interface VimeoPlayer {
api: VimeoPlayerAPI;
addEvent(eventName: string, callback: (e: any) =>void ): any;
removeEvent(eventName: string): void;
postMessage(method: string, params:VimeoParams[], target): void;
onMessagReceived(event);
storeCallback(eventName: string, callback, target_id: string);
getCallback(eventName: string, target_id: string);
removeCallback(eventName: string, target_id: string);
getDomainFromUrl(url: string): string;
}
declare var $f: VimeoPlayerAPI;