PluginProbe ʕ •ᴥ•ʔ
Presto Player / 2.2.3-beta1
Presto Player v2.2.3-beta1
4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.4 4.2.3 4.2.2 4.2.0 4.2.1 trunk 1.10.0 1.10.1 1.10.2 1.11.0 1.12.0 1.13.0 1.14.0 1.14.1 1.5.10 1.5.11 1.5.12 1.5.13 1.5.14 1.5.15 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 1.6.13 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.9.0 1.9.1 1.9.10 1.9.11 1.9.12 1.9.13 1.9.14 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.3-beta1 2.3.0 2.3.1 2.3.2 2.3.3 3.0.0 3.0.0-beta1 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.1.0 3.1.1 3.1.2 3.1.3 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4
presto-player / dist / components / types / interfaces.d.ts
presto-player / dist / components / types Last commit date
components 2 years ago testing 4 years ago components.d.ts 2 years ago index.d.ts 5 years ago interfaces.d.ts 2 years ago stencil-public-runtime.d.ts 3 years ago util.d.ts 4 years ago
interfaces.d.ts
304 lines
1 declare global {
2 interface Window {
3 gapi: any;
4 wp: any;
5 jQuery: any;
6 prestoPlayerAdmin: {
7 i18n: i18nConfig;
8 };
9 prestoPlayer: {
10 debug: boolean;
11 debug_navigator: boolean;
12 ajaxurl: string;
13 nonce: string;
14 isPremium: string;
15 logged_in: boolean;
16 i18n: i18nConfig;
17 };
18 }
19 }
20 export interface BunnyConfig extends Object {
21 hostname: string;
22 thumbnail: string;
23 preview: string;
24 }
25 export interface i18nConfig extends Object {
26 startOver?: string;
27 upNext?: string;
28 rewatch: string;
29 emailPlaceholder?: string;
30 skip?: string;
31 emailDefaultHeadline?: string;
32 play: string;
33 }
34 export interface ActionBarConfig extends Object {
35 enabled: boolean;
36 percentage_start: number;
37 text: string;
38 background_color: string;
39 button_type: string;
40 button_radius: string;
41 button_text?: string;
42 button_color?: string;
43 button_count?: boolean;
44 button_link?: ButtonLinkObject;
45 button_text_color?: string;
46 }
47 export interface ButtonLinkObject extends Object {
48 id: string;
49 url: string;
50 type: string;
51 opensInNewTab: boolean;
52 }
53 export interface PlaylistItem extends Object {
54 id: number;
55 config: PrestoConfig;
56 duration: string;
57 title: string;
58 }
59 export interface PrestoConfig extends Object {
60 styles?: string;
61 type?: string;
62 preset?: presetAttributes;
63 autoplay?: boolean;
64 id?: number;
65 title?: string;
66 playerClass?: string;
67 blockAttributes?: blockAttributes;
68 chapters?: prestoChapters;
69 branding?: prestoBranding;
70 src?: string;
71 analytics?: boolean;
72 automations?: boolean;
73 provider?: string;
74 provider_video_id?: string;
75 isAdmin?: boolean;
76 save_player_position?: boolean;
77 ajaxProgress?: boolean;
78 youtube?: YoutubeConfig;
79 i18n?: i18nConfig;
80 search?: SearchBarConfig;
81 markers?: any;
82 storage?: {
83 enabled?: boolean;
84 key?: string;
85 };
86 }
87 export interface prestoChapters extends Object {
88 [index: number]: {
89 time: number;
90 title: string;
91 };
92 }
93 export interface DynamicOverlay extends Object {
94 key?: number;
95 startTime: string;
96 endTime: string;
97 text: string;
98 position: 'top-left' | 'top-right';
99 link?: {
100 url: string;
101 type?: string;
102 id?: number;
103 opensInNewTab?: boolean;
104 };
105 color: string;
106 backgroundColor: string;
107 opacity: number;
108 }
109 export interface blockAttributes extends Object {
110 color?: string;
111 id?: number;
112 title?: string;
113 src?: string;
114 poster?: string;
115 playsInline?: boolean;
116 autoplay?: boolean;
117 mutedPreview?: {
118 enabled?: boolean;
119 captions?: boolean;
120 };
121 mutedOverlay?: MutedOverlay;
122 }
123 export interface MutedOverlay extends Object {
124 enabled?: boolean;
125 width?: number;
126 src?: string;
127 focalPoint?: {
128 x: number;
129 y: number;
130 };
131 }
132 export interface YoutubeConfig extends Object {
133 noCookie?: boolean;
134 channelId?: string;
135 }
136 export interface presetAttributes extends Object {
137 id?: number;
138 lazy_load_youtube?: boolean;
139 after_video_action?: string;
140 hide_youtube?: boolean;
141 sticky_scroll?: boolean;
142 sticky_scroll_position?: string;
143 on_video_end?: string;
144 play?: boolean;
145 play_video_viewport?: boolean;
146 invert_time?: boolean;
147 skin?: string;
148 save_player_position?: boolean;
149 captions?: boolean;
150 captions_enabled?: boolean;
151 hide_logo?: boolean;
152 reset_on_end?: boolean;
153 auto_hide?: boolean;
154 show_time_elapsed?: boolean;
155 speed?: boolean;
156 background_color?: string;
157 caption_style?: string;
158 email_collection?: EmailCollection;
159 cta?: CTA;
160 watermark?: Watermark;
161 search?: Search;
162 action_bar?: ActionBarConfig;
163 }
164 export interface Search extends Object {
165 enabled?: boolean;
166 minMatchCharLength?: number;
167 threshold?: number;
168 placeholder?: string;
169 }
170 export interface Watermark extends Object {
171 enabled?: boolean;
172 text?: string;
173 backgroundColor?: string;
174 color?: string;
175 opacity?: number;
176 position?: 'top-left' | 'top-right' | 'randomize';
177 }
178 export interface SearchBarConfig extends Object {
179 showSearchResults?: boolean;
180 searchResults?: any;
181 }
182 export interface prestoBranding extends Object {
183 logo?: string;
184 logo_width?: number;
185 }
186 export interface CTA extends Object {
187 enabled?: boolean;
188 percentage?: number;
189 show_rewatch?: boolean;
190 show_skip?: boolean;
191 headline?: string;
192 show_button?: boolean;
193 bottom_text?: string;
194 button_color?: string;
195 background_opacity?: number;
196 button_text_color?: string;
197 button_text?: string;
198 button_link?: ButtonLinkObject;
199 button_radius?: number;
200 }
201 export interface EmailCollection extends Object {
202 enabled?: boolean;
203 percentage?: number;
204 allow_skip?: boolean;
205 headline?: string;
206 bottom_text?: string;
207 button_text?: string;
208 border_radius?: number;
209 button_text_color?: string;
210 button_color?: string;
211 }
212 interface OnVolumeChangeParam {
213 muted: boolean;
214 volume: number;
215 }
216 export interface PlyrProps {
217 id?: number;
218 type?: 'youtube' | 'vimeo' | 'video' | 'audio';
219 className?: string;
220 videoId?: string;
221 url?: string;
222 config: PrestoConfig;
223 on?: (eventName: string, event?: any) => void;
224 onReady?: (player?: any) => void;
225 onPlay?: () => void;
226 onPause?: () => void;
227 onEnd?: () => void;
228 onLoadedData?: () => void;
229 onSeeked?: (time?: number) => void;
230 onTimeUpdate?: (time?: number) => void;
231 onEnterFullscreen?: () => void;
232 onExitFullscreen?: () => void;
233 onVolumeChange?: (params: OnVolumeChangeParam) => void;
234 onCaptionsEnabled?: () => void;
235 onCaptionsDisabled?: () => void;
236 enabled?: boolean;
237 title?: string;
238 debug?: boolean;
239 autoplay?: boolean;
240 autopause?: boolean;
241 seekTime?: number;
242 volume?: number;
243 muted?: boolean;
244 duration?: number;
245 displayDuration?: boolean;
246 invertTime?: boolean;
247 toggleInvert?: boolean;
248 ratio?: string;
249 clickToPlay?: boolean;
250 hideControls?: boolean;
251 resetOnEnd?: boolean;
252 disableContextMenu?: boolean;
253 loadSprite?: boolean;
254 iconPrefix?: string;
255 iconUrl?: string;
256 icon_url?: string;
257 blankVideo?: string;
258 quality?: {
259 default?: string | number;
260 option?: string[] | number[];
261 };
262 loop?: {
263 active?: boolean;
264 };
265 speed?: {
266 selected?: number;
267 options?: number[];
268 };
269 keyboard?: {
270 focused?: boolean;
271 global?: boolean;
272 };
273 tooltips?: {
274 controls?: boolean;
275 seek?: boolean;
276 };
277 fullscreen?: {
278 enabled?: boolean;
279 fallback?: boolean;
280 iosNative?: boolean;
281 };
282 storage?: {
283 enabled?: boolean;
284 key?: string;
285 };
286 controls?: string[];
287 settings?: string[];
288 poster?: string;
289 sources?: Array<{
290 src: string;
291 type: string;
292 size?: string;
293 }>;
294 captions?: Array<{
295 kind?: string;
296 label?: string;
297 src: string;
298 srclang?: string;
299 default?: boolean;
300 key?: any;
301 }>;
302 }
303 export {};
304