PluginProbe ʕ •ᴥ•ʔ
Presto Player / 2.0.7
Presto Player v2.0.7
4.5.0 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 3 years ago testing 4 years ago components.d.ts 3 years ago index.d.ts 5 years ago interfaces.d.ts 3 years ago stencil-public-runtime.d.ts 3 years ago util.d.ts 4 years ago
interfaces.d.ts
303 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 speed?: boolean;
155 background_color?: string;
156 caption_style?: string;
157 email_collection?: EmailCollection;
158 cta?: CTA;
159 watermark?: Watermark;
160 search?: Search;
161 action_bar?: ActionBarConfig;
162 }
163 export interface Search extends Object {
164 enabled?: boolean;
165 minMatchCharLength?: number;
166 threshold?: number;
167 placeholder?: string;
168 }
169 export interface Watermark extends Object {
170 enabled?: boolean;
171 text?: string;
172 backgroundColor?: string;
173 color?: string;
174 opacity?: number;
175 position?: 'top-left' | 'top-right' | 'randomize';
176 }
177 export interface SearchBarConfig extends Object {
178 showSearchResults?: boolean;
179 searchResults?: any;
180 }
181 export interface prestoBranding extends Object {
182 logo?: string;
183 logo_width?: number;
184 }
185 export interface CTA extends Object {
186 enabled?: boolean;
187 percentage?: number;
188 show_rewatch?: boolean;
189 show_skip?: boolean;
190 headline?: string;
191 show_button?: boolean;
192 bottom_text?: string;
193 button_color?: string;
194 background_opacity?: number;
195 button_text_color?: string;
196 button_text?: string;
197 button_link?: ButtonLinkObject;
198 button_radius?: number;
199 }
200 export interface EmailCollection extends Object {
201 enabled?: boolean;
202 percentage?: number;
203 allow_skip?: boolean;
204 headline?: string;
205 bottom_text?: string;
206 button_text?: string;
207 border_radius?: number;
208 button_text_color?: string;
209 button_color?: string;
210 }
211 interface OnVolumeChangeParam {
212 muted: boolean;
213 volume: number;
214 }
215 export interface PlyrProps {
216 id?: number;
217 type?: 'youtube' | 'vimeo' | 'video' | 'audio';
218 className?: string;
219 videoId?: string;
220 url?: string;
221 config: PrestoConfig;
222 on?: (eventName: string, event?: any) => void;
223 onReady?: (player?: any) => void;
224 onPlay?: () => void;
225 onPause?: () => void;
226 onEnd?: () => void;
227 onLoadedData?: () => void;
228 onSeeked?: (time?: number) => void;
229 onTimeUpdate?: (time?: number) => void;
230 onEnterFullscreen?: () => void;
231 onExitFullscreen?: () => void;
232 onVolumeChange?: (params: OnVolumeChangeParam) => void;
233 onCaptionsEnabled?: () => void;
234 onCaptionsDisabled?: () => void;
235 enabled?: boolean;
236 title?: string;
237 debug?: boolean;
238 autoplay?: boolean;
239 autopause?: boolean;
240 seekTime?: number;
241 volume?: number;
242 muted?: boolean;
243 duration?: number;
244 displayDuration?: boolean;
245 invertTime?: boolean;
246 toggleInvert?: boolean;
247 ratio?: string;
248 clickToPlay?: boolean;
249 hideControls?: boolean;
250 resetOnEnd?: boolean;
251 disableContextMenu?: boolean;
252 loadSprite?: boolean;
253 iconPrefix?: string;
254 iconUrl?: string;
255 icon_url?: string;
256 blankVideo?: string;
257 quality?: {
258 default?: string | number;
259 option?: string[] | number[];
260 };
261 loop?: {
262 active?: boolean;
263 };
264 speed?: {
265 selected?: number;
266 options?: number[];
267 };
268 keyboard?: {
269 focused?: boolean;
270 global?: boolean;
271 };
272 tooltips?: {
273 controls?: boolean;
274 seek?: boolean;
275 };
276 fullscreen?: {
277 enabled?: boolean;
278 fallback?: boolean;
279 iosNative?: boolean;
280 };
281 storage?: {
282 enabled?: boolean;
283 key?: string;
284 };
285 controls?: string[];
286 settings?: string[];
287 poster?: string;
288 sources?: Array<{
289 src: string;
290 type: string;
291 size?: string;
292 }>;
293 captions?: Array<{
294 kind?: string;
295 label?: string;
296 src: string;
297 srclang?: string;
298 default?: boolean;
299 key?: any;
300 }>;
301 }
302 export {};
303