@editframe/elements 0.18.26-beta.0 → 0.18.27-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.
|
@@ -171,17 +171,13 @@ var BaseMediaEngine = class {
|
|
|
171
171
|
try {
|
|
172
172
|
const maybeJitEngine = this;
|
|
173
173
|
if (maybeJitEngine.urlGenerator && typeof maybeJitEngine.urlGenerator.generateSegmentUrl === "function") {
|
|
174
|
-
if (!rendition.id)
|
|
175
|
-
console.log(`🎬 BaseMediaEngine: No rendition ID for segment ${segmentId}`);
|
|
176
|
-
return false;
|
|
177
|
-
}
|
|
174
|
+
if (!rendition.id) return false;
|
|
178
175
|
const segmentUrl = maybeJitEngine.urlGenerator.generateSegmentUrl(segmentId, rendition.id, maybeJitEngine);
|
|
179
176
|
const urlIsCached = mediaCache.has(segmentUrl);
|
|
180
177
|
return urlIsCached;
|
|
181
178
|
}
|
|
182
179
|
const cacheKey = `${rendition.src}-${rendition.id || "default"}-${segmentId}-${rendition.trackId}`;
|
|
183
180
|
const isCached = mediaCache.has(cacheKey);
|
|
184
|
-
console.log(`🎬 BaseMediaEngine: Non-JIT engine, using segment key: "${cacheKey}", result: ${isCached}`);
|
|
185
181
|
return isCached;
|
|
186
182
|
} catch (error) {
|
|
187
183
|
console.warn(`🎬 BaseMediaEngine: Error checking if segment ${segmentId} is cached:`, error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@editframe/elements",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.27-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"license": "UNLICENSED",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@bramus/style-observer": "^1.3.0",
|
|
30
|
-
"@editframe/assets": "0.18.
|
|
30
|
+
"@editframe/assets": "0.18.27-beta.0",
|
|
31
31
|
"@lit/context": "^1.1.2",
|
|
32
32
|
"@lit/task": "^1.0.1",
|
|
33
33
|
"d3": "^7.9.0",
|
|
@@ -351,9 +351,6 @@ export abstract class BaseMediaEngine {
|
|
|
351
351
|
) {
|
|
352
352
|
// This is a JIT engine - generate the URL and check URL-based cache
|
|
353
353
|
if (!rendition.id) {
|
|
354
|
-
console.log(
|
|
355
|
-
`🎬 BaseMediaEngine: No rendition ID for segment ${segmentId}`,
|
|
356
|
-
);
|
|
357
354
|
return false;
|
|
358
355
|
}
|
|
359
356
|
|
|
@@ -369,9 +366,6 @@ export abstract class BaseMediaEngine {
|
|
|
369
366
|
// For other engine types, fall back to the old segment-based key approach
|
|
370
367
|
const cacheKey = `${rendition.src}-${rendition.id || "default"}-${segmentId}-${rendition.trackId}`;
|
|
371
368
|
const isCached = mediaCache.has(cacheKey);
|
|
372
|
-
console.log(
|
|
373
|
-
`🎬 BaseMediaEngine: Non-JIT engine, using segment key: "${cacheKey}", result: ${isCached}`,
|
|
374
|
-
);
|
|
375
369
|
return isCached;
|
|
376
370
|
} catch (error) {
|
|
377
371
|
console.warn(
|