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.
Files changed (102) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/VERSION +1 -1
  3. package/dist/_esm5.processed/core/api/option_utils.d.ts +2 -0
  4. package/dist/_esm5.processed/core/api/option_utils.js +6 -0
  5. package/dist/_esm5.processed/core/api/public_api.d.ts +2 -1
  6. package/dist/_esm5.processed/core/api/public_api.js +14 -4
  7. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/text_track_cues_store.js +54 -6
  8. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.d.ts +2 -1
  9. package/dist/_esm5.processed/core/segment_buffers/implementations/text/html/utils.js +19 -2
  10. package/dist/_esm5.processed/manifest/representation.js +18 -5
  11. package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +17 -0
  12. package/dist/_esm5.processed/parsers/manifest/dash/common/convert_supplemental_codecs.js +26 -0
  13. package/dist/_esm5.processed/parsers/manifest/dash/common/flatten_overlapping_periods.js +5 -0
  14. package/dist/_esm5.processed/parsers/manifest/dash/common/parse_representations.js +29 -17
  15. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +3 -0
  16. package/dist/_esm5.processed/parsers/manifest/dash/js-parser/node_parsers/Representation.js +3 -0
  17. package/dist/_esm5.processed/parsers/manifest/dash/node_parser_types.d.ts +2 -0
  18. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +4 -0
  19. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +4 -0
  20. package/dist/_esm5.processed/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
  21. package/dist/_esm5.processed/parsers/manifest/types.d.ts +1 -0
  22. package/dist/commonjs/compat/patch_webkit_source_buffer.js +2 -2
  23. package/dist/commonjs/core/api/option_utils.d.ts +2 -0
  24. package/dist/commonjs/core/api/option_utils.js +6 -0
  25. package/dist/commonjs/core/api/public_api.d.ts +2 -1
  26. package/dist/commonjs/core/api/public_api.js +14 -4
  27. package/dist/commonjs/core/segment_buffers/implementations/text/html/text_track_cues_store.js +54 -6
  28. package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.d.ts +2 -1
  29. package/dist/commonjs/core/segment_buffers/implementations/text/html/utils.js +19 -2
  30. package/dist/commonjs/core/stream/adaptation/adaptation_stream.js +2 -2
  31. package/dist/commonjs/core/stream/orchestrator/stream_orchestrator.js +3 -3
  32. package/dist/commonjs/core/stream/period/period_stream.js +2 -2
  33. package/dist/commonjs/manifest/representation.js +18 -5
  34. package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +17 -0
  35. package/dist/commonjs/parsers/manifest/dash/common/convert_supplemental_codecs.js +30 -0
  36. package/dist/commonjs/parsers/manifest/dash/common/flatten_overlapping_periods.js +5 -0
  37. package/dist/commonjs/parsers/manifest/dash/common/parse_representations.js +29 -17
  38. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +3 -0
  39. package/dist/commonjs/parsers/manifest/dash/js-parser/node_parsers/Representation.js +3 -0
  40. package/dist/commonjs/parsers/manifest/dash/node_parser_types.d.ts +2 -0
  41. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +4 -0
  42. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +4 -0
  43. package/dist/commonjs/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
  44. package/dist/commonjs/parsers/manifest/types.d.ts +1 -0
  45. package/dist/commonjs/utils/queue_microtask.d.ts +2 -0
  46. package/dist/commonjs/utils/queue_microtask.js +7 -0
  47. package/dist/es2017/compat/patch_webkit_source_buffer.js +2 -2
  48. package/dist/es2017/core/api/option_utils.d.ts +2 -0
  49. package/dist/es2017/core/api/option_utils.js +6 -0
  50. package/dist/es2017/core/api/public_api.d.ts +2 -1
  51. package/dist/es2017/core/api/public_api.js +13 -3
  52. package/dist/es2017/core/segment_buffers/implementations/text/html/text_track_cues_store.js +54 -6
  53. package/dist/es2017/core/segment_buffers/implementations/text/html/utils.d.ts +2 -1
  54. package/dist/es2017/core/segment_buffers/implementations/text/html/utils.js +18 -2
  55. package/dist/es2017/core/stream/adaptation/adaptation_stream.js +2 -2
  56. package/dist/es2017/core/stream/orchestrator/stream_orchestrator.js +3 -3
  57. package/dist/es2017/core/stream/period/period_stream.js +2 -2
  58. package/dist/es2017/manifest/representation.js +18 -5
  59. package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.d.ts +17 -0
  60. package/dist/es2017/parsers/manifest/dash/common/convert_supplemental_codecs.js +26 -0
  61. package/dist/es2017/parsers/manifest/dash/common/flatten_overlapping_periods.js +5 -0
  62. package/dist/es2017/parsers/manifest/dash/common/parse_representations.js +29 -17
  63. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.js +3 -0
  64. package/dist/es2017/parsers/manifest/dash/js-parser/node_parsers/Representation.js +3 -0
  65. package/dist/es2017/parsers/manifest/dash/node_parser_types.d.ts +2 -0
  66. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.js +4 -0
  67. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/generators/Representation.js +4 -0
  68. package/dist/es2017/parsers/manifest/dash/wasm-parser/ts/types.d.ts +2 -1
  69. package/dist/es2017/parsers/manifest/types.d.ts +1 -0
  70. package/dist/es2017/utils/queue_microtask.d.ts +2 -0
  71. package/dist/es2017/utils/queue_microtask.js +5 -0
  72. package/dist/mpd-parser.wasm +0 -0
  73. package/dist/rx-player.js +179 -118
  74. package/dist/rx-player.min.js +1 -1
  75. package/package.json +1 -4
  76. package/sonar-project.properties +1 -1
  77. package/src/compat/patch_webkit_source_buffer.ts +2 -2
  78. package/src/core/api/option_utils.ts +8 -0
  79. package/src/core/api/public_api.ts +15 -3
  80. package/src/core/segment_buffers/implementations/text/html/__tests__/utils.test.ts +15 -0
  81. package/src/core/segment_buffers/implementations/text/html/text_track_cues_store.ts +57 -6
  82. package/src/core/segment_buffers/implementations/text/html/utils.ts +19 -2
  83. package/src/core/stream/adaptation/adaptation_stream.ts +2 -2
  84. package/src/core/stream/orchestrator/stream_orchestrator.ts +3 -3
  85. package/src/core/stream/period/period_stream.ts +2 -2
  86. package/src/manifest/representation.ts +19 -6
  87. package/src/parsers/manifest/dash/common/__tests__/convert_supplemental_codecs.test.ts +37 -0
  88. package/src/parsers/manifest/dash/common/__tests__/flatten_overlapping_period.test.ts +20 -0
  89. package/src/parsers/manifest/dash/common/convert_supplemental_codecs.ts +32 -0
  90. package/src/parsers/manifest/dash/common/flatten_overlapping_periods.ts +5 -0
  91. package/src/parsers/manifest/dash/common/parse_representations.ts +30 -17
  92. package/src/parsers/manifest/dash/js-parser/node_parsers/AdaptationSet.ts +4 -0
  93. package/src/parsers/manifest/dash/js-parser/node_parsers/Representation.ts +4 -0
  94. package/src/parsers/manifest/dash/node_parser_types.ts +2 -0
  95. package/src/parsers/manifest/dash/wasm-parser/rs/events.rs +2 -0
  96. package/src/parsers/manifest/dash/wasm-parser/rs/processor/attributes.rs +2 -0
  97. package/src/parsers/manifest/dash/wasm-parser/ts/generators/AdaptationSet.ts +4 -0
  98. package/src/parsers/manifest/dash/wasm-parser/ts/generators/Representation.ts +4 -0
  99. package/src/parsers/manifest/dash/wasm-parser/ts/types.ts +2 -0
  100. package/src/parsers/manifest/types.ts +2 -0
  101. package/src/utils/queue_microtask.ts +7 -0
  102. 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;
@@ -280,6 +280,8 @@ pub enum AttributeName {
280
280
 
281
281
  // SegmentTemplate
282
282
  EndNumber = 76, // f64
283
+
284
+ SupplementalCodecs = 77 // string
283
285
  }
284
286
 
285
287
  impl TagName {
@@ -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;
@@ -293,4 +293,6 @@ export const enum AttributeName {
293
293
 
294
294
  // SegmentTemplate
295
295
  EndNumber = 76, // f64
296
+
297
+ SupplementalCodecs = 77, // String
296
298
  }
@@ -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. */
@@ -0,0 +1,7 @@
1
+ export default typeof queueMicrotask === "function" ?
2
+ queueMicrotask :
3
+ function queueMicrotaskPonyfill(
4
+ cb: () => void
5
+ ): void {
6
+ Promise.resolve().then(cb, () => cb());
7
+ };
@@ -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
- }