react-native-theoplayer 11.2.1 → 11.3.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 +14 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/theoplayer/PlayerConfigAdapter.kt +30 -0
- package/android/src/main/java/com/theoplayer/abr/ABRConfigurationAdapter.kt +21 -0
- package/android/src/main/java/com/theoplayer/source/SourceAdapter.kt +38 -1
- package/android/src/main/java/com/theoplayer/track/TrackListAdapter.kt +2 -0
- package/ios/THEOplayerRCTSourceDescriptionBuilder.swift +31 -6
- package/ios/THEOplayerRCTTrackMetadataAggregator.swift +3 -0
- package/ios/THEOplayerRCTView.swift +3 -0
- package/ios/cmcd/THEOplayerRCTView+CmcdConfig.swift +36 -0
- package/lib/commonjs/api/barrel.js +36 -25
- package/lib/commonjs/api/barrel.js.map +1 -1
- package/lib/commonjs/api/cmcd/CmcdConfiguration.js +67 -0
- package/lib/commonjs/api/cmcd/CmcdConfiguration.js.map +1 -0
- package/lib/commonjs/api/cmcd/barrel.js.map +1 -0
- package/lib/commonjs/api/source/barrel.js +5 -16
- package/lib/commonjs/api/source/barrel.js.map +1 -1
- package/lib/commonjs/api/track/TextTrack.js.map +1 -1
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js +13 -4
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/web/TrackUtils.js +2 -0
- package/lib/commonjs/internal/adapter/web/TrackUtils.js.map +1 -1
- package/lib/commonjs/manifest.json +1 -1
- package/lib/module/api/barrel.js +1 -0
- package/lib/module/api/barrel.js.map +1 -1
- package/lib/module/api/cmcd/CmcdConfiguration.js +67 -0
- package/lib/module/api/cmcd/CmcdConfiguration.js.map +1 -0
- package/lib/module/api/cmcd/barrel.js.map +1 -0
- package/lib/module/api/source/barrel.js +0 -1
- package/lib/module/api/source/barrel.js.map +1 -1
- package/lib/module/api/track/TextTrack.js.map +1 -1
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js +13 -4
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
- package/lib/module/internal/adapter/web/TrackUtils.js +2 -0
- package/lib/module/internal/adapter/web/TrackUtils.js.map +1 -1
- package/lib/module/manifest.json +1 -1
- package/lib/typescript/api/abr/ABRConfiguration.d.ts +2 -2
- package/lib/typescript/api/barrel.d.ts +1 -0
- package/lib/typescript/api/barrel.d.ts.map +1 -1
- package/lib/typescript/api/cmcd/CmcdConfiguration.d.ts +166 -0
- package/lib/typescript/api/cmcd/CmcdConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/cmcd/barrel.d.ts.map +1 -0
- package/lib/typescript/api/config/PlayerConfiguration.d.ts +10 -0
- package/lib/typescript/api/config/PlayerConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/source/SourceDescription.d.ts +2 -2
- package/lib/typescript/api/source/SourceDescription.d.ts.map +1 -1
- package/lib/typescript/api/source/barrel.d.ts +0 -1
- package/lib/typescript/api/source/barrel.d.ts.map +1 -1
- package/lib/typescript/api/track/TextTrack.d.ts +4 -0
- package/lib/typescript/api/track/TextTrack.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/web/TrackUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/react-native-theoplayer.podspec +1 -1
- package/src/api/abr/ABRConfiguration.ts +2 -2
- package/src/api/barrel.ts +1 -0
- package/src/api/cmcd/CmcdConfiguration.ts +175 -0
- package/src/api/config/PlayerConfiguration.ts +11 -0
- package/src/api/source/SourceDescription.ts +2 -2
- package/src/api/source/barrel.ts +0 -1
- package/src/api/track/TextTrack.ts +5 -0
- package/src/internal/adapter/THEOplayerWebAdapter.ts +9 -4
- package/src/internal/adapter/web/TrackUtils.ts +2 -1
- package/src/manifest.json +1 -1
- package/lib/commonjs/api/source/cmcd/CmcdConfiguration.js +0 -27
- package/lib/commonjs/api/source/cmcd/CmcdConfiguration.js.map +0 -1
- package/lib/commonjs/api/source/cmcd/barrel.js.map +0 -1
- package/lib/module/api/source/cmcd/CmcdConfiguration.js +0 -24
- package/lib/module/api/source/cmcd/CmcdConfiguration.js.map +0 -1
- package/lib/module/api/source/cmcd/barrel.js.map +0 -1
- package/lib/typescript/api/source/cmcd/CmcdConfiguration.d.ts +0 -83
- package/lib/typescript/api/source/cmcd/CmcdConfiguration.d.ts.map +0 -1
- package/lib/typescript/api/source/cmcd/barrel.d.ts.map +0 -1
- package/src/api/source/cmcd/CmcdConfiguration.ts +0 -88
- /package/lib/commonjs/api/{source/cmcd → cmcd}/barrel.js +0 -0
- /package/lib/module/api/{source/cmcd → cmcd}/barrel.js +0 -0
- /package/lib/typescript/api/{source/cmcd → cmcd}/barrel.d.ts +0 -0
- /package/src/api/{source/cmcd → cmcd}/barrel.ts +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.CmcdTransmissionMode = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* The configuration for transmitting information to Content Delivery Networks (CDNs)
|
|
9
|
-
* through Common Media Client Data (CMCD) (CTA-5004)
|
|
10
|
-
*
|
|
11
|
-
* @category Source
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* The CMCD transmission mode.
|
|
16
|
-
*
|
|
17
|
-
* @category Source
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
let CmcdTransmissionMode = exports.CmcdTransmissionMode = /*#__PURE__*/function (CmcdTransmissionMode) {
|
|
21
|
-
CmcdTransmissionMode[CmcdTransmissionMode["HTTP_HEADER"] = 0] = "HTTP_HEADER";
|
|
22
|
-
CmcdTransmissionMode[CmcdTransmissionMode["QUERY_ARGUMENT"] = 1] = "QUERY_ARGUMENT";
|
|
23
|
-
CmcdTransmissionMode[CmcdTransmissionMode["JSON_OBJECT"] = 2] = "JSON_OBJECT";
|
|
24
|
-
CmcdTransmissionMode[CmcdTransmissionMode["SDK_DEFAULT"] = 3] = "SDK_DEFAULT";
|
|
25
|
-
return CmcdTransmissionMode;
|
|
26
|
-
}({});
|
|
27
|
-
//# sourceMappingURL=CmcdConfiguration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CmcdTransmissionMode","exports"],"sourceRoot":"../../../../../src","sources":["api/source/cmcd/CmcdConfiguration.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAiDA;AACA;AACA;AACA;AACA;AACA;AALA,IAMYA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,0BAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_CmcdConfiguration","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../../src","sources":["api/source/cmcd/barrel.ts"],"mappings":";;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,kBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,kBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,kBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The configuration for transmitting information to Content Delivery Networks (CDNs)
|
|
5
|
-
* through Common Media Client Data (CMCD) (CTA-5004)
|
|
6
|
-
*
|
|
7
|
-
* @category Source
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The CMCD transmission mode.
|
|
13
|
-
*
|
|
14
|
-
* @category Source
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
export let CmcdTransmissionMode = /*#__PURE__*/function (CmcdTransmissionMode) {
|
|
18
|
-
CmcdTransmissionMode[CmcdTransmissionMode["HTTP_HEADER"] = 0] = "HTTP_HEADER";
|
|
19
|
-
CmcdTransmissionMode[CmcdTransmissionMode["QUERY_ARGUMENT"] = 1] = "QUERY_ARGUMENT";
|
|
20
|
-
CmcdTransmissionMode[CmcdTransmissionMode["JSON_OBJECT"] = 2] = "JSON_OBJECT";
|
|
21
|
-
CmcdTransmissionMode[CmcdTransmissionMode["SDK_DEFAULT"] = 3] = "SDK_DEFAULT";
|
|
22
|
-
return CmcdTransmissionMode;
|
|
23
|
-
}({});
|
|
24
|
-
//# sourceMappingURL=CmcdConfiguration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CmcdTransmissionMode"],"sourceRoot":"../../../../../src","sources":["api/source/cmcd/CmcdConfiguration.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAiDA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/cmcd/barrel.ts"],"mappings":";;AAAA,cAAc,qBAAqB","ignoreList":[]}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The configuration for transmitting information to Content Delivery Networks (CDNs)
|
|
3
|
-
* through Common Media Client Data (CMCD) (CTA-5004)
|
|
4
|
-
*
|
|
5
|
-
* @category Source
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export interface CmcdConfiguration {
|
|
9
|
-
/**
|
|
10
|
-
* The content ID parameter which should be passed as a CMCD value. If left empty, no content ID will be sent.
|
|
11
|
-
*
|
|
12
|
-
* @platform web
|
|
13
|
-
*/
|
|
14
|
-
contentID?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The session ID parameter which should be passed as a CMCD value. If left empty, a UUIDv4 will be generated when applying the configuration.
|
|
17
|
-
*
|
|
18
|
-
* @platform web
|
|
19
|
-
*/
|
|
20
|
-
sessionID?: string;
|
|
21
|
-
/**
|
|
22
|
-
* A flag to indicate if request IDs should be sent or not.
|
|
23
|
-
* When set to a truthy value, a UUIDv4 will be sent as a request id (`rid`) with every request to allow for request tracing.
|
|
24
|
-
*
|
|
25
|
-
* @platform web
|
|
26
|
-
*/
|
|
27
|
-
sendRequestID?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The target URI where client data is to be delivered in case the {@link transmissionMode} is set
|
|
30
|
-
* to {@link CmcdTransmissionMode.JSON_OBJECT}.
|
|
31
|
-
*
|
|
32
|
-
* @platform web
|
|
33
|
-
*/
|
|
34
|
-
jsonObjectTargetURI?: string;
|
|
35
|
-
/**
|
|
36
|
-
* An object containing custom keys which should be added to the generated CMCD parameters.
|
|
37
|
-
* Note custom keys MUST carry a hyphenated prefix to ensure that there will not be a namespace collision with future
|
|
38
|
-
* revisions to the specification. Clients SHOULD use a reverse-DNS syntax when defining their own prefix.
|
|
39
|
-
*
|
|
40
|
-
* @platform web
|
|
41
|
-
*/
|
|
42
|
-
customKeys?: {
|
|
43
|
-
[key: string]: string | number | boolean;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* The data transmission mode as defined in section 2 of the specification.
|
|
47
|
-
*/
|
|
48
|
-
transmissionMode: CmcdTransmissionMode;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* The CMCD transmission mode.
|
|
52
|
-
*
|
|
53
|
-
* @category Source
|
|
54
|
-
* @public
|
|
55
|
-
*/
|
|
56
|
-
export declare enum CmcdTransmissionMode {
|
|
57
|
-
/**
|
|
58
|
-
* Transmit CMCD data as a custom HTTP request header.
|
|
59
|
-
*
|
|
60
|
-
* @remarks
|
|
61
|
-
* Usage of a custom header from a web browser user-agent will trigger a preflight OPTIONS request before each unique
|
|
62
|
-
* media object request. This will lead to an increased request rate against the server. As a result, for CMCD
|
|
63
|
-
* transmissions from web browser user-agents that require CORS-preflighting per URL,
|
|
64
|
-
* the preferred mode of use is query arguments.
|
|
65
|
-
*/
|
|
66
|
-
HTTP_HEADER = 0,
|
|
67
|
-
/**
|
|
68
|
-
* Transmit CMCD data as a HTTP query argument.
|
|
69
|
-
*/
|
|
70
|
-
QUERY_ARGUMENT = 1,
|
|
71
|
-
/**
|
|
72
|
-
* Transmit CMCD data as a JSON object independent of the HTTP object request.
|
|
73
|
-
*/
|
|
74
|
-
JSON_OBJECT = 2,
|
|
75
|
-
/**
|
|
76
|
-
* Use the default transmission mode for each SDK:
|
|
77
|
-
* - Web: Query arguments
|
|
78
|
-
* - Android: Query arguments
|
|
79
|
-
* - iOS: HTTP request headers
|
|
80
|
-
*/
|
|
81
|
-
SDK_DEFAULT = 3
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=CmcdConfiguration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CmcdConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/api/source/cmcd/CmcdConfiguration.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;IACH,UAAU,CAAC,EAAE;QACX,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;KAC1C,CAAC;IAEF;;OAEG;IACH,gBAAgB,EAAE,oBAAoB,CAAA;CACvC;AAED;;;;;GAKG;AACH,oBAAY,oBAAoB;IAC9B;;;;;;;;OAQG;IACH,WAAW,IAAA;IACX;;OAEG;IACH,cAAc,IAAA;IACd;;OAEG;IACH,WAAW,IAAA;IACX;;;;;OAKG;IACH,WAAW,IAAA;CACZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../../../../../src/api/source/cmcd/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The configuration for transmitting information to Content Delivery Networks (CDNs)
|
|
3
|
-
* through Common Media Client Data (CMCD) (CTA-5004)
|
|
4
|
-
*
|
|
5
|
-
* @category Source
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export interface CmcdConfiguration {
|
|
9
|
-
/**
|
|
10
|
-
* The content ID parameter which should be passed as a CMCD value. If left empty, no content ID will be sent.
|
|
11
|
-
*
|
|
12
|
-
* @platform web
|
|
13
|
-
*/
|
|
14
|
-
contentID?: string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The session ID parameter which should be passed as a CMCD value. If left empty, a UUIDv4 will be generated when applying the configuration.
|
|
18
|
-
*
|
|
19
|
-
* @platform web
|
|
20
|
-
*/
|
|
21
|
-
sessionID?: string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* A flag to indicate if request IDs should be sent or not.
|
|
25
|
-
* When set to a truthy value, a UUIDv4 will be sent as a request id (`rid`) with every request to allow for request tracing.
|
|
26
|
-
*
|
|
27
|
-
* @platform web
|
|
28
|
-
*/
|
|
29
|
-
sendRequestID?: boolean;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The target URI where client data is to be delivered in case the {@link transmissionMode} is set
|
|
33
|
-
* to {@link CmcdTransmissionMode.JSON_OBJECT}.
|
|
34
|
-
*
|
|
35
|
-
* @platform web
|
|
36
|
-
*/
|
|
37
|
-
jsonObjectTargetURI?: string;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* An object containing custom keys which should be added to the generated CMCD parameters.
|
|
41
|
-
* Note custom keys MUST carry a hyphenated prefix to ensure that there will not be a namespace collision with future
|
|
42
|
-
* revisions to the specification. Clients SHOULD use a reverse-DNS syntax when defining their own prefix.
|
|
43
|
-
*
|
|
44
|
-
* @platform web
|
|
45
|
-
*/
|
|
46
|
-
customKeys?: {
|
|
47
|
-
[key: string]: string | number | boolean;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The data transmission mode as defined in section 2 of the specification.
|
|
52
|
-
*/
|
|
53
|
-
transmissionMode: CmcdTransmissionMode
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The CMCD transmission mode.
|
|
58
|
-
*
|
|
59
|
-
* @category Source
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
|
-
export enum CmcdTransmissionMode {
|
|
63
|
-
/**
|
|
64
|
-
* Transmit CMCD data as a custom HTTP request header.
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
* Usage of a custom header from a web browser user-agent will trigger a preflight OPTIONS request before each unique
|
|
68
|
-
* media object request. This will lead to an increased request rate against the server. As a result, for CMCD
|
|
69
|
-
* transmissions from web browser user-agents that require CORS-preflighting per URL,
|
|
70
|
-
* the preferred mode of use is query arguments.
|
|
71
|
-
*/
|
|
72
|
-
HTTP_HEADER,
|
|
73
|
-
/**
|
|
74
|
-
* Transmit CMCD data as a HTTP query argument.
|
|
75
|
-
*/
|
|
76
|
-
QUERY_ARGUMENT,
|
|
77
|
-
/**
|
|
78
|
-
* Transmit CMCD data as a JSON object independent of the HTTP object request.
|
|
79
|
-
*/
|
|
80
|
-
JSON_OBJECT,
|
|
81
|
-
/**
|
|
82
|
-
* Use the default transmission mode for each SDK:
|
|
83
|
-
* - Web: Query arguments
|
|
84
|
-
* - Android: Query arguments
|
|
85
|
-
* - iOS: HTTP request headers
|
|
86
|
-
*/
|
|
87
|
-
SDK_DEFAULT
|
|
88
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|