@editframe/elements 0.18.8-beta.0 → 0.18.19-beta.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/dist/elements/EFMedia/AssetIdMediaEngine.js +4 -1
- package/dist/elements/EFMedia/AssetMediaEngine.d.ts +3 -4
- package/dist/elements/EFMedia/AssetMediaEngine.js +16 -15
- package/dist/elements/EFMedia/BaseMediaEngine.d.ts +30 -11
- package/dist/elements/EFMedia/BaseMediaEngine.js +83 -31
- package/dist/elements/EFMedia/JitMediaEngine.d.ts +2 -4
- package/dist/elements/EFMedia/JitMediaEngine.js +12 -12
- package/dist/elements/EFVideo.d.ts +0 -1
- package/dist/elements/EFVideo.js +0 -9
- package/dist/elements/TargetController.js +3 -2
- package/package.json +2 -2
- package/src/elements/EFMedia/AssetIdMediaEngine.ts +10 -1
- package/src/elements/EFMedia/AssetMediaEngine.ts +25 -21
- package/src/elements/EFMedia/BaseMediaEngine.browsertest.ts +311 -0
- package/src/elements/EFMedia/BaseMediaEngine.ts +168 -51
- package/src/elements/EFMedia/JitMediaEngine.browsertest.ts +2 -12
- package/src/elements/EFMedia/JitMediaEngine.ts +25 -16
- package/src/elements/EFTemporal.browsertest.ts +47 -0
- package/src/elements/EFVideo.browsertest.ts +127 -281
- package/src/elements/EFVideo.ts +9 -9
- package/src/elements/TargetController.ts +6 -2
- package/test/__cache__/GET__api_v1_transcode_audio_1_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__32da3954ba60c96ad732020c65a08ebc/metadata.json +3 -8
- package/test/__cache__/GET__api_v1_transcode_audio_2_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__b0b2b07efcf607de8ee0f650328c32f7/metadata.json +3 -8
- package/test/__cache__/GET__api_v1_transcode_audio_3_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__a75c2252b542e0c152c780e9a8d7b154/metadata.json +3 -8
- package/test/__cache__/GET__api_v1_transcode_audio_4_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__a64ff1cfb1b52cae14df4b5dfa1e222b/metadata.json +3 -8
- package/test/__cache__/GET__api_v1_transcode_audio_5_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__91e8a522f950809b9f09f4173113b4b0/metadata.json +3 -8
- package/test/__cache__/GET__api_v1_transcode_audio_init_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__e66d2c831d951e74ad0aeaa6489795d0/metadata.json +3 -8
- package/test/__cache__/GET__api_v1_transcode_high_1_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__26197f6f7c46cacb0a71134131c3f775/data.bin +0 -0
- package/test/__cache__/GET__api_v1_transcode_high_1_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__26197f6f7c46cacb0a71134131c3f775/metadata.json +4 -9
- package/test/__cache__/GET__api_v1_transcode_high_2_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__4cb6774cd3650ccf59c8f8dc6678c0b9/data.bin +0 -0
- package/test/__cache__/GET__api_v1_transcode_high_2_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__4cb6774cd3650ccf59c8f8dc6678c0b9/metadata.json +4 -9
- package/test/__cache__/GET__api_v1_transcode_high_3_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__0b3b2b1c8933f7fcf8a9ecaa88d58b41/data.bin +0 -0
- package/test/__cache__/GET__api_v1_transcode_high_3_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__0b3b2b1c8933f7fcf8a9ecaa88d58b41/metadata.json +4 -9
- package/test/__cache__/GET__api_v1_transcode_high_4_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__a6fb05a22b18d850f7f2950bbcdbdeed/data.bin +0 -0
- package/test/__cache__/GET__api_v1_transcode_high_4_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__a6fb05a22b18d850f7f2950bbcdbdeed/metadata.json +4 -9
- package/test/__cache__/GET__api_v1_transcode_high_5_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__a50058c7c3602e90879fe3428ed891f4/data.bin +0 -0
- package/test/__cache__/GET__api_v1_transcode_high_5_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__a50058c7c3602e90879fe3428ed891f4/metadata.json +4 -9
- package/test/__cache__/GET__api_v1_transcode_high_init_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__0798c479b44aaeef850609a430f6e613/data.bin +0 -0
- package/test/__cache__/GET__api_v1_transcode_high_init_m4s_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__0798c479b44aaeef850609a430f6e613/metadata.json +4 -9
- package/test/__cache__/GET__api_v1_transcode_manifest_json_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4__3be92a0437de726b431ed5af2369158a/metadata.json +2 -4
- package/test/recordReplayProxyPlugin.js +46 -31
- package/test/setup.ts +16 -0
- package/test/useAssetMSW.ts +54 -0
- package/test/useMSW.ts +4 -11
- package/types.json +1 -1
- package/dist/elements/MediaController.d.ts +0 -30
- package/src/elements/EFMedia/BaseMediaEngine.test.ts +0 -164
- package/src/elements/MediaController.ts +0 -98
- package/test/__cache__/GET__api_v1_transcode_audio_1_mp4_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4_bytes_0__9ed2d25c675aa6bb6ff5b3ae23887c71/data.bin +0 -0
- package/test/__cache__/GET__api_v1_transcode_audio_1_mp4_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4_bytes_0__9ed2d25c675aa6bb6ff5b3ae23887c71/metadata.json +0 -22
- package/test/__cache__/GET__api_v1_transcode_audio_2_mp4_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4_bytes_0__d5a3309a2bf756dd6e304807eb402f56/data.bin +0 -0
- package/test/__cache__/GET__api_v1_transcode_audio_2_mp4_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4_bytes_0__d5a3309a2bf756dd6e304807eb402f56/metadata.json +0 -22
- package/test/__cache__/GET__api_v1_transcode_audio_3_mp4_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4_bytes_0__773254bb671e3466fca8677139fb239e/data.bin +0 -0
- package/test/__cache__/GET__api_v1_transcode_audio_3_mp4_url_http_3A_2F_2Fweb_3A3000_2Fhead_moov_480p_mp4_bytes_0__773254bb671e3466fca8677139fb239e/metadata.json +0 -22
- /package/dist/elements/EFMedia/{BaseMediaEngine.test.d.ts → BaseMediaEngine.browsertest.d.ts} +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
-
export declare class MediaController implements ReactiveController {
|
|
3
|
-
#private;
|
|
4
|
-
private host;
|
|
5
|
-
constructor(host: ReactiveControllerHost & {
|
|
6
|
-
src: string;
|
|
7
|
-
assetId: string | null;
|
|
8
|
-
mode: "asset" | "jit-transcode" | "auto";
|
|
9
|
-
});
|
|
10
|
-
get mode(): "asset" | "jit-transcode";
|
|
11
|
-
get src(): string | null;
|
|
12
|
-
set src(value: string | null);
|
|
13
|
-
get assetId(): string | null;
|
|
14
|
-
set assetId(value: string | null);
|
|
15
|
-
changes: Map<string, {
|
|
16
|
-
oldValue: any;
|
|
17
|
-
newValue: any;
|
|
18
|
-
}> | null;
|
|
19
|
-
updatePending: boolean;
|
|
20
|
-
trackUpdate(key: string, oldValue: any, newValue: any): void;
|
|
21
|
-
endUpdate(): void;
|
|
22
|
-
handleUpdate(changes: Map<string, {
|
|
23
|
-
oldValue: any;
|
|
24
|
-
newValue: any;
|
|
25
|
-
}>): void;
|
|
26
|
-
hostUpdated(): void;
|
|
27
|
-
hostConnected(): void;
|
|
28
|
-
hostDisconnected(): void;
|
|
29
|
-
updated(): void;
|
|
30
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
2
|
-
import { EFMedia } from "../EFMedia.js";
|
|
3
|
-
import { BaseMediaEngine } from "./BaseMediaEngine.js";
|
|
4
|
-
|
|
5
|
-
// Test implementation of BaseMediaEngine for testing
|
|
6
|
-
class TestMediaEngine extends BaseMediaEngine {
|
|
7
|
-
fetchMediaSegmentImpl = vi.fn();
|
|
8
|
-
|
|
9
|
-
get host() {
|
|
10
|
-
return new EFMedia();
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
get videoRendition() {
|
|
14
|
-
return {
|
|
15
|
-
trackId: 1,
|
|
16
|
-
src: "test-video.mp4",
|
|
17
|
-
segmentDurationMs: 2000,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
get audioRendition() {
|
|
22
|
-
return {
|
|
23
|
-
trackId: 2,
|
|
24
|
-
src: "test-audio.mp4",
|
|
25
|
-
segmentDurationMs: 1000,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
describe("BaseMediaEngine deduplication", () => {
|
|
31
|
-
let engine: TestMediaEngine;
|
|
32
|
-
const mockSegmentData = new ArrayBuffer(1024);
|
|
33
|
-
|
|
34
|
-
beforeEach(() => {
|
|
35
|
-
engine = new TestMediaEngine();
|
|
36
|
-
engine.fetchMediaSegmentImpl.mockResolvedValue(mockSegmentData);
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it("should fetch segment successfully", async () => {
|
|
40
|
-
const rendition = { trackId: 1, src: "test.mp4" };
|
|
41
|
-
const result = await engine.fetchMediaSegment(1, rendition);
|
|
42
|
-
|
|
43
|
-
expect(result).toBe(mockSegmentData);
|
|
44
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledWith(1, rendition);
|
|
45
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledTimes(1);
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it("should deduplicate concurrent requests for same segment", async () => {
|
|
49
|
-
const rendition = { trackId: 1, src: "test.mp4" };
|
|
50
|
-
|
|
51
|
-
// Make two concurrent requests for the same segment
|
|
52
|
-
const [result1, result2] = await Promise.all([
|
|
53
|
-
engine.fetchMediaSegment(1, rendition),
|
|
54
|
-
engine.fetchMediaSegment(1, rendition),
|
|
55
|
-
]);
|
|
56
|
-
|
|
57
|
-
// Both should return the same result
|
|
58
|
-
expect(result1).toBe(mockSegmentData);
|
|
59
|
-
expect(result2).toBe(mockSegmentData);
|
|
60
|
-
|
|
61
|
-
// But fetchMediaSegmentImpl should only be called once due to deduplication
|
|
62
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledTimes(1);
|
|
63
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledWith(1, rendition);
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
it("should handle different segments as separate requests", async () => {
|
|
67
|
-
const rendition = { trackId: 1, src: "test.mp4" };
|
|
68
|
-
|
|
69
|
-
// Make concurrent requests for different segments
|
|
70
|
-
const [result1, result2] = await Promise.all([
|
|
71
|
-
engine.fetchMediaSegment(1, rendition),
|
|
72
|
-
engine.fetchMediaSegment(2, rendition),
|
|
73
|
-
]);
|
|
74
|
-
|
|
75
|
-
expect(result1).toBe(mockSegmentData);
|
|
76
|
-
expect(result2).toBe(mockSegmentData);
|
|
77
|
-
|
|
78
|
-
// Should call fetchMediaSegmentImpl twice for different segments
|
|
79
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledTimes(2);
|
|
80
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledWith(1, rendition);
|
|
81
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledWith(2, rendition);
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
it("should handle different renditions as separate requests", async () => {
|
|
85
|
-
const rendition1 = { trackId: 1, src: "test1.mp4" };
|
|
86
|
-
const rendition2 = { trackId: 2, src: "test2.mp4" };
|
|
87
|
-
|
|
88
|
-
// Make concurrent requests for same segment but different renditions
|
|
89
|
-
const [result1, result2] = await Promise.all([
|
|
90
|
-
engine.fetchMediaSegment(1, rendition1),
|
|
91
|
-
engine.fetchMediaSegment(1, rendition2),
|
|
92
|
-
]);
|
|
93
|
-
|
|
94
|
-
expect(result1).toBe(mockSegmentData);
|
|
95
|
-
expect(result2).toBe(mockSegmentData);
|
|
96
|
-
|
|
97
|
-
// Should call fetchMediaSegmentImpl twice for different renditions
|
|
98
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledTimes(2);
|
|
99
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledWith(1, rendition1);
|
|
100
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledWith(1, rendition2);
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
it("should propagate errors correctly", async () => {
|
|
104
|
-
const error = new Error("Fetch failed");
|
|
105
|
-
engine.fetchMediaSegmentImpl.mockRejectedValue(error);
|
|
106
|
-
|
|
107
|
-
const rendition = { trackId: 1, src: "test.mp4" };
|
|
108
|
-
|
|
109
|
-
await expect(engine.fetchMediaSegment(1, rendition)).rejects.toThrow(
|
|
110
|
-
"Fetch failed",
|
|
111
|
-
);
|
|
112
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledWith(1, rendition);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
it("should retry failed requests after error", async () => {
|
|
116
|
-
const rendition = { trackId: 1, src: "test.mp4" };
|
|
117
|
-
const error = new Error("First attempt failed");
|
|
118
|
-
|
|
119
|
-
// First request fails
|
|
120
|
-
engine.fetchMediaSegmentImpl.mockRejectedValueOnce(error);
|
|
121
|
-
await expect(engine.fetchMediaSegment(1, rendition)).rejects.toThrow(
|
|
122
|
-
"First attempt failed",
|
|
123
|
-
);
|
|
124
|
-
|
|
125
|
-
// Second request should succeed (not deduplicated since first failed)
|
|
126
|
-
engine.fetchMediaSegmentImpl.mockResolvedValue(mockSegmentData);
|
|
127
|
-
const result = await engine.fetchMediaSegment(1, rendition);
|
|
128
|
-
|
|
129
|
-
expect(result).toBe(mockSegmentData);
|
|
130
|
-
expect(engine.fetchMediaSegmentImpl).toHaveBeenCalledTimes(2);
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
it("should track pending requests correctly", () => {
|
|
134
|
-
const rendition = { trackId: 1, src: "test.mp4" };
|
|
135
|
-
|
|
136
|
-
// Start a request but don't await it
|
|
137
|
-
const promise = engine.fetchMediaSegment(1, rendition);
|
|
138
|
-
|
|
139
|
-
// Should detect that segment is being fetched
|
|
140
|
-
expect(engine.isSegmentBeingFetched(1, rendition)).toBe(true);
|
|
141
|
-
expect(engine.getActiveSegmentRequestCount()).toBe(1);
|
|
142
|
-
|
|
143
|
-
// Different segment should not be detected as being fetched
|
|
144
|
-
expect(engine.isSegmentBeingFetched(2, rendition)).toBe(false);
|
|
145
|
-
|
|
146
|
-
return promise.then(() => {
|
|
147
|
-
// After completion, should no longer be detected as being fetched
|
|
148
|
-
expect(engine.isSegmentBeingFetched(1, rendition)).toBe(false);
|
|
149
|
-
expect(engine.getActiveSegmentRequestCount()).toBe(0);
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
it("should cancel all requests correctly", async () => {
|
|
154
|
-
const rendition = { trackId: 1, src: "test.mp4" };
|
|
155
|
-
|
|
156
|
-
// Start a request
|
|
157
|
-
engine.fetchMediaSegment(1, rendition);
|
|
158
|
-
expect(engine.getActiveSegmentRequestCount()).toBe(1);
|
|
159
|
-
|
|
160
|
-
// Cancel all requests
|
|
161
|
-
engine.cancelAllSegmentRequests();
|
|
162
|
-
expect(engine.getActiveSegmentRequestCount()).toBe(0);
|
|
163
|
-
});
|
|
164
|
-
});
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { ReactiveController, ReactiveControllerHost } from "lit";
|
|
2
|
-
|
|
3
|
-
export class MediaController implements ReactiveController {
|
|
4
|
-
#src: string | null = null;
|
|
5
|
-
#assetId: string | null = null;
|
|
6
|
-
|
|
7
|
-
constructor(
|
|
8
|
-
private host: ReactiveControllerHost & {
|
|
9
|
-
src: string;
|
|
10
|
-
assetId: string | null;
|
|
11
|
-
mode: "asset" | "jit-transcode" | "auto";
|
|
12
|
-
},
|
|
13
|
-
) {
|
|
14
|
-
this.host.addController(this);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
get mode() {
|
|
18
|
-
const actualMode = this.host.mode;
|
|
19
|
-
if (actualMode === "asset" || actualMode === "jit-transcode") {
|
|
20
|
-
return actualMode;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (this.host.assetId) {
|
|
24
|
-
return "asset";
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (!this.host.src) {
|
|
28
|
-
return "asset";
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return "asset";
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
get src() {
|
|
35
|
-
return this.#src;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
set src(value: string | null) {
|
|
39
|
-
if (this.#src !== value) {
|
|
40
|
-
this.trackUpdate("src", this.#src, value);
|
|
41
|
-
this.#src = value;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
get assetId() {
|
|
46
|
-
return this.#assetId;
|
|
47
|
-
}
|
|
48
|
-
set assetId(value: string | null) {
|
|
49
|
-
if (this.#assetId !== value) {
|
|
50
|
-
this.trackUpdate("assetId", this.#assetId, value);
|
|
51
|
-
this.#assetId = value;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
changes: Map<string, { oldValue: any; newValue: any }> | null = null;
|
|
56
|
-
updatePending = false;
|
|
57
|
-
|
|
58
|
-
trackUpdate(key: string, oldValue: any, newValue: any) {
|
|
59
|
-
this.changes ??= new Map<string, { oldValue: any; newValue: any }>();
|
|
60
|
-
this.changes.set(key, { oldValue, newValue });
|
|
61
|
-
if (!this.updatePending) {
|
|
62
|
-
this.updatePending = true;
|
|
63
|
-
queueMicrotask(() => {
|
|
64
|
-
this.endUpdate();
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
endUpdate() {
|
|
70
|
-
try {
|
|
71
|
-
if (this.changes) {
|
|
72
|
-
this.handleUpdate(this.changes);
|
|
73
|
-
}
|
|
74
|
-
} finally {
|
|
75
|
-
this.changes = null;
|
|
76
|
-
this.updatePending = false;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
handleUpdate(changes: Map<string, { oldValue: any; newValue: any }>) {
|
|
81
|
-
if (changes.has("src") || changes.has("assetId") || changes.has("mode")) {
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
hostUpdated(): void {
|
|
86
|
-
this.src = this.host.src;
|
|
87
|
-
this.assetId = this.host.assetId;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
hostConnected() {
|
|
91
|
-
this.src = this.host.src;
|
|
92
|
-
this.assetId = this.host.assetId;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
hostDisconnected() {}
|
|
96
|
-
|
|
97
|
-
updated() {}
|
|
98
|
-
}
|
|
Binary file
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"statusCode": 200,
|
|
3
|
-
"headers": {
|
|
4
|
-
"access-control-allow-headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization, Range",
|
|
5
|
-
"access-control-allow-methods": "GET, POST, PUT, DELETE, OPTIONS",
|
|
6
|
-
"access-control-allow-origin": "*",
|
|
7
|
-
"access-control-expose-headers": "Content-Length, Content-Range, X-Cache, X-Actual-Start-Time, X-Actual-Duration, X-Transcode-Time-Ms, X-Total-Server-Time-Ms",
|
|
8
|
-
"cache-control": "public, max-age=3600",
|
|
9
|
-
"connection": "close",
|
|
10
|
-
"content-length": "33661",
|
|
11
|
-
"content-type": "video/mp4",
|
|
12
|
-
"date": "Tue, 05 Aug 2025 17:32:32 GMT",
|
|
13
|
-
"x-cache": "HIT",
|
|
14
|
-
"x-powered-by": "Express",
|
|
15
|
-
"x-total-server-time-ms": "3",
|
|
16
|
-
"x-transcode-time-ms": "0"
|
|
17
|
-
},
|
|
18
|
-
"url": "/api/v1/transcode/audio/1.mp4?url=http%3A%2F%2Fweb%3A3000%2Fhead-moov-480p.mp4",
|
|
19
|
-
"method": "GET",
|
|
20
|
-
"range": "bytes=0-",
|
|
21
|
-
"timestamp": "2025-08-05T17:32:32.538Z"
|
|
22
|
-
}
|
|
Binary file
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"statusCode": 200,
|
|
3
|
-
"headers": {
|
|
4
|
-
"access-control-allow-headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization, Range",
|
|
5
|
-
"access-control-allow-methods": "GET, POST, PUT, DELETE, OPTIONS",
|
|
6
|
-
"access-control-allow-origin": "*",
|
|
7
|
-
"access-control-expose-headers": "Content-Length, Content-Range, X-Cache, X-Actual-Start-Time, X-Actual-Duration, X-Transcode-Time-Ms, X-Total-Server-Time-Ms",
|
|
8
|
-
"cache-control": "public, max-age=3600",
|
|
9
|
-
"connection": "close",
|
|
10
|
-
"content-length": "33206",
|
|
11
|
-
"content-type": "video/mp4",
|
|
12
|
-
"date": "Tue, 05 Aug 2025 17:32:40 GMT",
|
|
13
|
-
"x-cache": "MISS",
|
|
14
|
-
"x-powered-by": "Express",
|
|
15
|
-
"x-total-server-time-ms": "215",
|
|
16
|
-
"x-transcode-time-ms": "209"
|
|
17
|
-
},
|
|
18
|
-
"url": "/api/v1/transcode/audio/2.mp4?url=http%3A%2F%2Fweb%3A3000%2Fhead-moov-480p.mp4",
|
|
19
|
-
"method": "GET",
|
|
20
|
-
"range": "bytes=0-",
|
|
21
|
-
"timestamp": "2025-08-05T17:32:40.581Z"
|
|
22
|
-
}
|
|
Binary file
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"statusCode": 200,
|
|
3
|
-
"headers": {
|
|
4
|
-
"access-control-allow-headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization, Range",
|
|
5
|
-
"access-control-allow-methods": "GET, POST, PUT, DELETE, OPTIONS",
|
|
6
|
-
"access-control-allow-origin": "*",
|
|
7
|
-
"access-control-expose-headers": "Content-Length, Content-Range, X-Cache, X-Actual-Start-Time, X-Actual-Duration, X-Transcode-Time-Ms, X-Total-Server-Time-Ms",
|
|
8
|
-
"cache-control": "public, max-age=3600",
|
|
9
|
-
"connection": "close",
|
|
10
|
-
"content-length": "32900",
|
|
11
|
-
"content-type": "video/mp4",
|
|
12
|
-
"date": "Tue, 05 Aug 2025 18:58:23 GMT",
|
|
13
|
-
"x-cache": "MISS",
|
|
14
|
-
"x-powered-by": "Express",
|
|
15
|
-
"x-total-server-time-ms": "280",
|
|
16
|
-
"x-transcode-time-ms": "265"
|
|
17
|
-
},
|
|
18
|
-
"url": "/api/v1/transcode/audio/3.mp4?url=http%3A%2F%2Fweb%3A3000%2Fhead-moov-480p.mp4",
|
|
19
|
-
"method": "GET",
|
|
20
|
-
"range": "bytes=0-",
|
|
21
|
-
"timestamp": "2025-08-05T18:58:23.587Z"
|
|
22
|
-
}
|
/package/dist/elements/EFMedia/{BaseMediaEngine.test.d.ts → BaseMediaEngine.browsertest.d.ts}
RENAMED
|
File without changes
|