@moviie/player-sdk 0.4.0 → 0.5.0
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/dist/index.d.cts +17 -4
- package/dist/index.d.ts +17 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -52,12 +52,12 @@ declare function createTranscriptSearchController(opts: {
|
|
|
52
52
|
|
|
53
53
|
interface MoviieClientInfo {
|
|
54
54
|
bundleId?: string;
|
|
55
|
-
platform:
|
|
55
|
+
platform: 'ios' | 'android' | 'web';
|
|
56
56
|
sdkVersion?: string;
|
|
57
57
|
}
|
|
58
58
|
interface MoviiePlaybackPayload {
|
|
59
59
|
uri: string;
|
|
60
|
-
contentType:
|
|
60
|
+
contentType: 'hls' | 'progressive';
|
|
61
61
|
expiresAt: string | null;
|
|
62
62
|
refreshAfter: string | null;
|
|
63
63
|
/** Headers applied by native/video stacks when fetching `uri` (e.g. CDN referrer checks). */
|
|
@@ -80,9 +80,9 @@ interface MoviieCTA {
|
|
|
80
80
|
url: string;
|
|
81
81
|
startTimeSeconds: number;
|
|
82
82
|
endTimeSeconds: number;
|
|
83
|
-
placement:
|
|
83
|
+
placement: 'overlay' | 'below';
|
|
84
84
|
position: string;
|
|
85
|
-
size:
|
|
85
|
+
size: 'sm' | 'md' | 'lg';
|
|
86
86
|
passUrlParams: boolean;
|
|
87
87
|
}
|
|
88
88
|
interface MoviiePlaybackControls {
|
|
@@ -136,6 +136,19 @@ interface MoviiePlaybackData {
|
|
|
136
136
|
telemetry: {
|
|
137
137
|
bootstrapUrl: string;
|
|
138
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Feature 185 — native pixel emission (Meta Conversions API only; the native
|
|
141
|
+
* player has no browser tags). Present only when a Meta pixel has the CAPI
|
|
142
|
+
* enabled for this playback; the native hook beacons these events to the origin
|
|
143
|
+
* which fires the server-side conversion. No change to the player event contract.
|
|
144
|
+
*/
|
|
145
|
+
tracking?: {
|
|
146
|
+
meta?: {
|
|
147
|
+
enabledEvents: string[];
|
|
148
|
+
};
|
|
149
|
+
/** Feature 187 → 185: timestamps (s) of pitch checkpoints; crossing fires `pitch`. */
|
|
150
|
+
pitchTimestamps?: number[];
|
|
151
|
+
};
|
|
139
152
|
}
|
|
140
153
|
/** Minimal shape from GET /v1/videos/:id for embed_id resolution */
|
|
141
154
|
interface MoviieVideo {
|
package/dist/index.d.ts
CHANGED
|
@@ -52,12 +52,12 @@ declare function createTranscriptSearchController(opts: {
|
|
|
52
52
|
|
|
53
53
|
interface MoviieClientInfo {
|
|
54
54
|
bundleId?: string;
|
|
55
|
-
platform:
|
|
55
|
+
platform: 'ios' | 'android' | 'web';
|
|
56
56
|
sdkVersion?: string;
|
|
57
57
|
}
|
|
58
58
|
interface MoviiePlaybackPayload {
|
|
59
59
|
uri: string;
|
|
60
|
-
contentType:
|
|
60
|
+
contentType: 'hls' | 'progressive';
|
|
61
61
|
expiresAt: string | null;
|
|
62
62
|
refreshAfter: string | null;
|
|
63
63
|
/** Headers applied by native/video stacks when fetching `uri` (e.g. CDN referrer checks). */
|
|
@@ -80,9 +80,9 @@ interface MoviieCTA {
|
|
|
80
80
|
url: string;
|
|
81
81
|
startTimeSeconds: number;
|
|
82
82
|
endTimeSeconds: number;
|
|
83
|
-
placement:
|
|
83
|
+
placement: 'overlay' | 'below';
|
|
84
84
|
position: string;
|
|
85
|
-
size:
|
|
85
|
+
size: 'sm' | 'md' | 'lg';
|
|
86
86
|
passUrlParams: boolean;
|
|
87
87
|
}
|
|
88
88
|
interface MoviiePlaybackControls {
|
|
@@ -136,6 +136,19 @@ interface MoviiePlaybackData {
|
|
|
136
136
|
telemetry: {
|
|
137
137
|
bootstrapUrl: string;
|
|
138
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Feature 185 — native pixel emission (Meta Conversions API only; the native
|
|
141
|
+
* player has no browser tags). Present only when a Meta pixel has the CAPI
|
|
142
|
+
* enabled for this playback; the native hook beacons these events to the origin
|
|
143
|
+
* which fires the server-side conversion. No change to the player event contract.
|
|
144
|
+
*/
|
|
145
|
+
tracking?: {
|
|
146
|
+
meta?: {
|
|
147
|
+
enabledEvents: string[];
|
|
148
|
+
};
|
|
149
|
+
/** Feature 187 → 185: timestamps (s) of pitch checkpoints; crossing fires `pitch`. */
|
|
150
|
+
pitchTimestamps?: number[];
|
|
151
|
+
};
|
|
139
152
|
}
|
|
140
153
|
/** Minimal shape from GET /v1/videos/:id for embed_id resolution */
|
|
141
154
|
interface MoviieVideo {
|