react-native-theoplayer 7.4.0 → 7.5.1

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.
Files changed (83) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +12 -12
  3. package/android/build.gradle +5 -4
  4. package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/7.6.1/ads-wrapper-7.6.1.aar +0 -0
  5. package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/{7.0.0/ads-wrapper-7.0.0.pom → 7.6.1/ads-wrapper-7.6.1.pom} +2 -2
  6. package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/maven-metadata-local.xml +4 -4
  7. package/android/src/main/java/com/theoplayer/PlayerEventEmitter.kt +8 -9
  8. package/android/src/main/java/com/theoplayer/ReactTHEOplayerView.kt +1 -3
  9. package/android/src/main/java/com/theoplayer/ads/AdAdapter.kt +9 -0
  10. package/android/src/main/java/com/theoplayer/ads/AdEventAdapter.kt +20 -39
  11. package/android/src/main/java/com/theoplayer/source/GoogleDaiSourceAdapter.kt +34 -0
  12. package/android/src/main/java/com/theoplayer/source/SSAIAdapterRegistry.kt +51 -0
  13. package/android/src/main/java/com/theoplayer/source/SourceAdapter.kt +23 -58
  14. package/lib/commonjs/api/source/ads/barrel.js +0 -22
  15. package/lib/commonjs/api/source/ads/barrel.js.map +1 -1
  16. package/lib/commonjs/api/source/ads/ssai/barrel.js +0 -22
  17. package/lib/commonjs/api/source/ads/ssai/barrel.js.map +1 -1
  18. package/lib/commonjs/internal/THEOplayerView.js +3 -2
  19. package/lib/commonjs/internal/THEOplayerView.js.map +1 -1
  20. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js +2 -2
  21. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js.map +1 -1
  22. package/lib/commonjs/internal/adapter/cast/THEOplayerNativeCastAdapter.js +3 -3
  23. package/lib/commonjs/internal/adapter/cast/THEOplayerNativeCastAdapter.js.map +1 -1
  24. package/lib/module/api/source/ads/barrel.js +0 -2
  25. package/lib/module/api/source/ads/barrel.js.map +1 -1
  26. package/lib/module/api/source/ads/ssai/barrel.js +0 -2
  27. package/lib/module/api/source/ads/ssai/barrel.js.map +1 -1
  28. package/lib/module/internal/THEOplayerView.js +3 -2
  29. package/lib/module/internal/THEOplayerView.js.map +1 -1
  30. package/lib/module/internal/adapter/THEOplayerAdapter.js +2 -2
  31. package/lib/module/internal/adapter/THEOplayerAdapter.js.map +1 -1
  32. package/lib/module/internal/adapter/cast/THEOplayerNativeCastAdapter.js +3 -3
  33. package/lib/module/internal/adapter/cast/THEOplayerNativeCastAdapter.js.map +1 -1
  34. package/lib/typescript/api/source/ads/barrel.d.ts +0 -2
  35. package/lib/typescript/api/source/ads/barrel.d.ts.map +1 -1
  36. package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +0 -9
  37. package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts.map +1 -1
  38. package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +3 -10
  39. package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts.map +1 -1
  40. package/lib/typescript/api/source/ads/ssai/barrel.d.ts +0 -2
  41. package/lib/typescript/api/source/ads/ssai/barrel.d.ts.map +1 -1
  42. package/lib/typescript/internal/THEOplayerView.d.ts.map +1 -1
  43. package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts +1 -1
  44. package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts.map +1 -1
  45. package/lib/typescript/internal/adapter/cast/THEOplayerNativeCastAdapter.d.ts +1 -1
  46. package/lib/typescript/internal/adapter/cast/THEOplayerNativeCastAdapter.d.ts.map +1 -1
  47. package/package.json +1 -1
  48. package/src/api/source/ads/barrel.ts +0 -2
  49. package/src/api/source/ads/ssai/GoogleDAIConfiguration.ts +0 -9
  50. package/src/api/source/ads/ssai/ServerSideAdInsertionConfiguration.ts +3 -10
  51. package/src/api/source/ads/ssai/barrel.ts +0 -2
  52. package/src/internal/THEOplayerView.tsx +3 -2
  53. package/src/internal/adapter/THEOplayerAdapter.ts +2 -2
  54. package/src/internal/adapter/cast/THEOplayerNativeCastAdapter.ts +3 -3
  55. package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/7.0.0/ads-wrapper-7.0.0.aar +0 -0
  56. package/lib/commonjs/api/source/ads/FreeWheelAdDescription.js +0 -6
  57. package/lib/commonjs/api/source/ads/FreeWheelAdDescription.js.map +0 -1
  58. package/lib/commonjs/api/source/ads/SpotXAdDescription.js +0 -6
  59. package/lib/commonjs/api/source/ads/SpotXAdDescription.js.map +0 -1
  60. package/lib/commonjs/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js +0 -6
  61. package/lib/commonjs/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js.map +0 -1
  62. package/lib/commonjs/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js +0 -6
  63. package/lib/commonjs/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js.map +0 -1
  64. package/lib/module/api/source/ads/FreeWheelAdDescription.js +0 -2
  65. package/lib/module/api/source/ads/FreeWheelAdDescription.js.map +0 -1
  66. package/lib/module/api/source/ads/SpotXAdDescription.js +0 -2
  67. package/lib/module/api/source/ads/SpotXAdDescription.js.map +0 -1
  68. package/lib/module/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js +0 -2
  69. package/lib/module/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js.map +0 -1
  70. package/lib/module/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js +0 -2
  71. package/lib/module/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js.map +0 -1
  72. package/lib/typescript/api/source/ads/FreeWheelAdDescription.d.ts +0 -86
  73. package/lib/typescript/api/source/ads/FreeWheelAdDescription.d.ts.map +0 -1
  74. package/lib/typescript/api/source/ads/SpotXAdDescription.d.ts +0 -116
  75. package/lib/typescript/api/source/ads/SpotXAdDescription.d.ts.map +0 -1
  76. package/lib/typescript/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +0 -28
  77. package/lib/typescript/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts.map +0 -1
  78. package/lib/typescript/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +0 -47
  79. package/lib/typescript/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts.map +0 -1
  80. package/src/api/source/ads/FreeWheelAdDescription.ts +0 -97
  81. package/src/api/source/ads/SpotXAdDescription.ts +0 -126
  82. package/src/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.ts +0 -30
  83. package/src/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.ts +0 -51
@@ -1 +1 @@
1
- {"version":3,"file":"THEOplayerAdapter.d.ts","sourceRoot":"","sources":["../../../../src/internal/adapter/THEOplayerAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EACV,gBAAgB,EAChB,MAAM,EACN,OAAO,EAEP,iBAAiB,EAEjB,UAAU,EAGV,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EAKd,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,cAAc,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,WAAW,EACX,4BAA4B,EAK5B,aAAa,EACb,WAAW,EACX,gBAAgB,EAEhB,cAAc,EAEf,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAM7D,qBAAa,iBAAkB,SAAQ,sBAAsB,CAAC,cAAc,CAAE,YAAW,UAAU;IACjG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAiB;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA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AM,CAAC,MAAM,EAAE,iBAAiB,GAAG,SAAS,EAmB/C;IAED,IAAI,kBAAkB,IAAI,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAEtD;IAED,IAAI,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EAa3D;IAED,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAGxB;IAED,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,IAAI,WAAW,CAAC,KAAK,EAAE,WAAW,EAGjC;IAED,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,EAK9B;IAED,KAAK,IAAI,IAAI;IAOb,IAAI,IAAI,IAAI;IAOZ,IAAW,OAAO,IAAI,aAAa,CAElC;IAGD,IAAI,YAAY,IAAI,gBAAgB,CAEnC;IAGD,IAAI,SAAS,IAAI,iBAAiB,CAEjC;IAED;;;;;OAKG;IACG,2BAA2B,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,iBAAiB,GAAG,SAAS;IAQ9F,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED,IAAI,MAAM,IAAI,MAAM,GAAG,SAAS,CAE/B;CACF"}
@@ -9,7 +9,7 @@ export declare class THEOplayerNativeCastAdapter implements CastAPI {
9
9
  get casting(): boolean;
10
10
  get chromecast(): Chromecast | undefined;
11
11
  get airplay(): Airplay | undefined;
12
- init_(): void;
12
+ init_(): Promise<void>;
13
13
  unload_(): void;
14
14
  }
15
15
  //# sourceMappingURL=THEOplayerNativeCastAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"THEOplayerNativeCastAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/internal/adapter/cast/THEOplayerNativeCastAdapter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,cA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OAAO,IAAI,IAAI;CAIhB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-theoplayer",
3
- "version": "7.4.0",
3
+ "version": "7.5.1",
4
4
  "description": "A THEOplayer video component for react-native.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -1,6 +1,4 @@
1
1
  export * from './Ads';
2
- export * from './FreeWheelAdDescription';
3
2
  export * from './IMAAdDescription';
4
- export * from './SpotXAdDescription';
5
3
  export * from './THEOplayerAdDescription';
6
4
  export * from './ssai/barrel';
@@ -20,9 +20,6 @@ export type DAIAvailabilityType = 'vod' | 'live';
20
20
  /**
21
21
  * Represents a configuration for server-side ad insertion with the Google DAI pre-integration.
22
22
  *
23
- * @remarks
24
- * <br/> - Available since v2.30.0.
25
- *
26
23
  * @public
27
24
  */
28
25
  export interface GoogleDAIConfiguration extends ServerSideAdInsertionConfiguration {
@@ -75,9 +72,6 @@ export interface GoogleDAIConfiguration extends ServerSideAdInsertionConfigurati
75
72
  /**
76
73
  * Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a Live media stream.
77
74
  *
78
- * @remarks
79
- * <br/> - Available since v2.30.0.
80
- *
81
75
  * @public
82
76
  */
83
77
  export interface GoogleDAILiveConfiguration extends GoogleDAIConfiguration {
@@ -99,9 +93,6 @@ export interface GoogleDAILiveConfiguration extends GoogleDAIConfiguration {
99
93
  /**
100
94
  * Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a VOD media stream.
101
95
  *
102
- * @remarks
103
- * <br/> - Available since v2.30.0.
104
- *
105
96
  * @public
106
97
  */
107
98
  export interface GoogleDAIVodConfiguration extends GoogleDAIConfiguration {
@@ -1,23 +1,16 @@
1
- import type { YospaceSSAIIntegrationID } from './YospaceServerSideAdInsertionConfiguration';
2
1
  import type { GoogleDAISSAIIntegrationID } from './GoogleDAIConfiguration';
3
- import type { ImagineSSAIIntegrationID } from './ImagineServerSideAdInsertionConfiguration';
4
2
 
5
3
  /**
6
- * The identifier of a server-side ad insertion pre-integration, represented by a value from the following list:
7
- * <br/> - `'yospace'`: The configuration with this identifier is a {@link YospaceServerSideAdInsertionConfiguration}
8
- * <br/> - `'google-dai'`: The configuration with this identifier is a {@link GoogleDAIConfiguration}
9
- * <br/> - `'imagine'`: The configuration with this identifier is a {@link ImagineServerSideAdInsertionConfiguration}
4
+ * The identifier of a server-side ad insertion pre-integration, represented by a string value.
10
5
  *
11
6
  * @public
12
7
  */
13
- export type SSAIIntegrationId = YospaceSSAIIntegrationID | GoogleDAISSAIIntegrationID | ImagineSSAIIntegrationID;
8
+ export type SSAIIntegrationId = GoogleDAISSAIIntegrationID | CustomSSAIIntegrationId;
9
+ export type CustomSSAIIntegrationId = string;
14
10
 
15
11
  /**
16
12
  * Represents a configuration for server-side ad insertion (SSAI).
17
13
  *
18
- * @remarks
19
- * <br/> - Available since v2.12.0.
20
- *
21
14
  * @public
22
15
  */
23
16
  export interface ServerSideAdInsertionConfiguration {
@@ -1,4 +1,2 @@
1
1
  export * from './GoogleDAIConfiguration';
2
- export * from './ImagineServerSideAdInsertionConfiguration';
3
2
  export * from './ServerSideAdInsertionConfiguration';
4
- export * from './YospaceServerSideAdInsertionConfiguration';
@@ -174,8 +174,9 @@ export class THEOplayerView extends PureComponent<React.PropsWithChildren<THEOpl
174
174
  private _onNativePlayerReady = (event: NativeSyntheticEvent<NativePlayerStateEvent>) => {
175
175
  // Optionally apply an initial player state
176
176
  const { version, state } = event.nativeEvent;
177
- this._facade.initializeFromNativePlayer_(version, state);
178
- this.props.onPlayerReady?.(this._facade);
177
+ this._facade.initializeFromNativePlayer_(version, state).then(() => {
178
+ this.props.onPlayerReady?.(this._facade);
179
+ });
179
180
  };
180
181
 
181
182
  private _onSourceChange = () => {
@@ -491,12 +491,12 @@ export class THEOplayerAdapter extends DefaultEventDispatcher<PlayerEventMap> im
491
491
  * @param version The native player version.
492
492
  * @param state An optional initial player state.
493
493
  */
494
- initializeFromNativePlayer_(version: PlayerVersion, state: NativePlayerState | undefined) {
494
+ async initializeFromNativePlayer_(version: PlayerVersion, state: NativePlayerState | undefined) {
495
495
  this._playerVersion = version;
496
496
  if (state) {
497
497
  this._state.apply(state);
498
498
  }
499
- this._castAdapter.init_();
499
+ await this._castAdapter.init_();
500
500
  }
501
501
 
502
502
  get width(): number | undefined {
@@ -27,9 +27,9 @@ export class THEOplayerNativeCastAdapter implements CastAPI {
27
27
  return this._airplay;
28
28
  }
29
29
 
30
- init_(): void {
31
- void this._chromecast?.init_();
32
- void this._airplay?.init_();
30
+ async init_(): Promise<void> {
31
+ await this._chromecast?.init_();
32
+ await this._airplay?.init_();
33
33
  }
34
34
 
35
35
  unload_(): void {
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=FreeWheelAdDescription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/ads/FreeWheelAdDescription.ts"],"mappings":"","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=SpotXAdDescription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/ads/SpotXAdDescription.ts"],"mappings":"","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=ImagineServerSideAdInsertionConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.ts"],"mappings":"","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=YospaceServerSideAdInsertionConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.ts"],"mappings":"","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=FreeWheelAdDescription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/ads/FreeWheelAdDescription.ts"],"mappings":"","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=SpotXAdDescription.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/ads/SpotXAdDescription.ts"],"mappings":"","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ImagineServerSideAdInsertionConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.ts"],"mappings":"","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=YospaceServerSideAdInsertionConfiguration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.ts"],"mappings":"","ignoreList":[]}
@@ -1,86 +0,0 @@
1
- import type { AdDescription, AdIntegrationKind } from "./Ads";
2
- /**
3
- * The possible ad unit types, represented by a value from the following list:
4
- * <br/> - `'preroll'`: The linear ad will play before the content started.
5
- * <br/> - `'midroll'`: The linear ad will play at a time offset during the content.
6
- * <br/> - `'postroll'`: The linear ad will play after the content ended.
7
- * <br/> - `'overlay'`: The non-linear ad.
8
- *
9
- * @public
10
- */
11
- export type FreeWheelAdUnitType = 'preroll' | 'midroll' | 'postroll' | 'overlay';
12
- /**
13
- * Represents a FreeWheel cue.
14
- *
15
- * @public
16
- */
17
- export interface FreeWheelCue {
18
- /**
19
- * The ad unit type.
20
- */
21
- adUnit: FreeWheelAdUnitType;
22
- /**
23
- * Offset after which the ad break will start, in seconds.
24
- */
25
- timeOffset: number;
26
- }
27
- /**
28
- * Describes a FreeWheel ad break request.
29
- *
30
- * @remarks
31
- * <br/> - Available since v2.42.0.
32
- *
33
- * @public
34
- */
35
- export interface FreeWheelAdDescription extends AdDescription {
36
- /**
37
- * The integration of this ad break.
38
- */
39
- integration: AdIntegrationKind.freewheel;
40
- /**
41
- * The FreeWheel ad server URL.
42
- */
43
- adServerUrl: string;
44
- /**
45
- * The duration of the asset, in seconds.
46
- *
47
- * @remarks
48
- * <br/> - Optional for live assets.
49
- */
50
- assetDuration?: number;
51
- /**
52
- * The identifier of the asset.
53
- *
54
- * @remarks
55
- * <br/> - Generated by FreeWheel CMS when an asset is uploaded.
56
- */
57
- assetId?: string;
58
- /**
59
- * The network identifier which is associated with a FreeWheel customer.
60
- */
61
- networkId: number;
62
- /**
63
- * The server side configuration profile.
64
- *
65
- * @remarks
66
- * <br/> - Used to indicate desired player capabilities.
67
- */
68
- profile: string;
69
- /**
70
- * The identifier of the video player's location.
71
- */
72
- siteSectionId?: string;
73
- /**
74
- * List of cue points.
75
- *
76
- * @remarks
77
- * <br/> - Not available in all FreeWheel modes.
78
- */
79
- cuePoints?: FreeWheelCue[];
80
- /**
81
- * A record of query string parameters added to the FreeWheel ad break request.
82
- * Each entry contains the parameter name with associated value.
83
- */
84
- customData?: Record<string, string>;
85
- }
86
- //# sourceMappingURL=FreeWheelAdDescription.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FreeWheelAdDescription.d.ts","sourceRoot":"","sources":["../../../../../src/api/source/ads/FreeWheelAdDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE9D;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEjF;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D;;OAEG;IACH,WAAW,EAAE,iBAAiB,CAAC,SAAS,CAAC;IAEzC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC"}
@@ -1,116 +0,0 @@
1
- import type { AdDescription } from "./Ads";
2
- /**
3
- * Represents a geographical location.
4
- *
5
- * @public
6
- */
7
- export interface Geo {
8
- /**
9
- * The latitude of this location.
10
- */
11
- readonly lat: number;
12
- /**
13
- * The longitude of this location.
14
- */
15
- readonly lon: number;
16
- }
17
- /**
18
- * A record of SpotX query string parameters.
19
- * Each entry contains the parameter name with associated value.
20
- *
21
- * @public
22
- */
23
- export interface SpotxData {
24
- [key: string]: string | number | boolean | string[] | Geo;
25
- }
26
- /**
27
- * A record of SpotX query string parameters which can be a nested structure.
28
- * Each entry contains the parameter name with associated value.
29
- *
30
- * @public
31
- */
32
- export interface SpotxQueryParameter {
33
- [key: string]: string | number | boolean | string[] | Geo | SpotxData | SpotxData[];
34
- }
35
- /**
36
- * Describes a SpotX ad break request.
37
- *
38
- * @remarks
39
- * <br/> - Available since v2.13.0.
40
- *
41
- * @example
42
- * ```
43
- * {
44
- * integration: 'spotx',
45
- * id: 123456,
46
- * cacheBuster: true,
47
- * app: {
48
- * bundle: 'com.exampleapps.example',
49
- * name: 'My CTV App'
50
- * },
51
- * device: {
52
- * ifa: '38400000-8cf0-11bd-b23e-10b96e40000d',
53
- * ua: 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1',
54
- * geo: {
55
- * lat: -24.378528,
56
- * lon: -128.325119
57
- * },
58
- * dnt: 1,
59
- * lmt: 1,
60
- * },
61
- * custom: {
62
- * category: ['category1', 'category2'],
63
- * somekey: 'somevalue'
64
- * }
65
- * user: {
66
- * yob: 1984,
67
- * gender: 'm'
68
- * }
69
- * }
70
- * ```
71
- *
72
- * @public
73
- */
74
- export interface SpotXAdDescription extends AdDescription {
75
- /**
76
- * The identifier of the ad break requested from SpotX.
77
- */
78
- id: number | string;
79
- /**
80
- * The maximum duration of the ad, in seconds.
81
- *
82
- * @defaultValue No maximum duration.
83
- */
84
- maximumAdDuration?: number | string;
85
- /**
86
- * The URL of the content page.
87
- */
88
- contentPageUrl?: string;
89
- /**
90
- * The IP address of the viewer.
91
- */
92
- ipAddress?: string;
93
- /**
94
- * Whether the ad break request should contain a cache buster.
95
- *
96
- * @remarks
97
- * <br/> - A cache buster adds a query parameter 'cb' with a random value to circumvent browser caching mechanisms.
98
- */
99
- cacheBuster?: boolean;
100
- /**
101
- * A source URL which contains the location of ad resources to be scheduled.
102
- *
103
- * @remarks
104
- * <br/> - This will override the generated URL.
105
- */
106
- sources?: string;
107
- /**
108
- * A record of query string parameters added to the SpotX ad break request.
109
- * Each entry contains the parameter name with associated value.
110
- *
111
- * @remarks
112
- * <br/> - Available since v2.38.0.
113
- */
114
- queryParameters?: SpotxQueryParameter;
115
- }
116
- //# sourceMappingURL=SpotXAdDescription.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpotXAdDescription.d.ts","sourceRoot":"","sources":["../../../../../src/api/source/ads/SpotXAdDescription.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAClB;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,GAAG,CAAC;CAC3D;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,GAAG,GAAG,SAAS,GAAG,SAAS,EAAE,CAAC;CACrF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IAEpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEpC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,mBAAmB,CAAC;CACvC"}
@@ -1,28 +0,0 @@
1
- import type { TypedSource } from '../../SourceDescription';
2
- import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';
3
- /**
4
- * The identifier of the Imagine integration.
5
- *
6
- * @public
7
- */
8
- export type ImagineSSAIIntegrationID = 'imagine';
9
- /**
10
- * Describes the SSAI configuration of the Imagine integration.
11
- *
12
- * @public
13
- */
14
- export interface ImagineServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration {
15
- /**
16
- * {@inheritDoc ServerSideAdInsertionConfiguration.integration}
17
- */
18
- integration: ImagineSSAIIntegrationID;
19
- }
20
- /**
21
- * Describes a source of the Imagine integration.
22
- *
23
- * @public
24
- */
25
- export interface ImagineTypedSource extends TypedSource {
26
- ssai: ImagineServerSideAdInsertionConfiguration;
27
- }
28
- //# sourceMappingURL=ImagineServerSideAdInsertionConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ImagineServerSideAdInsertionConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../src/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE/F;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,yCAA0C,SAAQ,kCAAkC;IACjG;;OAEG;IACH,WAAW,EAAE,wBAAwB,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACnD,IAAI,EAAE,yCAAyC,CAAC;CACnD"}
@@ -1,47 +0,0 @@
1
- import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';
2
- import type { TypedSource } from '../../SourceDescription';
3
- /**
4
- * The identifier of the Yospace integration.
5
- *
6
- * @public
7
- */
8
- export type YospaceSSAIIntegrationID = 'yospace';
9
- /**
10
- * The type of the Yospace stream, represented by a value from the following list:
11
- * <br/> - `'live'`: The stream is a live stream.
12
- * <br/> - `'livepause'`: The stream is a live stream with a large DVR window.
13
- * <br/> - `'nonlinear'`: The stream is a Non-Linear Start-Over stream.
14
- * <br/> - `'vod'`: The stream is a video-on-demand stream.
15
- *
16
- * @public
17
- */
18
- export type YospaceStreamType = 'vod' | 'live' | 'livepause' | 'nonlinear';
19
- /**
20
- * Represents a configuration for server-side ad insertion with the Yospace pre-integration.
21
- *
22
- * @remarks
23
- * <br/> - Available since v2.14.7.
24
- *
25
- * @public
26
- */
27
- export interface YospaceServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration {
28
- /**
29
- * The identifier for the SSAI pre-integration.
30
- */
31
- integration: YospaceSSAIIntegrationID;
32
- /**
33
- * The type of the requested stream.
34
- *
35
- * @defaultValue `'live'`
36
- */
37
- streamType?: YospaceStreamType;
38
- }
39
- /**
40
- * Represents a media resource with a Yospace server-side ad insertion request.
41
- *
42
- * @public
43
- */
44
- export interface YospaceTypedSource extends TypedSource {
45
- ssai: YospaceServerSideAdInsertionConfiguration;
46
- }
47
- //# sourceMappingURL=YospaceServerSideAdInsertionConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YospaceServerSideAdInsertionConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../src/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAAC;AAEjD;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,WAAW,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,WAAW,yCAA0C,SAAQ,kCAAkC;IACjG;;OAEG;IACH,WAAW,EAAE,wBAAwB,CAAC;IAEtC;;;;OAIG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACnD,IAAI,EAAE,yCAAyC,CAAC;CACnD"}
@@ -1,97 +0,0 @@
1
- import type { AdDescription, AdIntegrationKind } from "./Ads";
2
-
3
- /**
4
- * The possible ad unit types, represented by a value from the following list:
5
- * <br/> - `'preroll'`: The linear ad will play before the content started.
6
- * <br/> - `'midroll'`: The linear ad will play at a time offset during the content.
7
- * <br/> - `'postroll'`: The linear ad will play after the content ended.
8
- * <br/> - `'overlay'`: The non-linear ad.
9
- *
10
- * @public
11
- */
12
- export type FreeWheelAdUnitType = 'preroll' | 'midroll' | 'postroll' | 'overlay';
13
-
14
- /**
15
- * Represents a FreeWheel cue.
16
- *
17
- * @public
18
- */
19
- export interface FreeWheelCue {
20
- /**
21
- * The ad unit type.
22
- */
23
- adUnit: FreeWheelAdUnitType;
24
-
25
- /**
26
- * Offset after which the ad break will start, in seconds.
27
- */
28
- timeOffset: number;
29
- }
30
-
31
- /**
32
- * Describes a FreeWheel ad break request.
33
- *
34
- * @remarks
35
- * <br/> - Available since v2.42.0.
36
- *
37
- * @public
38
- */
39
- export interface FreeWheelAdDescription extends AdDescription {
40
- /**
41
- * The integration of this ad break.
42
- */
43
- integration: AdIntegrationKind.freewheel;
44
-
45
- /**
46
- * The FreeWheel ad server URL.
47
- */
48
- adServerUrl: string;
49
-
50
- /**
51
- * The duration of the asset, in seconds.
52
- *
53
- * @remarks
54
- * <br/> - Optional for live assets.
55
- */
56
- assetDuration?: number;
57
-
58
- /**
59
- * The identifier of the asset.
60
- *
61
- * @remarks
62
- * <br/> - Generated by FreeWheel CMS when an asset is uploaded.
63
- */
64
- assetId?: string;
65
-
66
- /**
67
- * The network identifier which is associated with a FreeWheel customer.
68
- */
69
- networkId: number;
70
-
71
- /**
72
- * The server side configuration profile.
73
- *
74
- * @remarks
75
- * <br/> - Used to indicate desired player capabilities.
76
- */
77
- profile: string;
78
-
79
- /**
80
- * The identifier of the video player's location.
81
- */
82
- siteSectionId?: string;
83
-
84
- /**
85
- * List of cue points.
86
- *
87
- * @remarks
88
- * <br/> - Not available in all FreeWheel modes.
89
- */
90
- cuePoints?: FreeWheelCue[];
91
-
92
- /**
93
- * A record of query string parameters added to the FreeWheel ad break request.
94
- * Each entry contains the parameter name with associated value.
95
- */
96
- customData?: Record<string, string>;
97
- }