@vindral/web-sdk 2.0.17 → 2.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +5 -1
- package/package.json +1 -1
- package/web-sdk.esm.js +1 -1
- package/web-sdk.umd.js +1 -1
package/index.d.ts
CHANGED
|
@@ -191,6 +191,7 @@ interface MediaElementOptions {
|
|
|
191
191
|
muted: boolean;
|
|
192
192
|
type: "audio" | "video";
|
|
193
193
|
logger: Logger;
|
|
194
|
+
poster?: string;
|
|
194
195
|
}
|
|
195
196
|
interface NeedsUserInputContext {
|
|
196
197
|
forAudio: boolean;
|
|
@@ -208,7 +209,7 @@ declare class MediaElement extends Emitter<MediaElementEvents> {
|
|
|
208
209
|
private _userProvidedMuted;
|
|
209
210
|
private _userHasProvidedInput;
|
|
210
211
|
isActivated: boolean;
|
|
211
|
-
constructor({ type, autoplay, muted, logger }: MediaElementOptions);
|
|
212
|
+
constructor({ type, autoplay, muted, logger, poster }: MediaElementOptions);
|
|
212
213
|
attach: (container: HTMLElement) => void;
|
|
213
214
|
get seekTime(): number;
|
|
214
215
|
get isSeeking(): boolean;
|
|
@@ -1069,6 +1070,7 @@ declare const defaultOptions: {
|
|
|
1069
1070
|
maxAudioBitRate: number;
|
|
1070
1071
|
tags: string[];
|
|
1071
1072
|
media: Media;
|
|
1073
|
+
posterEnabled: boolean;
|
|
1072
1074
|
reconnectHandler: (state: ReconnectState) => Promise<boolean> | boolean;
|
|
1073
1075
|
advanced: {
|
|
1074
1076
|
wasmDecodingConstraint: Partial<VideoConstraint>;
|
|
@@ -1172,6 +1174,7 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
|
|
|
1172
1174
|
get timeSpentBuffering(): number;
|
|
1173
1175
|
get timeActive(): number;
|
|
1174
1176
|
getOptions: () => Options & typeof defaultOptions;
|
|
1177
|
+
getThumbnailUrl: () => string;
|
|
1175
1178
|
updateAuthenticationToken: (token: string) => void;
|
|
1176
1179
|
connect: () => void;
|
|
1177
1180
|
getCastOptions: () => Options;
|
|
@@ -1341,6 +1344,7 @@ export interface Options {
|
|
|
1341
1344
|
maxSize?: Size;
|
|
1342
1345
|
maxAudioBitRate?: number;
|
|
1343
1346
|
maxVideoBitRate?: number;
|
|
1347
|
+
posterEnabled?: boolean;
|
|
1344
1348
|
muted?: boolean;
|
|
1345
1349
|
reconnectHandler?: (state: ReconnectState) => Promise<boolean> | boolean;
|
|
1346
1350
|
tags?: string[];
|
package/package.json
CHANGED