react-native-theoplayer 7.8.2 → 7.9.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/CHANGELOG.md +8 -0
- package/android/build.gradle +3 -3
- package/android/src/main/java/com/theoplayer/source/SourceAdapter.kt +8 -0
- package/ios/THEOplayerRCTSourceDescriptionBuilder.swift +3 -1
- package/ios/ui/THEOplayerRCTView+UIConfig.swift +2 -5
- package/lib/commonjs/api/barrel.js +24 -13
- package/lib/commonjs/api/barrel.js.map +1 -1
- package/lib/commonjs/api/source/SourceDescription.js +64 -0
- package/lib/commonjs/api/source/SourceDescription.js.map +1 -1
- package/lib/commonjs/api/source/ads/Ads.js +2 -0
- package/lib/commonjs/api/source/ads/Ads.js.map +1 -1
- package/lib/commonjs/api/source/ads/TheoAdDescription.js +32 -0
- package/lib/commonjs/api/source/ads/TheoAdDescription.js.map +1 -0
- package/lib/commonjs/api/source/ads/barrel.js +11 -0
- package/lib/commonjs/api/source/ads/barrel.js.map +1 -1
- package/lib/commonjs/api/theolive/TheoLiveSource.js +6 -0
- package/lib/commonjs/api/theolive/TheoLiveSource.js.map +1 -0
- package/lib/commonjs/api/theolive/barrel.js +17 -0
- package/lib/commonjs/api/theolive/barrel.js.map +1 -0
- package/lib/module/api/barrel.js +1 -0
- package/lib/module/api/barrel.js.map +1 -1
- package/lib/module/api/source/SourceDescription.js +71 -1
- package/lib/module/api/source/SourceDescription.js.map +1 -1
- package/lib/module/api/source/ads/Ads.js +2 -0
- package/lib/module/api/source/ads/Ads.js.map +1 -1
- package/lib/module/api/source/ads/TheoAdDescription.js +27 -0
- package/lib/module/api/source/ads/TheoAdDescription.js.map +1 -0
- package/lib/module/api/source/ads/barrel.js +1 -0
- package/lib/module/api/source/ads/barrel.js.map +1 -1
- package/lib/module/api/theolive/TheoLiveSource.js +2 -0
- package/lib/module/api/theolive/TheoLiveSource.js.map +1 -0
- package/lib/module/api/theolive/barrel.js +2 -0
- package/lib/module/api/theolive/barrel.js.map +1 -0
- package/lib/typescript/api/barrel.d.ts +1 -0
- package/lib/typescript/api/barrel.d.ts.map +1 -1
- package/lib/typescript/api/source/SourceDescription.d.ts +30 -3
- package/lib/typescript/api/source/SourceDescription.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/Ads.d.ts +3 -1
- package/lib/typescript/api/source/ads/Ads.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/TheoAdDescription.d.ts +93 -0
- package/lib/typescript/api/source/ads/TheoAdDescription.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/barrel.d.ts +1 -0
- package/lib/typescript/api/source/ads/barrel.d.ts.map +1 -1
- package/lib/typescript/api/theolive/TheoLiveSource.d.ts +11 -0
- package/lib/typescript/api/theolive/TheoLiveSource.d.ts.map +1 -0
- package/lib/typescript/api/theolive/barrel.d.ts +2 -0
- package/lib/typescript/api/theolive/barrel.d.ts.map +1 -0
- package/package.json +1 -1
- package/react-native-theoplayer.podspec +17 -17
- package/src/api/barrel.ts +1 -0
- package/src/api/source/SourceDescription.ts +30 -3
- package/src/api/source/ads/Ads.ts +2 -0
- package/src/api/source/ads/TheoAdDescription.ts +102 -0
- package/src/api/source/ads/barrel.ts +1 -0
- package/src/api/theolive/TheoLiveSource.ts +11 -0
- package/src/api/theolive/barrel.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [7.9.0] - 24-09-06
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Added THEOlive source integration type to `SourceDescription`.
|
|
13
|
+
- Added THEOads as `AdIntegrationKind`.
|
|
14
|
+
- Added a `headers` property to `TypedSource`. The player will add the headers to the HTTP requests for the given resource.
|
|
15
|
+
|
|
8
16
|
## [7.8.2] - 24-08-21
|
|
9
17
|
|
|
10
18
|
### Changed
|
package/android/build.gradle
CHANGED
|
@@ -112,9 +112,9 @@ dependencies {
|
|
|
112
112
|
implementation "androidx.appcompat:appcompat:${safeExtGet('appcompatVersion', '1.6.1')}"
|
|
113
113
|
implementation "androidx.core:core-ktx:${safeExtGet('corektxVersion', '1.10.1')}"
|
|
114
114
|
|
|
115
|
-
// The minimum supported THEOplayer version is 7.
|
|
116
|
-
def theoplayer_sdk_version = safeExtGet('THEOplayer_sdk', '[7.
|
|
117
|
-
def theoplayer_mediasession_version = safeExtGet('THEOplayer_mediasession', '[7.
|
|
115
|
+
// The minimum supported THEOplayer version is 7.12.0
|
|
116
|
+
def theoplayer_sdk_version = safeExtGet('THEOplayer_sdk', '[7.12.0, 8.0.0)')
|
|
117
|
+
def theoplayer_mediasession_version = safeExtGet('THEOplayer_mediasession', '[7.12.0, 8.0.0)')
|
|
118
118
|
|
|
119
119
|
println("Using THEOplayer (${versionString(theoplayer_sdk_version)})")
|
|
120
120
|
implementation "com.theoplayer.theoplayer-sdk-android:core:${theoplayer_sdk_version}"
|
|
@@ -51,6 +51,7 @@ private const val PROP_POSTER = "poster"
|
|
|
51
51
|
private const val PROP_ADS = "ads"
|
|
52
52
|
private const val PROP_DASH = "dash"
|
|
53
53
|
private const val PROP_DASH_IGNORE_AVAILABILITYWINDOW = "ignoreAvailabilityWindow"
|
|
54
|
+
private const val PROP_HEADERS = "headers"
|
|
54
55
|
private const val ERROR_IMA_NOT_ENABLED = "Google IMA support not enabled."
|
|
55
56
|
private const val ERROR_UNSUPPORTED_CSAI_INTEGRATION = "Unsupported CSAI integration"
|
|
56
57
|
private const val ERROR_MISSING_CSAI_INTEGRATION = "Missing CSAI integration"
|
|
@@ -151,6 +152,13 @@ class SourceAdapter {
|
|
|
151
152
|
if (jsonTypedSource.has(PROP_DASH)) {
|
|
152
153
|
tsBuilder.dash(parseDashConfig(jsonTypedSource.getJSONObject(PROP_DASH)))
|
|
153
154
|
}
|
|
155
|
+
jsonTypedSource.optJSONObject(PROP_HEADERS)?.let { headersJson ->
|
|
156
|
+
tsBuilder.headers(mutableMapOf<String, String>().apply {
|
|
157
|
+
headersJson.keys().forEach { key ->
|
|
158
|
+
put(key, headersJson.getString(key))
|
|
159
|
+
}
|
|
160
|
+
})
|
|
161
|
+
}
|
|
154
162
|
if (jsonTypedSource.has(PROP_LIVE_OFFSET)) {
|
|
155
163
|
tsBuilder.liveOffset(jsonTypedSource.getDouble(PROP_LIVE_OFFSET))
|
|
156
164
|
}
|
|
@@ -170,9 +170,11 @@ class THEOplayerRCTSourceDescriptionBuilder {
|
|
|
170
170
|
if let src = typedSourceData[SD_PROP_SRC] as? String {
|
|
171
171
|
// extract the type
|
|
172
172
|
let type = typedSourceData[SD_PROP_TYPE] as? String ?? THEOplayerRCTSourceDescriptionBuilder.extractMimeType(src)
|
|
173
|
+
let headers = typedSourceData[SD_PROP_HEADERS] as? [String:String]
|
|
173
174
|
return TypedSource(src: src,
|
|
174
175
|
type: type,
|
|
175
|
-
drm: contentProtection
|
|
176
|
+
drm: contentProtection,
|
|
177
|
+
headers: headers)
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
// Check if we can extract a DAI source
|
|
@@ -8,7 +8,7 @@ struct UIConfig {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
extension THEOplayerRCTView {
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
func parseUIConfig(configDict: NSDictionary) {
|
|
13
13
|
if let uiConfig = configDict["ui"] as? NSDictionary {
|
|
14
14
|
if let uiLanguage = uiConfig["language"] as? String {
|
|
@@ -16,8 +16,5 @@ extension THEOplayerRCTView {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
func playerUIConfiguration() -> UIConfiguration? {
|
|
21
|
-
return UIConfiguration(language: self.uiConfig.language)
|
|
22
|
-
}
|
|
19
|
+
|
|
23
20
|
}
|
|
@@ -146,7 +146,7 @@ Object.keys(_barrel13).forEach(function (key) {
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
|
-
var _barrel14 = require("./
|
|
149
|
+
var _barrel14 = require("./theolive/barrel");
|
|
150
150
|
Object.keys(_barrel14).forEach(function (key) {
|
|
151
151
|
if (key === "default" || key === "__esModule") return;
|
|
152
152
|
if (key in exports && exports[key] === _barrel14[key]) return;
|
|
@@ -157,7 +157,7 @@ Object.keys(_barrel14).forEach(function (key) {
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
|
-
var _barrel15 = require("./
|
|
160
|
+
var _barrel15 = require("./timeranges/barrel");
|
|
161
161
|
Object.keys(_barrel15).forEach(function (key) {
|
|
162
162
|
if (key === "default" || key === "__esModule") return;
|
|
163
163
|
if (key in exports && exports[key] === _barrel15[key]) return;
|
|
@@ -168,7 +168,7 @@ Object.keys(_barrel15).forEach(function (key) {
|
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
});
|
|
171
|
-
var _barrel16 = require("./
|
|
171
|
+
var _barrel16 = require("./resolution/barrel");
|
|
172
172
|
Object.keys(_barrel16).forEach(function (key) {
|
|
173
173
|
if (key === "default" || key === "__esModule") return;
|
|
174
174
|
if (key in exports && exports[key] === _barrel16[key]) return;
|
|
@@ -179,7 +179,7 @@ Object.keys(_barrel16).forEach(function (key) {
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
});
|
|
182
|
-
var _barrel17 = require("./
|
|
182
|
+
var _barrel17 = require("./track/barrel");
|
|
183
183
|
Object.keys(_barrel17).forEach(function (key) {
|
|
184
184
|
if (key === "default" || key === "__esModule") return;
|
|
185
185
|
if (key in exports && exports[key] === _barrel17[key]) return;
|
|
@@ -190,7 +190,7 @@ Object.keys(_barrel17).forEach(function (key) {
|
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
});
|
|
193
|
-
var _barrel18 = require("./
|
|
193
|
+
var _barrel18 = require("./ui/barrel");
|
|
194
194
|
Object.keys(_barrel18).forEach(function (key) {
|
|
195
195
|
if (key === "default" || key === "__esModule") return;
|
|
196
196
|
if (key in exports && exports[key] === _barrel18[key]) return;
|
|
@@ -201,6 +201,17 @@ Object.keys(_barrel18).forEach(function (key) {
|
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
});
|
|
204
|
+
var _barrel19 = require("./utils/barrel");
|
|
205
|
+
Object.keys(_barrel19).forEach(function (key) {
|
|
206
|
+
if (key === "default" || key === "__esModule") return;
|
|
207
|
+
if (key in exports && exports[key] === _barrel19[key]) return;
|
|
208
|
+
Object.defineProperty(exports, key, {
|
|
209
|
+
enumerable: true,
|
|
210
|
+
get: function () {
|
|
211
|
+
return _barrel19[key];
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
204
215
|
var _THEOplayerView = require("./THEOplayerView");
|
|
205
216
|
Object.keys(_THEOplayerView).forEach(function (key) {
|
|
206
217
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -212,25 +223,25 @@ Object.keys(_THEOplayerView).forEach(function (key) {
|
|
|
212
223
|
}
|
|
213
224
|
});
|
|
214
225
|
});
|
|
215
|
-
var
|
|
216
|
-
Object.keys(
|
|
226
|
+
var _barrel20 = require("./player/barrel");
|
|
227
|
+
Object.keys(_barrel20).forEach(function (key) {
|
|
217
228
|
if (key === "default" || key === "__esModule") return;
|
|
218
|
-
if (key in exports && exports[key] ===
|
|
229
|
+
if (key in exports && exports[key] === _barrel20[key]) return;
|
|
219
230
|
Object.defineProperty(exports, key, {
|
|
220
231
|
enumerable: true,
|
|
221
232
|
get: function () {
|
|
222
|
-
return
|
|
233
|
+
return _barrel20[key];
|
|
223
234
|
}
|
|
224
235
|
});
|
|
225
236
|
});
|
|
226
|
-
var
|
|
227
|
-
Object.keys(
|
|
237
|
+
var _barrel21 = require("./presentation/barrel");
|
|
238
|
+
Object.keys(_barrel21).forEach(function (key) {
|
|
228
239
|
if (key === "default" || key === "__esModule") return;
|
|
229
|
-
if (key in exports && exports[key] ===
|
|
240
|
+
if (key in exports && exports[key] === _barrel21[key]) return;
|
|
230
241
|
Object.defineProperty(exports, key, {
|
|
231
242
|
enumerable: true,
|
|
232
243
|
get: function () {
|
|
233
|
-
return
|
|
244
|
+
return _barrel21[key];
|
|
234
245
|
}
|
|
235
246
|
});
|
|
236
247
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_barrel","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_barrel2","_barrel3","_barrel4","_barrel5","_barrel6","_barrel7","_barrel8","_barrel9","_barrel10","_barrel11","_barrel12","_barrel13","_barrel14","_barrel15","_barrel16","_barrel17","_barrel18","
|
|
1
|
+
{"version":3,"names":["_barrel","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_barrel2","_barrel3","_barrel4","_barrel5","_barrel6","_barrel7","_barrel8","_barrel9","_barrel10","_barrel11","_barrel12","_barrel13","_barrel14","_barrel15","_barrel16","_barrel17","_barrel18","_barrel19","_THEOplayerView","_barrel20","_barrel21"],"sourceRoot":"../../../src","sources":["api/barrel.ts"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,QAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,QAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,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OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAqB,SAAA,CAAAzB,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -3,4 +3,68 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.SourceIntegrationId = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Represents a media resource.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* <br/> - Can be a string value representing the URL of a media resource, a {@link TypedSource}.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* A media resource or list of media resources.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* <br/> - The order of sources when using a list determines their priority when attempting playback.
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* The cross-origin setting of a source, represented by a value from the following list:
|
|
25
|
+
* <br/> - `'anonymous'`: CORS requests will have the credentials flag set to 'same-origin'.
|
|
26
|
+
* <br/> - `'use-credentials'`: CORS requests will have the credentials flag set to 'include'.
|
|
27
|
+
* <br/> - `''`: Setting the empty string is the same as `'anonymous'`
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* <br/> - See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes | The crossorigin attribute: Requesting CORS access to content}
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* The integration identifier of a source specific to a pre-integration, represented by a value from the following list:
|
|
36
|
+
* <br/> - `'theolive'`: The source contains the THEOlive initialization url.
|
|
37
|
+
*
|
|
38
|
+
* @category Source
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
let SourceIntegrationId = exports.SourceIntegrationId = /*#__PURE__*/function (SourceIntegrationId) {
|
|
42
|
+
SourceIntegrationId["THEO_LIVE"] = "theolive";
|
|
43
|
+
return SourceIntegrationId;
|
|
44
|
+
}({});
|
|
45
|
+
/**
|
|
46
|
+
* Describes the configuration of a player's source.
|
|
47
|
+
*
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* Describes the configuration of a player's source.
|
|
52
|
+
*
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* Describes the configuration of a side-loaded text track.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Represents the common properties of a media resource.
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
/**
|
|
66
|
+
* Represents a media resource characterized by a URL to the resource and optionally information about the resource.
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
6
70
|
//# sourceMappingURL=SourceDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/source/SourceDescription.ts"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["SourceIntegrationId","exports"],"sourceRoot":"../../../../src","sources":["api/source/SourceDescription.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;AAI/B;AACA;AACA;AACA;AACA;AAmDA;AACA;AACA;AACA;AACA;AAmDA;AACA;AACA;AACA;AACA;AA0FA;AACA;AACA;AACA;AACA;AA0DA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -31,6 +31,7 @@ exports.AdIntegrationKind = void 0;
|
|
|
31
31
|
* <br/> - `'google-ima'`: {@link https://developers.google.com/interactive-media-ads/docs/sdks/html5|Google IMA} pre-integrated ad playback.
|
|
32
32
|
* <br/> - `'spotx'`: {@link https://developer.spotxchange.com/|SpotX} pre-integrated ad playback.
|
|
33
33
|
* <br/> - `'freewheel'`: {@link https://vi.freewheel.tv/|FreeWheel} pre-integrated ad playback.
|
|
34
|
+
* <br/> - `'theoads'`: [Experimental] - API under development, do not use without consulting THEO Technologies.
|
|
34
35
|
*
|
|
35
36
|
* @remarks
|
|
36
37
|
* <br/> - An empty string defaults to `'theo'`.
|
|
@@ -42,6 +43,7 @@ let AdIntegrationKind = exports.AdIntegrationKind = /*#__PURE__*/function (AdInt
|
|
|
42
43
|
AdIntegrationKind["google_ima"] = "google-ima";
|
|
43
44
|
AdIntegrationKind["spotx"] = "spotx";
|
|
44
45
|
AdIntegrationKind["theo"] = "theo";
|
|
46
|
+
AdIntegrationKind["theoads"] = "theoads";
|
|
45
47
|
return AdIntegrationKind;
|
|
46
48
|
}({});
|
|
47
49
|
//# sourceMappingURL=Ads.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AdIntegrationKind","exports"],"sourceRoot":"../../../../../src","sources":["api/source/ads/Ads.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAeA;AACA;AACA;AACA;AACA;AAoDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"names":["AdIntegrationKind","exports"],"sourceRoot":"../../../../../src","sources":["api/source/ads/Ads.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAeA;AACA;AACA;AACA;AACA;AAoDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA,IAaYA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TheoAdsLayoutOverride = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Describes a THEOads ad break request.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* <br/> - For THEOads, one configured ad break request enables server guided ad playback for the entire stream.
|
|
12
|
+
*
|
|
13
|
+
* @category Ads
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Describes how and when the layout of a THEOads ad break should be overridden:
|
|
17
|
+
* - `'single'`: Override to play all ad breaks using the "single" layout mode.
|
|
18
|
+
* - `'l-shape'`: Override to play all ad breaks using the "l-shape" layout mode.
|
|
19
|
+
* - `'double'`: Override to play all ad breaks using the "double" layout mode.
|
|
20
|
+
* - `'single-if-mobile'`: When on a mobile device, override to play all ad breaks using the "single" layout mode.
|
|
21
|
+
*
|
|
22
|
+
* @category Ads
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
let TheoAdsLayoutOverride = exports.TheoAdsLayoutOverride = /*#__PURE__*/function (TheoAdsLayoutOverride) {
|
|
26
|
+
TheoAdsLayoutOverride["SINGLE"] = "single";
|
|
27
|
+
TheoAdsLayoutOverride["LSHAPE"] = "l-shape";
|
|
28
|
+
TheoAdsLayoutOverride["DOUBLE"] = "double";
|
|
29
|
+
TheoAdsLayoutOverride["SINGLE_IF_MOBILE"] = "single-if-mobile";
|
|
30
|
+
return TheoAdsLayoutOverride;
|
|
31
|
+
}({});
|
|
32
|
+
//# sourceMappingURL=TheoAdDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TheoAdsLayoutOverride","exports"],"sourceRoot":"../../../../../src","sources":["api/source/ads/TheoAdDescription.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA6EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA,IAUYA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA","ignoreList":[]}
|
|
@@ -36,6 +36,17 @@ Object.keys(_THEOplayerAdDescription).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
+
var _TheoAdDescription = require("./TheoAdDescription");
|
|
40
|
+
Object.keys(_TheoAdDescription).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _TheoAdDescription[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _TheoAdDescription[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
39
50
|
var _barrel = require("./ssai/barrel");
|
|
40
51
|
Object.keys(_barrel).forEach(function (key) {
|
|
41
52
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_Ads","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_IMAAdDescription","_THEOplayerAdDescription","_barrel"],"sourceRoot":"../../../../../src","sources":["api/source/ads/barrel.ts"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,iBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,iBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,iBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,iBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,wBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,wBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,wBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,wBAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,
|
|
1
|
+
{"version":3,"names":["_Ads","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_IMAAdDescription","_THEOplayerAdDescription","_TheoAdDescription","_barrel"],"sourceRoot":"../../../../../src","sources":["api/source/ads/barrel.ts"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA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,OAAA,CAAAD,GAAA,MAAAO,kBAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,kBAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,OAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,OAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,OAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,OAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/theolive/TheoLiveSource.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _TheoLiveSource = require("./TheoLiveSource");
|
|
7
|
+
Object.keys(_TheoLiveSource).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _TheoLiveSource[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _TheoLiveSource[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=barrel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_TheoLiveSource","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../src","sources":["api/theolive/barrel.ts"],"mappings":";;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,eAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,eAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,eAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/lib/module/api/barrel.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from './event/barrel';
|
|
|
11
11
|
export * from './media/barrel';
|
|
12
12
|
export * from './drm/barrel';
|
|
13
13
|
export * from './source/barrel';
|
|
14
|
+
export * from './theolive/barrel';
|
|
14
15
|
export * from './timeranges/barrel';
|
|
15
16
|
export * from './resolution/barrel';
|
|
16
17
|
export * from './track/barrel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["api/barrel.ts"],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,cAAc,0BAA0B;AACxC,cAAc,oBAAoB;AAClC,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,qBAAqB;AACnC,cAAc,qBAAqB;AACnC,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,gBAAgB;AAC9B,cAAc,kBAAkB;AAChC,cAAc,iBAAiB;AAC/B,cAAc,uBAAuB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["api/barrel.ts"],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,cAAc,0BAA0B;AACxC,cAAc,oBAAoB;AAClC,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,mBAAmB;AACjC,cAAc,qBAAqB;AACnC,cAAc,qBAAqB;AACnC,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,gBAAgB;AAC9B,cAAc,kBAAkB;AAChC,cAAc,iBAAiB;AAC/B,cAAc,uBAAuB","ignoreList":[]}
|
|
@@ -1,2 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Represents a media resource.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* <br/> - Can be a string value representing the URL of a media resource, a {@link TypedSource}.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A media resource or list of media resources.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* <br/> - The order of sources when using a list determines their priority when attempting playback.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The cross-origin setting of a source, represented by a value from the following list:
|
|
21
|
+
* <br/> - `'anonymous'`: CORS requests will have the credentials flag set to 'same-origin'.
|
|
22
|
+
* <br/> - `'use-credentials'`: CORS requests will have the credentials flag set to 'include'.
|
|
23
|
+
* <br/> - `''`: Setting the empty string is the same as `'anonymous'`
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* <br/> - See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes | The crossorigin attribute: Requesting CORS access to content}
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The integration identifier of a source specific to a pre-integration, represented by a value from the following list:
|
|
33
|
+
* <br/> - `'theolive'`: The source contains the THEOlive initialization url.
|
|
34
|
+
*
|
|
35
|
+
* @category Source
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export let SourceIntegrationId = /*#__PURE__*/function (SourceIntegrationId) {
|
|
39
|
+
SourceIntegrationId["THEO_LIVE"] = "theolive";
|
|
40
|
+
return SourceIntegrationId;
|
|
41
|
+
}({});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Describes the configuration of a player's source.
|
|
45
|
+
*
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Describes the configuration of a player's source.
|
|
51
|
+
*
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Describes the configuration of a side-loaded text track.
|
|
57
|
+
*
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Represents the common properties of a media resource.
|
|
63
|
+
*
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Represents a media resource characterized by a URL to the resource and optionally information about the resource.
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
2
72
|
//# sourceMappingURL=SourceDescription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/source/SourceDescription.ts"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["SourceIntegrationId"],"sourceRoot":"../../../../src","sources":["api/source/SourceDescription.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;;AAI/B;AACA;AACA;AACA;AACA;;AAmDA;AACA;AACA;AACA;AACA;;AAmDA;AACA;AACA;AACA;AACA;;AA0FA;AACA;AACA;AACA;AACA;;AA0DA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
* <br/> - `'google-ima'`: {@link https://developers.google.com/interactive-media-ads/docs/sdks/html5|Google IMA} pre-integrated ad playback.
|
|
29
29
|
* <br/> - `'spotx'`: {@link https://developer.spotxchange.com/|SpotX} pre-integrated ad playback.
|
|
30
30
|
* <br/> - `'freewheel'`: {@link https://vi.freewheel.tv/|FreeWheel} pre-integrated ad playback.
|
|
31
|
+
* <br/> - `'theoads'`: [Experimental] - API under development, do not use without consulting THEO Technologies.
|
|
31
32
|
*
|
|
32
33
|
* @remarks
|
|
33
34
|
* <br/> - An empty string defaults to `'theo'`.
|
|
@@ -39,6 +40,7 @@ export let AdIntegrationKind = /*#__PURE__*/function (AdIntegrationKind) {
|
|
|
39
40
|
AdIntegrationKind["google_ima"] = "google-ima";
|
|
40
41
|
AdIntegrationKind["spotx"] = "spotx";
|
|
41
42
|
AdIntegrationKind["theo"] = "theo";
|
|
43
|
+
AdIntegrationKind["theoads"] = "theoads";
|
|
42
44
|
return AdIntegrationKind;
|
|
43
45
|
}({});
|
|
44
46
|
//# sourceMappingURL=Ads.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["AdIntegrationKind"],"sourceRoot":"../../../../../src","sources":["api/source/ads/Ads.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACA;AACA;;AAoDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["AdIntegrationKind"],"sourceRoot":"../../../../../src","sources":["api/source/ads/Ads.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACA;AACA;;AAoDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes a THEOads ad break request.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* <br/> - For THEOads, one configured ad break request enables server guided ad playback for the entire stream.
|
|
6
|
+
*
|
|
7
|
+
* @category Ads
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Describes how and when the layout of a THEOads ad break should be overridden:
|
|
12
|
+
* - `'single'`: Override to play all ad breaks using the "single" layout mode.
|
|
13
|
+
* - `'l-shape'`: Override to play all ad breaks using the "l-shape" layout mode.
|
|
14
|
+
* - `'double'`: Override to play all ad breaks using the "double" layout mode.
|
|
15
|
+
* - `'single-if-mobile'`: When on a mobile device, override to play all ad breaks using the "single" layout mode.
|
|
16
|
+
*
|
|
17
|
+
* @category Ads
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export let TheoAdsLayoutOverride = /*#__PURE__*/function (TheoAdsLayoutOverride) {
|
|
21
|
+
TheoAdsLayoutOverride["SINGLE"] = "single";
|
|
22
|
+
TheoAdsLayoutOverride["LSHAPE"] = "l-shape";
|
|
23
|
+
TheoAdsLayoutOverride["DOUBLE"] = "double";
|
|
24
|
+
TheoAdsLayoutOverride["SINGLE_IF_MOBILE"] = "single-if-mobile";
|
|
25
|
+
return TheoAdsLayoutOverride;
|
|
26
|
+
}({});
|
|
27
|
+
//# sourceMappingURL=TheoAdDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TheoAdsLayoutOverride"],"sourceRoot":"../../../../../src","sources":["api/source/ads/TheoAdDescription.ts"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA6EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,qBAAqB,0BAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAArBA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/ads/barrel.ts"],"mappings":"AAAA,cAAc,OAAO;AACrB,cAAc,oBAAoB;AAClC,cAAc,2BAA2B;AACzC,cAAc,eAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/ads/barrel.ts"],"mappings":"AAAA,cAAc,OAAO;AACrB,cAAc,oBAAoB;AAClC,cAAc,2BAA2B;AACzC,cAAc,qBAAqB;AACnC,cAAc,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/theolive/TheoLiveSource.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/theolive/barrel.ts"],"mappings":"AAAA,cAAc,kBAAkB","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@ export * from './event/barrel';
|
|
|
11
11
|
export * from './media/barrel';
|
|
12
12
|
export * from './drm/barrel';
|
|
13
13
|
export * from './source/barrel';
|
|
14
|
+
export * from './theolive/barrel';
|
|
14
15
|
export * from './timeranges/barrel';
|
|
15
16
|
export * from './resolution/barrel';
|
|
16
17
|
export * from './track/barrel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../../../src/api/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../../../src/api/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
|
@@ -11,8 +11,8 @@ import type { DRMConfiguration } from './drm/DRMConfiguration';
|
|
|
11
11
|
import type { HlsPlaybackConfiguration } from './hls/HlsPlaybackConfiguration';
|
|
12
12
|
import type { AdDescription } from './ads/Ads';
|
|
13
13
|
import type { MetadataDescription } from './metadata/MetadataDescription';
|
|
14
|
-
import type { ServerSideAdInsertionConfiguration } from
|
|
15
|
-
import type { AnalyticsDescription } from
|
|
14
|
+
import type { ServerSideAdInsertionConfiguration } from './ads/ssai/ServerSideAdInsertionConfiguration';
|
|
15
|
+
import type { AnalyticsDescription } from './analytics/AnalyticsDescription';
|
|
16
16
|
export type Source = TypedSource;
|
|
17
17
|
/**
|
|
18
18
|
* A media resource or list of media resources.
|
|
@@ -35,6 +35,16 @@ export type Sources = Source | Source[];
|
|
|
35
35
|
* @public
|
|
36
36
|
*/
|
|
37
37
|
export type CrossOriginSetting = '' | 'anonymous' | 'use-credentials';
|
|
38
|
+
/**
|
|
39
|
+
* The integration identifier of a source specific to a pre-integration, represented by a value from the following list:
|
|
40
|
+
* <br/> - `'theolive'`: The source contains the THEOlive initialization url.
|
|
41
|
+
*
|
|
42
|
+
* @category Source
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
export declare enum SourceIntegrationId {
|
|
46
|
+
THEO_LIVE = "theolive"
|
|
47
|
+
}
|
|
38
48
|
/**
|
|
39
49
|
* Describes the configuration of a player's source.
|
|
40
50
|
*
|
|
@@ -214,7 +224,7 @@ export interface TextTrackDescription {
|
|
|
214
224
|
* The localTime that matches the PTS value that is used to sync the track with the video.
|
|
215
225
|
*
|
|
216
226
|
* @internal
|
|
217
|
-
|
|
227
|
+
* @remarks
|
|
218
228
|
* <br/> - Available on iOS.
|
|
219
229
|
* <br/> - Format: "HH:mm:mm:SSS"
|
|
220
230
|
* <br/> - Default value is "00:00:00:000"
|
|
@@ -227,6 +237,13 @@ export interface TextTrackDescription {
|
|
|
227
237
|
* @public
|
|
228
238
|
*/
|
|
229
239
|
export interface BaseSource {
|
|
240
|
+
/**
|
|
241
|
+
* The integration ID of the source.
|
|
242
|
+
*
|
|
243
|
+
* @remarks
|
|
244
|
+
* <br/> - This can be used to signal that a source is specific to an integration.
|
|
245
|
+
*/
|
|
246
|
+
integration?: SourceIntegrationId;
|
|
230
247
|
/**
|
|
231
248
|
* The cross-origin setting of the source.
|
|
232
249
|
*
|
|
@@ -302,6 +319,16 @@ export interface TypedSource extends BaseSource {
|
|
|
302
319
|
* <br/> - Available since v2.15.0.
|
|
303
320
|
*/
|
|
304
321
|
contentProtection?: DRMConfiguration;
|
|
322
|
+
/**
|
|
323
|
+
* The headers included in the request when retrieving the resource.
|
|
324
|
+
*
|
|
325
|
+
* @remarks
|
|
326
|
+
* <br/> - Available on iOS and Android.
|
|
327
|
+
* <br/> - Available since v7.9.0.
|
|
328
|
+
*/
|
|
329
|
+
headers?: {
|
|
330
|
+
[key: string]: string;
|
|
331
|
+
};
|
|
305
332
|
/**
|
|
306
333
|
* The Server-side Ad Insertion parameters for the media resource.
|
|
307
334
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceDescription.d.ts","sourceRoot":"","sources":["../../../../src/api/source/SourceDescription.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAA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AE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAElC;;;;OAIG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAEjC;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,yBAAyB,CAAC;IAEjC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,wBAAwB,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;IAErC;;;;;;OAMG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,kCAAkC,CAAC;CAC3C"}
|
|
@@ -85,6 +85,7 @@ export interface AdDescription {
|
|
|
85
85
|
* <br/> - `'google-ima'`: {@link https://developers.google.com/interactive-media-ads/docs/sdks/html5|Google IMA} pre-integrated ad playback.
|
|
86
86
|
* <br/> - `'spotx'`: {@link https://developer.spotxchange.com/|SpotX} pre-integrated ad playback.
|
|
87
87
|
* <br/> - `'freewheel'`: {@link https://vi.freewheel.tv/|FreeWheel} pre-integrated ad playback.
|
|
88
|
+
* <br/> - `'theoads'`: [Experimental] - API under development, do not use without consulting THEO Technologies.
|
|
88
89
|
*
|
|
89
90
|
* @remarks
|
|
90
91
|
* <br/> - An empty string defaults to `'theo'`.
|
|
@@ -95,6 +96,7 @@ export declare enum AdIntegrationKind {
|
|
|
95
96
|
freewheel = "freewheel",
|
|
96
97
|
google_ima = "google-ima",
|
|
97
98
|
spotx = "spotx",
|
|
98
|
-
theo = "theo"
|
|
99
|
+
theo = "theo",
|
|
100
|
+
theoads = "theoads"
|
|
99
101
|
}
|
|
100
102
|
//# sourceMappingURL=Ads.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ads.d.ts","sourceRoot":"","sources":["../../../../../src/api/source/ads/Ads.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAE5B;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AAED
|
|
1
|
+
{"version":3,"file":"Ads.d.ts","sourceRoot":"","sources":["../../../../../src/api/source/ads/Ads.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAE5B;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AAED;;;;;;;;;;;;GAYG;AACH,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { AdDescription, AdIntegrationKind } from './Ads';
|
|
2
|
+
/**
|
|
3
|
+
* Describes a THEOads ad break request.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* <br/> - For THEOads, one configured ad break request enables server guided ad playback for the entire stream.
|
|
7
|
+
*
|
|
8
|
+
* @category Ads
|
|
9
|
+
*/
|
|
10
|
+
export interface TheoAdDescription extends AdDescription {
|
|
11
|
+
/**
|
|
12
|
+
* The integration of the ad break.
|
|
13
|
+
*/
|
|
14
|
+
integration: AdIntegrationKind.theoads;
|
|
15
|
+
/**
|
|
16
|
+
* For SGAI, this should be configured with the signaling server base URI.
|
|
17
|
+
*
|
|
18
|
+
* If configured, the player will attempt to sideload the modified manifest from the signaling server separate from the source manifest.
|
|
19
|
+
* If not configured, the player will assume that the ad markers are part of the source manifest.
|
|
20
|
+
*/
|
|
21
|
+
sources?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Default network code to use for ad requests.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* <br/> - This will be overridden by network codes parsed from THEOads ad markers.
|
|
27
|
+
* <br/> - If no network code is configured, and it cannot be parsed from the THEOads ad marker, ads will not be loaded.
|
|
28
|
+
*/
|
|
29
|
+
networkCode?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Default custom asset key to use for ad requests.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* <br/> - This will be overridden by custom asset keys parsed from THEOads ad markers.
|
|
35
|
+
* <br/> - If no custom asset key is configured, and it cannot be parsed from the THEOads ad marker, ads will not be loaded.
|
|
36
|
+
*/
|
|
37
|
+
customAssetKey?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Default backdrop image URI to be used as a background for ads in double box layout.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* <br/> - This will be overridden by backdrop image URIs parsed from THEOads ad markers or returned in the ad response.
|
|
43
|
+
* <br/> - If no URI is configured, and no backdrop companion is parsed from the marker or returned in the ad response, a black screen will be shown as background.
|
|
44
|
+
*/
|
|
45
|
+
backdropDoubleBox?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Default backdrop image URI to be used as a background for ads in L-shape layout.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
* <br/> - This will be overridden by backdrop image URIs parsed from THEOads ad markers or returned in the ad response.
|
|
51
|
+
* <br/> - If no URI is configured, and no backdrop companion is parsed from the marker or returned in the ad response, a black screen will be shown as background.
|
|
52
|
+
*/
|
|
53
|
+
backdropLShape?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Override the layout of all THEOads ad breaks, if set.
|
|
56
|
+
*/
|
|
57
|
+
overrideLayout?: TheoAdsLayoutOverride;
|
|
58
|
+
/**
|
|
59
|
+
* The ad tag parameters added to stream request.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* <br/> - Each entry contains the parameter name with associated value.
|
|
63
|
+
* <br/> - Values added must be strings.
|
|
64
|
+
*/
|
|
65
|
+
adTagParameters?: Record<string, string>;
|
|
66
|
+
/**
|
|
67
|
+
* Whether to use the Id3 based operating mode.
|
|
68
|
+
*
|
|
69
|
+
* @defaultValue `false`
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* <br/> - Only applicable for specific use-cases.
|
|
73
|
+
* <br/> - Contact THEO Technologies for more information.
|
|
74
|
+
*/
|
|
75
|
+
useId3?: boolean;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Describes how and when the layout of a THEOads ad break should be overridden:
|
|
79
|
+
* - `'single'`: Override to play all ad breaks using the "single" layout mode.
|
|
80
|
+
* - `'l-shape'`: Override to play all ad breaks using the "l-shape" layout mode.
|
|
81
|
+
* - `'double'`: Override to play all ad breaks using the "double" layout mode.
|
|
82
|
+
* - `'single-if-mobile'`: When on a mobile device, override to play all ad breaks using the "single" layout mode.
|
|
83
|
+
*
|
|
84
|
+
* @category Ads
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
export declare enum TheoAdsLayoutOverride {
|
|
88
|
+
SINGLE = "single",
|
|
89
|
+
LSHAPE = "l-shape",
|
|
90
|
+
DOUBLE = "double",
|
|
91
|
+
SINGLE_IF_MOBILE = "single-if-mobile"
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=TheoAdDescription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TheoAdDescription.d.ts","sourceRoot":"","sources":["../../../../../src/api/source/ads/TheoAdDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD;;OAEG;IACH,WAAW,EAAE,iBAAiB,CAAC,OAAO,CAAC;IAEvC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAC;IAEvC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEzC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;GASG;AACH,oBAAY,qBAAqB;IAC/B,MAAM,WAAW;IACjB,MAAM,YAAY;IAClB,MAAM,WAAW;IACjB,gBAAgB,qBAAqB;CACtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../../../../../src/api/source/ads/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../../../../../src/api/source/ads/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SourceIntegrationId, TypedSource } from 'react-native-theoplayer';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a source for the THEOlive integration.
|
|
4
|
+
*
|
|
5
|
+
* @category Source
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface TheoLiveSource extends TypedSource {
|
|
9
|
+
integration: SourceIntegrationId.THEO_LIVE;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=TheoLiveSource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TheoLiveSource.d.ts","sourceRoot":"","sources":["../../../../src/api/theolive/TheoLiveSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW;IAC/C,WAAW,EAAE,mBAAmB,CAAC,SAAS,CAAC;CAC9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../../../../src/api/theolive/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -6,12 +6,12 @@ theofeatures = []
|
|
|
6
6
|
theoconfigfiles = ["theoplayer-config.json", "react-native-theoplayer.json"]
|
|
7
7
|
theoconfigfiles.each do |configfile|
|
|
8
8
|
configpath = File.join(__dir__ + "/../../", configfile)
|
|
9
|
-
if File.exist?(configpath)
|
|
9
|
+
if File.exist?(configpath)
|
|
10
10
|
puts "THEOplayer config found: #{configfile}"
|
|
11
11
|
theoconfig = JSON.parse(File.read(configpath))
|
|
12
12
|
theofeatures = theoconfig["ios"]["features"]
|
|
13
13
|
end
|
|
14
|
-
break if theofeatures.length() > 0
|
|
14
|
+
break if theofeatures.length() > 0
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
Pod::Spec.new do |s|
|
|
@@ -21,34 +21,34 @@ Pod::Spec.new do |s|
|
|
|
21
21
|
s.homepage = package["homepage"]
|
|
22
22
|
s.license = package["license"]
|
|
23
23
|
s.authors = package["author"]
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
s.platforms = { :ios => "13.4", :tvos => "13.4" }
|
|
26
26
|
s.source = { :git => "https://www.theoplayer.com/.git", :tag => "#{s.version}" }
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
s.source_files = 'ios/*.{h,m,swift}', 'ios/ads/*.swift', 'ios/casting/*.swift', 'ios/contentprotection/*.swift', 'ios/pip/*.swift', 'ios/backgroundAudio/*.swift', 'ios/cache/*.swift', 'ios/sideloadedMetadata/*.swift', 'ios/eventBroadcasting/*.swift' , 'ios/ui/*.swift', 'ios/presentationMode/*.swift'
|
|
29
29
|
s.resources = ['ios/*.css']
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
# ReactNative Dependency
|
|
32
32
|
s.dependency "React-Core"
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
# THEOplayer core Dependency
|
|
35
|
-
s.dependency "THEOplayerSDK-core", "~> 7.
|
|
36
|
-
|
|
37
|
-
if theofeatures.include?("GOOGLE_IMA")
|
|
35
|
+
s.dependency "THEOplayerSDK-core", "~> 7.12"
|
|
36
|
+
|
|
37
|
+
if theofeatures.include?("GOOGLE_IMA")
|
|
38
38
|
puts "Adding THEOplayer-Integration-GoogleIMA"
|
|
39
|
-
s.dependency "THEOplayer-Integration-GoogleIMA/Base", "~> 7.
|
|
40
|
-
s.dependency "THEOplayer-Integration-GoogleIMA/Dependencies", "~> 7.
|
|
39
|
+
s.dependency "THEOplayer-Integration-GoogleIMA/Base", "~> 7.12"
|
|
40
|
+
s.dependency "THEOplayer-Integration-GoogleIMA/Dependencies", "~> 7.12"
|
|
41
41
|
end
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
if theofeatures.include?("CHROMECAST")
|
|
44
44
|
puts "Adding THEOplayer-Integration-GoogleCast"
|
|
45
|
-
s.ios.dependency "THEOplayer-Integration-GoogleCast/Base", "~> 7.
|
|
45
|
+
s.ios.dependency "THEOplayer-Integration-GoogleCast/Base", "~> 7.12"
|
|
46
46
|
s.ios.dependency "google-cast-sdk-dynamic-xcframework", "~> 4.8"
|
|
47
47
|
end
|
|
48
|
-
|
|
49
|
-
if theofeatures.include?("SIDELOADED_TEXTTRACKS")
|
|
48
|
+
|
|
49
|
+
if theofeatures.include?("SIDELOADED_TEXTTRACKS")
|
|
50
50
|
puts "Adding THEOplayer-Connector-SideloadedSubtitle"
|
|
51
|
-
s.dependency "THEOplayer-Connector-SideloadedSubtitle", "~> 7.
|
|
51
|
+
s.dependency "THEOplayer-Connector-SideloadedSubtitle", "~> 7.12"
|
|
52
52
|
end
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
end
|
package/src/api/barrel.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './event/barrel';
|
|
|
11
11
|
export * from './media/barrel';
|
|
12
12
|
export * from './drm/barrel';
|
|
13
13
|
export * from './source/barrel';
|
|
14
|
+
export * from './theolive/barrel';
|
|
14
15
|
export * from './timeranges/barrel';
|
|
15
16
|
export * from './resolution/barrel';
|
|
16
17
|
export * from './track/barrel';
|
|
@@ -11,8 +11,8 @@ import type { DRMConfiguration } from './drm/DRMConfiguration';
|
|
|
11
11
|
import type { HlsPlaybackConfiguration } from './hls/HlsPlaybackConfiguration';
|
|
12
12
|
import type { AdDescription } from './ads/Ads';
|
|
13
13
|
import type { MetadataDescription } from './metadata/MetadataDescription';
|
|
14
|
-
import type { ServerSideAdInsertionConfiguration } from
|
|
15
|
-
import type { AnalyticsDescription } from
|
|
14
|
+
import type { ServerSideAdInsertionConfiguration } from './ads/ssai/ServerSideAdInsertionConfiguration';
|
|
15
|
+
import type { AnalyticsDescription } from './analytics/AnalyticsDescription';
|
|
16
16
|
|
|
17
17
|
export type Source = TypedSource;
|
|
18
18
|
|
|
@@ -39,6 +39,17 @@ export type Sources = Source | Source[];
|
|
|
39
39
|
*/
|
|
40
40
|
export type CrossOriginSetting = '' | 'anonymous' | 'use-credentials';
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* The integration identifier of a source specific to a pre-integration, represented by a value from the following list:
|
|
44
|
+
* <br/> - `'theolive'`: The source contains the THEOlive initialization url.
|
|
45
|
+
*
|
|
46
|
+
* @category Source
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
export enum SourceIntegrationId {
|
|
50
|
+
THEO_LIVE = 'theolive'
|
|
51
|
+
}
|
|
52
|
+
|
|
42
53
|
/**
|
|
43
54
|
* Describes the configuration of a player's source.
|
|
44
55
|
*
|
|
@@ -235,7 +246,7 @@ export interface TextTrackDescription {
|
|
|
235
246
|
* The localTime that matches the PTS value that is used to sync the track with the video.
|
|
236
247
|
*
|
|
237
248
|
* @internal
|
|
238
|
-
|
|
249
|
+
* @remarks
|
|
239
250
|
* <br/> - Available on iOS.
|
|
240
251
|
* <br/> - Format: "HH:mm:mm:SSS"
|
|
241
252
|
* <br/> - Default value is "00:00:00:000"
|
|
@@ -249,6 +260,13 @@ export interface TextTrackDescription {
|
|
|
249
260
|
* @public
|
|
250
261
|
*/
|
|
251
262
|
export interface BaseSource {
|
|
263
|
+
/**
|
|
264
|
+
* The integration ID of the source.
|
|
265
|
+
*
|
|
266
|
+
* @remarks
|
|
267
|
+
* <br/> - This can be used to signal that a source is specific to an integration.
|
|
268
|
+
*/
|
|
269
|
+
integration?: SourceIntegrationId;
|
|
252
270
|
|
|
253
271
|
/**
|
|
254
272
|
* The cross-origin setting of the source.
|
|
@@ -333,6 +351,15 @@ export interface TypedSource extends BaseSource {
|
|
|
333
351
|
*/
|
|
334
352
|
contentProtection?: DRMConfiguration;
|
|
335
353
|
|
|
354
|
+
/**
|
|
355
|
+
* The headers included in the request when retrieving the resource.
|
|
356
|
+
*
|
|
357
|
+
* @remarks
|
|
358
|
+
* <br/> - Available on iOS and Android.
|
|
359
|
+
* <br/> - Available since v7.9.0.
|
|
360
|
+
*/
|
|
361
|
+
headers?: { [key: string]: string };
|
|
362
|
+
|
|
336
363
|
/**
|
|
337
364
|
* The Server-side Ad Insertion parameters for the media resource.
|
|
338
365
|
*
|
|
@@ -92,6 +92,7 @@ export interface AdDescription {
|
|
|
92
92
|
* <br/> - `'google-ima'`: {@link https://developers.google.com/interactive-media-ads/docs/sdks/html5|Google IMA} pre-integrated ad playback.
|
|
93
93
|
* <br/> - `'spotx'`: {@link https://developer.spotxchange.com/|SpotX} pre-integrated ad playback.
|
|
94
94
|
* <br/> - `'freewheel'`: {@link https://vi.freewheel.tv/|FreeWheel} pre-integrated ad playback.
|
|
95
|
+
* <br/> - `'theoads'`: [Experimental] - API under development, do not use without consulting THEO Technologies.
|
|
95
96
|
*
|
|
96
97
|
* @remarks
|
|
97
98
|
* <br/> - An empty string defaults to `'theo'`.
|
|
@@ -103,4 +104,5 @@ export enum AdIntegrationKind {
|
|
|
103
104
|
google_ima = 'google-ima',
|
|
104
105
|
spotx = 'spotx',
|
|
105
106
|
theo = 'theo',
|
|
107
|
+
theoads = 'theoads',
|
|
106
108
|
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { AdDescription, AdIntegrationKind } from './Ads';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Describes a THEOads ad break request.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* <br/> - For THEOads, one configured ad break request enables server guided ad playback for the entire stream.
|
|
8
|
+
*
|
|
9
|
+
* @category Ads
|
|
10
|
+
*/
|
|
11
|
+
export interface TheoAdDescription extends AdDescription {
|
|
12
|
+
/**
|
|
13
|
+
* The integration of the ad break.
|
|
14
|
+
*/
|
|
15
|
+
integration: AdIntegrationKind.theoads;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* For SGAI, this should be configured with the signaling server base URI.
|
|
19
|
+
*
|
|
20
|
+
* If configured, the player will attempt to sideload the modified manifest from the signaling server separate from the source manifest.
|
|
21
|
+
* If not configured, the player will assume that the ad markers are part of the source manifest.
|
|
22
|
+
*/
|
|
23
|
+
sources?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Default network code to use for ad requests.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* <br/> - This will be overridden by network codes parsed from THEOads ad markers.
|
|
30
|
+
* <br/> - If no network code is configured, and it cannot be parsed from the THEOads ad marker, ads will not be loaded.
|
|
31
|
+
*/
|
|
32
|
+
networkCode?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Default custom asset key to use for ad requests.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* <br/> - This will be overridden by custom asset keys parsed from THEOads ad markers.
|
|
39
|
+
* <br/> - If no custom asset key is configured, and it cannot be parsed from the THEOads ad marker, ads will not be loaded.
|
|
40
|
+
*/
|
|
41
|
+
customAssetKey?: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Default backdrop image URI to be used as a background for ads in double box layout.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
* <br/> - This will be overridden by backdrop image URIs parsed from THEOads ad markers or returned in the ad response.
|
|
48
|
+
* <br/> - If no URI is configured, and no backdrop companion is parsed from the marker or returned in the ad response, a black screen will be shown as background.
|
|
49
|
+
*/
|
|
50
|
+
backdropDoubleBox?: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Default backdrop image URI to be used as a background for ads in L-shape layout.
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* <br/> - This will be overridden by backdrop image URIs parsed from THEOads ad markers or returned in the ad response.
|
|
57
|
+
* <br/> - If no URI is configured, and no backdrop companion is parsed from the marker or returned in the ad response, a black screen will be shown as background.
|
|
58
|
+
*/
|
|
59
|
+
backdropLShape?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Override the layout of all THEOads ad breaks, if set.
|
|
63
|
+
*/
|
|
64
|
+
overrideLayout?: TheoAdsLayoutOverride;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The ad tag parameters added to stream request.
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* <br/> - Each entry contains the parameter name with associated value.
|
|
71
|
+
* <br/> - Values added must be strings.
|
|
72
|
+
*/
|
|
73
|
+
adTagParameters?: Record<string, string>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Whether to use the Id3 based operating mode.
|
|
77
|
+
*
|
|
78
|
+
* @defaultValue `false`
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* <br/> - Only applicable for specific use-cases.
|
|
82
|
+
* <br/> - Contact THEO Technologies for more information.
|
|
83
|
+
*/
|
|
84
|
+
useId3?: boolean;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Describes how and when the layout of a THEOads ad break should be overridden:
|
|
89
|
+
* - `'single'`: Override to play all ad breaks using the "single" layout mode.
|
|
90
|
+
* - `'l-shape'`: Override to play all ad breaks using the "l-shape" layout mode.
|
|
91
|
+
* - `'double'`: Override to play all ad breaks using the "double" layout mode.
|
|
92
|
+
* - `'single-if-mobile'`: When on a mobile device, override to play all ad breaks using the "single" layout mode.
|
|
93
|
+
*
|
|
94
|
+
* @category Ads
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
export enum TheoAdsLayoutOverride {
|
|
98
|
+
SINGLE = 'single',
|
|
99
|
+
LSHAPE = 'l-shape',
|
|
100
|
+
DOUBLE = 'double',
|
|
101
|
+
SINGLE_IF_MOBILE = 'single-if-mobile'
|
|
102
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SourceIntegrationId, TypedSource } from 'react-native-theoplayer';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents a source for the THEOlive integration.
|
|
5
|
+
*
|
|
6
|
+
* @category Source
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export interface TheoLiveSource extends TypedSource {
|
|
10
|
+
integration: SourceIntegrationId.THEO_LIVE;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TheoLiveSource';
|