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,126 +0,0 @@
1
- import type { AdDescription } from "./Ads";
2
-
3
- /**
4
- * Represents a geographical location.
5
- *
6
- * @public
7
- */
8
- export interface Geo {
9
- /**
10
- * The latitude of this location.
11
- */
12
- readonly lat: number;
13
-
14
- /**
15
- * The longitude of this location.
16
- */
17
- readonly lon: number;
18
- }
19
-
20
- /**
21
- * A record of SpotX query string parameters.
22
- * Each entry contains the parameter name with associated value.
23
- *
24
- * @public
25
- */
26
- export interface SpotxData {
27
- [key: string]: string | number | boolean | string[] | Geo;
28
- }
29
-
30
- /**
31
- * A record of SpotX query string parameters which can be a nested structure.
32
- * Each entry contains the parameter name with associated value.
33
- *
34
- * @public
35
- */
36
- export interface SpotxQueryParameter {
37
- [key: string]: string | number | boolean | string[] | Geo | SpotxData | SpotxData[];
38
- }
39
-
40
- /**
41
- * Describes a SpotX ad break request.
42
- *
43
- * @remarks
44
- * <br/> - Available since v2.13.0.
45
- *
46
- * @example
47
- * ```
48
- * {
49
- * integration: 'spotx',
50
- * id: 123456,
51
- * cacheBuster: true,
52
- * app: {
53
- * bundle: 'com.exampleapps.example',
54
- * name: 'My CTV App'
55
- * },
56
- * device: {
57
- * ifa: '38400000-8cf0-11bd-b23e-10b96e40000d',
58
- * 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',
59
- * geo: {
60
- * lat: -24.378528,
61
- * lon: -128.325119
62
- * },
63
- * dnt: 1,
64
- * lmt: 1,
65
- * },
66
- * custom: {
67
- * category: ['category1', 'category2'],
68
- * somekey: 'somevalue'
69
- * }
70
- * user: {
71
- * yob: 1984,
72
- * gender: 'm'
73
- * }
74
- * }
75
- * ```
76
- *
77
- * @public
78
- */
79
- export interface SpotXAdDescription extends AdDescription {
80
- /**
81
- * The identifier of the ad break requested from SpotX.
82
- */
83
- id: number | string;
84
-
85
- /**
86
- * The maximum duration of the ad, in seconds.
87
- *
88
- * @defaultValue No maximum duration.
89
- */
90
- maximumAdDuration?: number | string;
91
-
92
- /**
93
- * The URL of the content page.
94
- */
95
- contentPageUrl?: string;
96
-
97
- /**
98
- * The IP address of the viewer.
99
- */
100
- ipAddress?: string;
101
-
102
- /**
103
- * Whether the ad break request should contain a cache buster.
104
- *
105
- * @remarks
106
- * <br/> - A cache buster adds a query parameter 'cb' with a random value to circumvent browser caching mechanisms.
107
- */
108
- cacheBuster?: boolean;
109
-
110
- /**
111
- * A source URL which contains the location of ad resources to be scheduled.
112
- *
113
- * @remarks
114
- * <br/> - This will override the generated URL.
115
- */
116
- sources?: string;
117
-
118
- /**
119
- * A record of query string parameters added to the SpotX ad break request.
120
- * Each entry contains the parameter name with associated value.
121
- *
122
- * @remarks
123
- * <br/> - Available since v2.38.0.
124
- */
125
- queryParameters?: SpotxQueryParameter;
126
- }
@@ -1,30 +0,0 @@
1
- import type { TypedSource } from '../../SourceDescription';
2
- import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';
3
-
4
- /**
5
- * The identifier of the Imagine integration.
6
- *
7
- * @public
8
- */
9
- export type ImagineSSAIIntegrationID = 'imagine';
10
-
11
- /**
12
- * Describes the SSAI configuration of the Imagine integration.
13
- *
14
- * @public
15
- */
16
- export interface ImagineServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration {
17
- /**
18
- * {@inheritDoc ServerSideAdInsertionConfiguration.integration}
19
- */
20
- integration: ImagineSSAIIntegrationID;
21
- }
22
-
23
- /**
24
- * Describes a source of the Imagine integration.
25
- *
26
- * @public
27
- */
28
- export interface ImagineTypedSource extends TypedSource {
29
- ssai: ImagineServerSideAdInsertionConfiguration;
30
- }
@@ -1,51 +0,0 @@
1
- import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';
2
- import type { TypedSource } from '../../SourceDescription';
3
-
4
- /**
5
- * The identifier of the Yospace integration.
6
- *
7
- * @public
8
- */
9
- export type YospaceSSAIIntegrationID = 'yospace';
10
-
11
- /**
12
- * The type of the Yospace stream, represented by a value from the following list:
13
- * <br/> - `'live'`: The stream is a live stream.
14
- * <br/> - `'livepause'`: The stream is a live stream with a large DVR window.
15
- * <br/> - `'nonlinear'`: The stream is a Non-Linear Start-Over stream.
16
- * <br/> - `'vod'`: The stream is a video-on-demand stream.
17
- *
18
- * @public
19
- */
20
- export type YospaceStreamType = 'vod' | 'live' | 'livepause' | 'nonlinear';
21
-
22
- /**
23
- * Represents a configuration for server-side ad insertion with the Yospace pre-integration.
24
- *
25
- * @remarks
26
- * <br/> - Available since v2.14.7.
27
- *
28
- * @public
29
- */
30
- export interface YospaceServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration {
31
- /**
32
- * The identifier for the SSAI pre-integration.
33
- */
34
- integration: YospaceSSAIIntegrationID;
35
-
36
- /**
37
- * The type of the requested stream.
38
- *
39
- * @defaultValue `'live'`
40
- */
41
- streamType?: YospaceStreamType;
42
- }
43
-
44
- /**
45
- * Represents a media resource with a Yospace server-side ad insertion request.
46
- *
47
- * @public
48
- */
49
- export interface YospaceTypedSource extends TypedSource {
50
- ssai: YospaceServerSideAdInsertionConfiguration;
51
- }