rx-player 3.32.0 → 3.32.2-dev.2023102600
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 -1
- package/MAINTAINERS.md +1 -0
- package/VERSION +1 -1
- package/dist/_esm5.processed/core/api/public_api.js +2 -2
- package/dist/_esm5.processed/experimental/features/index.d.ts +1 -0
- package/dist/_esm5.processed/experimental/features/index.js +1 -0
- package/dist/rx-player.js +2 -2
- package/dist/rx-player.min.js +1 -1
- package/package.json +1 -1
- package/sonar-project.properties +1 -1
- package/src/core/api/public_api.ts +2 -2
- package/src/experimental/features/__tests__/index.test.ts +19 -0
- package/src/experimental/features/index.ts +1 -0
- package/src/features/list/__tests__/index.test.ts +55 -0
package/package.json
CHANGED
package/sonar-project.properties
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
sonar.projectKey=rx-player
|
|
2
2
|
sonar.organization=rx-player
|
|
3
3
|
sonar.projectName=rx-player
|
|
4
|
-
sonar.projectVersion=3.32.
|
|
4
|
+
sonar.projectVersion=3.32.2-dev.2023102600
|
|
5
5
|
sonar.sources=./src,./demo,./tests
|
|
6
6
|
sonar.exclusions=demo/full/bundle.js,demo/standalone/lib.js,demo/bundle.js
|
|
7
7
|
sonar.host.url=https://sonarcloud.io
|
|
@@ -379,7 +379,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
|
|
|
379
379
|
// See: https://bugzilla.mozilla.org/show_bug.cgi?id=1194624
|
|
380
380
|
videoElement.preload = "auto";
|
|
381
381
|
|
|
382
|
-
this.version = /* PLAYER_VERSION */"3.32.
|
|
382
|
+
this.version = /* PLAYER_VERSION */"3.32.2-dev.2023102600";
|
|
383
383
|
this.log = log;
|
|
384
384
|
this.state = "STOPPED";
|
|
385
385
|
this.videoElement = videoElement;
|
|
@@ -3103,7 +3103,7 @@ class Player extends EventEmitter<IPublicAPIEvent> {
|
|
|
3103
3103
|
return mediaElementTrackChoiceManager;
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
|
-
Player.version = /* PLAYER_VERSION */"3.32.
|
|
3106
|
+
Player.version = /* PLAYER_VERSION */"3.32.2-dev.2023102600";
|
|
3107
3107
|
|
|
3108
3108
|
/** Every events sent by the RxPlayer's public API. */
|
|
3109
3109
|
interface IPublicAPIEvent {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DASH_WASM as FEATURE_DASH_WASM } from "../dash_wasm";
|
|
2
|
+
import { DEBUG_ELEMENT as FEATURE_DEBUG_ELEMENT } from "../debug_element";
|
|
3
|
+
import {
|
|
4
|
+
DASH_WASM,
|
|
5
|
+
DEBUG_ELEMENT,
|
|
6
|
+
METAPLAYLIST,
|
|
7
|
+
LOCAL_MANIFEST,
|
|
8
|
+
} from "../index";
|
|
9
|
+
import { LOCAL_MANIFEST as FEATURE_LOCAL_MANIFEST } from "../local";
|
|
10
|
+
import { METAPLAYLIST as FEATURE_METAPLAYLIST } from "../metaplaylist";
|
|
11
|
+
|
|
12
|
+
describe("Experimental Features", () => {
|
|
13
|
+
it("should export all experimental features", () => {
|
|
14
|
+
expect(DASH_WASM).toBe(FEATURE_DASH_WASM);
|
|
15
|
+
expect(DEBUG_ELEMENT).toBe(FEATURE_DEBUG_ELEMENT);
|
|
16
|
+
expect(METAPLAYLIST).toBe(FEATURE_METAPLAYLIST);
|
|
17
|
+
expect(LOCAL_MANIFEST).toBe(FEATURE_LOCAL_MANIFEST);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { BIF_PARSER as BIF_PARSER_FEATURE } from "../bif_parser";
|
|
2
|
+
import { DASH as DASH_FEATURE } from "../dash";
|
|
3
|
+
import { DIRECTFILE as DIRECTFILE_FEATURE } from "../directfile";
|
|
4
|
+
import { EME as EME_FEATURE } from "../eme";
|
|
5
|
+
import { HTML_SAMI_PARSER as HTML_SAMI_PARSER_FEATURE } from "../html_sami_parser";
|
|
6
|
+
import { HTML_SRT_PARSER as HTML_SRT_PARSER_FEATURE } from "../html_srt_parser";
|
|
7
|
+
import { HTML_TEXT_BUFFER as HTML_TEXT_BUFFER_FEATURE } from "../html_text_buffer";
|
|
8
|
+
import { HTML_TTML_PARSER as HTML_TTML_PARSER_FEATURE } from "../html_ttml_parser";
|
|
9
|
+
import { HTML_VTT_PARSER as HTML_VTT_PARSER_FEATURE } from "../html_vtt_parser";
|
|
10
|
+
import { IMAGE_BUFFER as IMAGE_BUFFER_FEATURE } from "../image_buffer";
|
|
11
|
+
import {
|
|
12
|
+
BIF_PARSER,
|
|
13
|
+
DASH,
|
|
14
|
+
DIRECTFILE,
|
|
15
|
+
EME,
|
|
16
|
+
HTML_SAMI_PARSER,
|
|
17
|
+
HTML_SRT_PARSER,
|
|
18
|
+
HTML_TEXT_BUFFER,
|
|
19
|
+
HTML_TTML_PARSER,
|
|
20
|
+
HTML_VTT_PARSER,
|
|
21
|
+
IMAGE_BUFFER,
|
|
22
|
+
NATIVE_SAMI_PARSER,
|
|
23
|
+
NATIVE_SRT_PARSER,
|
|
24
|
+
NATIVE_TEXT_BUFFER,
|
|
25
|
+
NATIVE_TTML_PARSER,
|
|
26
|
+
NATIVE_VTT_PARSER,
|
|
27
|
+
SMOOTH,
|
|
28
|
+
} from "../index";
|
|
29
|
+
import { NATIVE_SAMI_PARSER as NATIVE_SAMI_PARSER_FEATURE } from "../native_sami_parser";
|
|
30
|
+
import { NATIVE_SRT_PARSER as NATIVE_SRT_PARSER_FEATURE } from "../native_srt_parser";
|
|
31
|
+
import { NATIVE_TEXT_BUFFER as NATIVE_TEXT_BUFFER_FEATURE } from "../native_text_buffer";
|
|
32
|
+
import { NATIVE_TTML_PARSER as NATIVE_TTML_PARSER_FEATURE } from "../native_ttml_parser";
|
|
33
|
+
import { NATIVE_VTT_PARSER as NATIVE_VTT_PARSER_FEATURE } from "../native_vtt_parser";
|
|
34
|
+
import { SMOOTH as SMOOTH_FEATURE } from "../smooth";
|
|
35
|
+
|
|
36
|
+
describe("Features list", () => {
|
|
37
|
+
it("should export all stable features", () => {
|
|
38
|
+
expect(BIF_PARSER).toBe(BIF_PARSER_FEATURE);
|
|
39
|
+
expect(DASH).toBe(DASH_FEATURE);
|
|
40
|
+
expect(DIRECTFILE).toBe(DIRECTFILE_FEATURE);
|
|
41
|
+
expect(EME).toBe(EME_FEATURE);
|
|
42
|
+
expect(HTML_SAMI_PARSER).toBe(HTML_SAMI_PARSER_FEATURE);
|
|
43
|
+
expect(HTML_SRT_PARSER).toBe(HTML_SRT_PARSER_FEATURE);
|
|
44
|
+
expect(HTML_TEXT_BUFFER).toBe(HTML_TEXT_BUFFER_FEATURE);
|
|
45
|
+
expect(HTML_TTML_PARSER).toBe(HTML_TTML_PARSER_FEATURE);
|
|
46
|
+
expect(HTML_VTT_PARSER).toBe(HTML_VTT_PARSER_FEATURE);
|
|
47
|
+
expect(IMAGE_BUFFER).toBe(IMAGE_BUFFER_FEATURE);
|
|
48
|
+
expect(NATIVE_SAMI_PARSER).toBe(NATIVE_SAMI_PARSER_FEATURE);
|
|
49
|
+
expect(NATIVE_SRT_PARSER).toBe(NATIVE_SRT_PARSER_FEATURE);
|
|
50
|
+
expect(NATIVE_TEXT_BUFFER).toBe(NATIVE_TEXT_BUFFER_FEATURE);
|
|
51
|
+
expect(NATIVE_TTML_PARSER).toBe(NATIVE_TTML_PARSER_FEATURE);
|
|
52
|
+
expect(NATIVE_VTT_PARSER).toBe(NATIVE_VTT_PARSER_FEATURE);
|
|
53
|
+
expect(SMOOTH).toBe(SMOOTH_FEATURE);
|
|
54
|
+
});
|
|
55
|
+
});
|