stormcloud-video-player 0.8.44 → 0.8.46

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.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { StormcloudVideoPlayer } from '../player/StormcloudVideoPlayer.cjs';
3
- import { S as StormcloudVideoPlayerConfig } from '../types-iDjS8f_7.cjs';
3
+ import { a as StormcloudVideoPlayerConfig } from '../types-cTqIKw_D.cjs';
4
4
 
5
5
  type StormcloudVideoPlayerProps = Omit<StormcloudVideoPlayerConfig, "videoElement"> & React.VideoHTMLAttributes<HTMLVideoElement> & {
6
6
  onReady?: (player: StormcloudVideoPlayer) => void;
@@ -1,4 +1,4 @@
1
- import { S as StormcloudVideoPlayerConfig, P as PlayerAnalyticsContext, C as ClientInfo, c as AdDetectInfo, d as AdImpressionInfo, e as AdLoadedInfo } from '../types-iDjS8f_7.cjs';
1
+ import { a as StormcloudVideoPlayerConfig, P as PlayerAnalyticsContext, C as ClientInfo, c as AdDetectInfo, d as AdImpressionInfo, e as AdLoadedInfo } from '../types-cTqIKw_D.cjs';
2
2
 
3
3
  declare function buildAnalyticsContext(config: Pick<StormcloudVideoPlayerConfig, "debugAdTiming" | "isLiveStream">): PlayerAnalyticsContext;
4
4
  declare function getClientInfo(): ClientInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stormcloud-video-player",
3
- "version": "0.8.44",
3
+ "version": "0.8.46",
4
4
  "main": "lib/index.js",
5
5
  "typings": "lib/index.d.ts",
6
6
  "scripts": {
@@ -1,133 +0,0 @@
1
- interface AdBreak {
2
- id?: string;
3
- startTimeMs: number;
4
- durationMs?: number;
5
- vastTagUrl?: string;
6
- }
7
- interface StormcloudVideoPlayerConfig {
8
- videoElement: HTMLVideoElement;
9
- src: string;
10
- autoplay?: boolean;
11
- muted?: boolean;
12
- allowNativeHls?: boolean;
13
- lowLatencyMode?: boolean;
14
- isLiveStream?: boolean;
15
- pauseContentDuringAds?: boolean;
16
- driftToleranceMs?: number;
17
- immediateManifestAds?: boolean;
18
- debugAdTiming?: boolean;
19
- adFailsafeTimeoutMs?: number;
20
- adBreakCheckIntervalMs?: number;
21
- maxAdBreakExtensionMs?: number;
22
- minRemainingMsToStartAd?: number;
23
- showCustomControls?: boolean;
24
- hideLoadingIndicator?: boolean;
25
- onVolumeToggle?: () => void;
26
- onFullscreenToggle?: () => void;
27
- onControlClick?: () => void;
28
- licenseKey?: string;
29
- vastTagUrl?: string;
30
- isVmap?: boolean;
31
- vmapUrl?: string;
32
- vastMode?: 'adstorm' | 'default';
33
- minSegmentsBeforePlay?: number;
34
- ctvAdRequest?: boolean;
35
- adTest?: boolean;
36
- podMaxAds?: number;
37
- podMaxDurationMs?: number;
38
- podExactDuration?: boolean;
39
- }
40
- interface Scte35Marker {
41
- type: "start" | "end" | "progress";
42
- ptsSeconds?: number;
43
- durationSeconds?: number;
44
- raw?: unknown;
45
- }
46
- interface Id3TagInfo {
47
- key: string;
48
- value: string | Uint8Array;
49
- ptsSeconds?: number;
50
- }
51
- interface AdController {
52
- initialize: () => void;
53
- requestAds: (vastTagUrl: string) => Promise<void>;
54
- play: () => Promise<void>;
55
- pause: () => void;
56
- resume: () => void;
57
- stop: () => Promise<void>;
58
- destroy: () => void;
59
- isAdPlaying: () => boolean;
60
- resize: (width: number, height: number) => void;
61
- on: (event: string, listener: (payload?: any) => void) => void;
62
- off: (event: string, listener: (payload?: any) => void) => void;
63
- updateOriginalMutedState: (muted: boolean, volume?: number) => void;
64
- getOriginalMutedState: () => boolean;
65
- getOriginalVolume: () => number;
66
- setAdVolume: (volume: number) => void;
67
- getAdVolume: () => number;
68
- showPlaceholder: () => void;
69
- hidePlaceholder: () => void;
70
- getLoadedAdDuration?: () => number | undefined;
71
- getLoadedAdId?: () => string | undefined;
72
- getPodAdCount?: () => number;
73
- getPodTotalDurationMs?: () => number;
74
- }
75
- interface ClientInfo {
76
- brand: string;
77
- os: string;
78
- model: string;
79
- deviceType: "tv" | "mobile" | "tablet" | "desktop";
80
- isSmartTV: boolean;
81
- isAndroid: boolean;
82
- isWebView: boolean;
83
- isWebApp: boolean;
84
- domain: string;
85
- origin: string;
86
- path: string;
87
- userAgent: string;
88
- vendor: string;
89
- platform: string;
90
- screen: {
91
- width?: number;
92
- height?: number;
93
- availWidth?: number;
94
- availHeight?: number;
95
- orientation?: string;
96
- pixelDepth?: number;
97
- };
98
- hardwareConcurrency: number;
99
- deviceMemory: number | null;
100
- maxTouchPoints: number;
101
- language: string;
102
- languages: string;
103
- cookieEnabled: boolean;
104
- doNotTrack: string;
105
- referrer: string;
106
- visibilityState: string;
107
- }
108
- interface PlayerAnalyticsContext {
109
- inputStreamType?: string;
110
- debugAdTiming?: boolean;
111
- }
112
- interface AdDetectInfo {
113
- source: "scte35";
114
- durationSeconds?: number;
115
- ptsSeconds?: number;
116
- detectedAtFragmentSn?: number;
117
- timestamp: string;
118
- }
119
- interface AdLoadedInfo {
120
- source: "vast" | "hls";
121
- vastUrl?: string;
122
- durationSeconds?: number;
123
- timestamp: string;
124
- }
125
- interface AdImpressionInfo {
126
- source: "vast" | "hls";
127
- adIndex: number;
128
- adUrl?: string;
129
- durationSeconds?: number;
130
- timestamp: string;
131
- }
132
-
133
- export type { AdController as A, ClientInfo as C, Id3TagInfo as I, PlayerAnalyticsContext as P, StormcloudVideoPlayerConfig as S, Scte35Marker as a, AdBreak as b, AdDetectInfo as c, AdImpressionInfo as d, AdLoadedInfo as e };