rx-player 4.0.0-dev.2023110700 → 4.0.0-dev.2023111400
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 +9 -1
- package/VERSION +1 -1
- package/dist/_esm5.processed/core/api/option_utils.d.ts +2 -0
- package/dist/_esm5.processed/core/api/option_utils.js +6 -0
- package/dist/_esm5.processed/core/api/public_api.d.ts +2 -1
- package/dist/_esm5.processed/core/api/public_api.js +14 -4
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.js +54 -6
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.d.ts +2 -1
- package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.js +19 -2
- package/dist/_esm5.processed/manifest/representation.js +18 -5
- package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +17 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.js +26 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.js +5 -0
- package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.js +29 -17
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +3 -0
- package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.js +3 -0
- package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.d.ts +2 -0
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +4 -0
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +4 -0
- package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
- package/dist/_esm5.processed/parsers/manifest/types.d.ts +1 -0
- package/dist/commonjs/compat/patch_webkit_source_buffer.js +2 -2
- package/dist/commonjs/core/api/option_utils.d.ts +2 -0
- package/dist/commonjs/core/api/option_utils.js +6 -0
- package/dist/commonjs/core/api/public_api.d.ts +2 -1
- package/dist/commonjs/core/api/public_api.js +14 -4
- package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.js +54 -6
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.d.ts +2 -1
- package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.js +19 -2
- package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +2 -2
- package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +3 -3
- package/dist/commonjs/core/stream/period/period_stream.js +2 -2
- package/dist/commonjs/manifest/representation.js +18 -5
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +17 -0
- package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.js +30 -0
- package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.js +5 -0
- package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +29 -17
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +3 -0
- package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.js +3 -0
- package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +2 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +4 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +4 -0
- package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
- package/dist/commonjs/parsers/manifest/types.d.ts +1 -0
- package/dist/commonjs/utils/queue_microtask.d.ts +2 -0
- package/dist/commonjs/utils/queue_microtask.js +7 -0
- package/dist/es2017/compat/patch_webkit_source_buffer.js +2 -2
- package/dist/es2017/core/api/option_utils.d.ts +2 -0
- package/dist/es2017/core/api/option_utils.js +6 -0
- package/dist/es2017/core/api/public_api.d.ts +2 -1
- package/dist/es2017/core/api/public_api.js +13 -3
- package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.js +54 -6
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.d.ts +2 -1
- package/dist/es2017/core/segment_buffers/implementations/text/html/utils.js +18 -2
- package/dist/es2017/core/stream/adaptation/adaptation_stream.js +2 -2
- package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +3 -3
- package/dist/es2017/core/stream/period/period_stream.js +2 -2
- package/dist/es2017/manifest/representation.js +18 -5
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +17 -0
- package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.js +26 -0
- package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.js +5 -0
- package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +29 -17
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +3 -0
- package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.js +3 -0
- package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +2 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +4 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +4 -0
- package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
- package/dist/es2017/parsers/manifest/types.d.ts +1 -0
- package/dist/es2017/utils/queue_microtask.d.ts +2 -0
- package/dist/es2017/utils/queue_microtask.js +5 -0
- package/dist/mpd-parser.wasm +0 -0
- package/dist/rx-player.js +179 -118
- package/dist/rx-player.min.js +1 -1
- package/package.json +1 -4
- package/sonar-project.properties +1 -1
- package/src/compat/patch_webkit_source_buffer.ts +2 -2
- package/src/core/api/option_utils.ts +8 -0
- package/src/core/api/public_api.ts +15 -3
- package/src/core/segment_buffers/implementations/text/html/__tests__/utils.test.ts +15 -0
- package/src/core/segment_buffers/implementations/text/html/text_track_cues_store.ts +57 -6
- package/src/core/segment_buffers/implementations/text/html/utils.ts +19 -2
- package/src/core/stream/adaptation/adaptation_stream.ts +2 -2
- package/src/core/stream/orchestrator/stream_orchestrator.ts +3 -3
- package/src/core/stream/period/period_stream.ts +2 -2
- package/src/manifest/representation.ts +19 -6
- package/src/parsers/manifest/dash/common/__tests__/convert_supplemental_codecs.test.ts +37 -0
- package/src/parsers/manifest/dash/common/__tests__/flatten_overlapping_period.test.ts +20 -0
- package/src/parsers/manifest/dash/common/convert_supplemental_codecs.ts +32 -0
- package/src/parsers/manifest/dash/common/flatten_overlapping_periods.ts +5 -0
- package/src/parsers/manifest/dash/common/parse_representations.ts +30 -17
- package/src/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.ts +4 -0
- package/src/parsers/manifest/dash/js-parser/node_parsers/Representation.ts +4 -0
- package/src/parsers/manifest/dash/node_parser_types.ts +2 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/events.rs +2 -0
- package/src/parsers/manifest/dash/wasm-parser/rs/processor/attributes.rs +2 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.ts +4 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/generators/Representation.ts +4 -0
- package/src/parsers/manifest/dash/wasm-parser/ts/types.ts +2 -0
- package/src/parsers/manifest/types.ts +2 -0
- package/src/utils/queue_microtask.ts +7 -0
- package/src/typings/next-tick.d.ts +0 -23
|
@@ -187,6 +187,10 @@ function parseRepresentationAttributes(
|
|
|
187
187
|
dashName: "qualityRanking" });
|
|
188
188
|
break;
|
|
189
189
|
|
|
190
|
+
case "scte214:supplementalCodecs":
|
|
191
|
+
attributes.supplementalCodecs = attr.value;
|
|
192
|
+
break;
|
|
193
|
+
|
|
190
194
|
case "segmentProfiles":
|
|
191
195
|
attributes.segmentProfiles = attr.value;
|
|
192
196
|
break;
|
|
@@ -232,6 +232,7 @@ export interface IAdaptationSetAttributes {
|
|
|
232
232
|
segmentAlignment? : number|boolean;
|
|
233
233
|
segmentProfiles? : string;
|
|
234
234
|
subsegmentAlignment? : number|boolean;
|
|
235
|
+
supplementalCodecs?: string;
|
|
235
236
|
width? : number;
|
|
236
237
|
availabilityTimeComplete?: boolean;
|
|
237
238
|
availabilityTimeOffset?: number;
|
|
@@ -271,6 +272,7 @@ export interface IRepresentationAttributes {
|
|
|
271
272
|
profiles? : string;
|
|
272
273
|
qualityRanking? : number;
|
|
273
274
|
segmentProfiles? : string;
|
|
275
|
+
supplementalCodecs?: string;
|
|
274
276
|
width? : number;
|
|
275
277
|
availabilityTimeComplete?: boolean;
|
|
276
278
|
availabilityTimeOffset?: number;
|
|
@@ -87,6 +87,7 @@ pub fn report_adaptation_set_attrs(e: &quick_xml::events::BytesStart) {
|
|
|
87
87
|
b"bitstreamSwitching" => BitstreamSwitching.try_report_as_bool(&attr),
|
|
88
88
|
b"audioSamplingRate" => AudioSamplingRate.try_report_as_string(&attr),
|
|
89
89
|
b"codecs" => Codecs.try_report_as_string(&attr),
|
|
90
|
+
b"scte214:supplementalCodecs" => SupplementalCodecs.try_report_as_string(&attr),
|
|
90
91
|
b"profiles" => Profiles.try_report_as_string(&attr),
|
|
91
92
|
b"segmentProfiles" => SegmentProfiles.try_report_as_string(&attr),
|
|
92
93
|
b"mimeType" => MimeType.try_report_as_string(&attr),
|
|
@@ -116,6 +117,7 @@ pub fn report_representation_attrs(tag_bs: &quick_xml::events::BytesStart) {
|
|
|
116
117
|
b"audioSamplingRate" => AudioSamplingRate.try_report_as_string(&attr),
|
|
117
118
|
b"bandwidth" => Bitrate.try_report_as_u64(&attr),
|
|
118
119
|
b"codecs" => Codecs.try_report_as_string(&attr),
|
|
120
|
+
b"scte214:supplementalCodecs" => SupplementalCodecs.try_report_as_string(&attr),
|
|
119
121
|
b"codingDependency" => CodingDependency.try_report_as_bool(&attr),
|
|
120
122
|
b"frameRate" => FrameRate.try_report_as_maybe_division(&attr),
|
|
121
123
|
b"height" => Height.try_report_as_u64(&attr),
|
|
@@ -287,6 +287,10 @@ export function generateAdaptationSetAttrParser(
|
|
|
287
287
|
adaptationAttrs.codecs =
|
|
288
288
|
parseString(textDecoder, linearMemory.buffer, ptr, len);
|
|
289
289
|
break;
|
|
290
|
+
case AttributeName.SupplementalCodecs:
|
|
291
|
+
adaptationAttrs.supplementalCodecs =
|
|
292
|
+
parseString(textDecoder, linearMemory.buffer, ptr, len);
|
|
293
|
+
break;
|
|
290
294
|
case AttributeName.Profiles:
|
|
291
295
|
adaptationAttrs.profiles =
|
|
292
296
|
parseString(textDecoder, linearMemory.buffer, ptr, len);
|
|
@@ -165,6 +165,10 @@ export function generateRepresentationAttrParser(
|
|
|
165
165
|
representationAttrs.codecs =
|
|
166
166
|
parseString(textDecoder, linearMemory.buffer, ptr, len);
|
|
167
167
|
break;
|
|
168
|
+
case AttributeName.SupplementalCodecs:
|
|
169
|
+
representationAttrs.supplementalCodecs =
|
|
170
|
+
parseString(textDecoder, linearMemory.buffer, ptr, len);
|
|
171
|
+
break;
|
|
168
172
|
case AttributeName.CodingDependency:
|
|
169
173
|
representationAttrs.codingDependency =
|
|
170
174
|
new DataView(linearMemory.buffer).getUint8(0) === 0;
|
|
@@ -160,6 +160,8 @@ export interface IParsedRepresentation {
|
|
|
160
160
|
hdrInfo?: IHDRInformation | undefined;
|
|
161
161
|
/** `true` if audio has Dolby Atmos. */
|
|
162
162
|
isSpatialAudio?: boolean | undefined;
|
|
163
|
+
|
|
164
|
+
supplementalCodecs? : string | undefined;
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
/** Every possible types an Adaptation can have. */
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2015 CANAL+ Group
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
declare module "next-tick" {
|
|
18
|
-
function nextTick(
|
|
19
|
-
fn : () => void
|
|
20
|
-
) : void;
|
|
21
|
-
|
|
22
|
-
export default nextTick;
|
|
23
|
-
}
|