unified-video-framework 1.4.384 → 1.4.386
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/package.json +1 -1
- package/packages/web/dist/drm/DRMHelper.js +1 -1
- package/packages/web/dist/index.d.ts +6 -0
- package/packages/web/dist/index.d.ts.map +1 -1
- package/packages/web/dist/index.js +3 -0
- package/packages/web/dist/index.js.map +1 -1
- package/packages/web/src/index.ts +10 -0
- package/scripts/fix-imports.js +44 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unified-video-framework",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.386",
|
|
4
4
|
"description": "Cross-platform video player framework supporting iOS, Android, Web, Smart TVs (Samsung/LG), Roku, and more",
|
|
5
5
|
"main": "packages/core/dist/index.js",
|
|
6
6
|
"types": "packages/core/dist/index.d.ts",
|
|
@@ -2,6 +2,12 @@ export * from '../../core/dist/index';
|
|
|
2
2
|
export { WebPlayer } from './WebPlayer';
|
|
3
3
|
export { WebPlayerView } from './react/WebPlayerView';
|
|
4
4
|
export { SecureVideoPlayer } from './SecureVideoPlayer';
|
|
5
|
+
export { DRMHelper, DRMProviderExamples } from './drm/DRMHelper';
|
|
6
|
+
export type { DRMHelperOptions } from './drm/DRMHelper';
|
|
7
|
+
export { CanvasVideoRenderer } from './security/CanvasVideoRenderer';
|
|
8
|
+
export { ScreenProtectionController } from './security/ScreenProtectionController';
|
|
9
|
+
export type { CanvasRendererOptions } from './security/CanvasVideoRenderer';
|
|
10
|
+
export type { ScreenProtectionOptions } from './security/ScreenProtectionController';
|
|
5
11
|
export * from './react/EPG';
|
|
6
12
|
export declare const VERSION = "1.0.0";
|
|
7
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,cAAc,aAAa,CAAC;AAG5B,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,YAAY,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,YAAY,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAGrF,cAAc,aAAa,CAAC;AAG5B,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -2,6 +2,9 @@ export * from "../../core/dist/index.js";
|
|
|
2
2
|
export { WebPlayer } from "./WebPlayer.js";
|
|
3
3
|
export { WebPlayerView } from "./react/WebPlayerView.js";
|
|
4
4
|
export { SecureVideoPlayer } from "./SecureVideoPlayer.js";
|
|
5
|
+
export { DRMHelper, DRMProviderExamples } from "./drm/DRMHelper.js";
|
|
6
|
+
export { CanvasVideoRenderer } from "./security/CanvasVideoRenderer.js";
|
|
7
|
+
export { ScreenProtectionController } from "./security/ScreenProtectionController.js";
|
|
5
8
|
export * from "./react/EPG.js";
|
|
6
9
|
export const VERSION = '1.0.0';
|
|
7
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,cAAc,aAAa,CAAC;AAG5B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAIjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAKnF,cAAc,aAAa,CAAC;AAG5B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -11,6 +11,16 @@ export { WebPlayer } from './WebPlayer';
|
|
|
11
11
|
export { WebPlayerView } from './react/WebPlayerView';
|
|
12
12
|
export { SecureVideoPlayer } from './SecureVideoPlayer';
|
|
13
13
|
|
|
14
|
+
// Export DRM utilities
|
|
15
|
+
export { DRMHelper, DRMProviderExamples } from './drm/DRMHelper';
|
|
16
|
+
export type { DRMHelperOptions } from './drm/DRMHelper';
|
|
17
|
+
|
|
18
|
+
// Export security controllers
|
|
19
|
+
export { CanvasVideoRenderer } from './security/CanvasVideoRenderer';
|
|
20
|
+
export { ScreenProtectionController } from './security/ScreenProtectionController';
|
|
21
|
+
export type { CanvasRendererOptions } from './security/CanvasVideoRenderer';
|
|
22
|
+
export type { ScreenProtectionOptions } from './security/ScreenProtectionController';
|
|
23
|
+
|
|
14
24
|
// Export EPG (Electronic Program Guide) components
|
|
15
25
|
export * from './react/EPG';
|
|
16
26
|
|
package/scripts/fix-imports.js
CHANGED
|
@@ -28,6 +28,24 @@ function fixImports(filePath) {
|
|
|
28
28
|
'import "../../core/dist/index.js"'
|
|
29
29
|
);
|
|
30
30
|
|
|
31
|
+
// Fix imports to core/dist to use index.js (both with and without .js)
|
|
32
|
+
content = content.replace(
|
|
33
|
+
/from\s+["']\.\.\/\.\.\/\.\.\/core\/dist\.js["']/g,
|
|
34
|
+
'from "../../../core/dist/index.js"'
|
|
35
|
+
);
|
|
36
|
+
content = content.replace(
|
|
37
|
+
/from\s+["']\.\.\/\.\.\/\.\.\/core\/dist["']/g,
|
|
38
|
+
'from "../../../core/dist/index.js"'
|
|
39
|
+
);
|
|
40
|
+
content = content.replace(
|
|
41
|
+
/from\s+["']\.\.\/\.\.\/core\/dist\.js["']/g,
|
|
42
|
+
'from "../../core/dist/index.js"'
|
|
43
|
+
);
|
|
44
|
+
content = content.replace(
|
|
45
|
+
/from\s+["']\.\.\/\.\.\/core\/dist["']/g,
|
|
46
|
+
'from "../../core/dist/index.js"'
|
|
47
|
+
);
|
|
48
|
+
|
|
31
49
|
// Fix relative imports within the same package to include .js extension
|
|
32
50
|
content = content.replace(
|
|
33
51
|
/from\s+["']\.\/([^"']+)(?<!\.js)["']/g,
|
|
@@ -36,6 +54,10 @@ function fixImports(filePath) {
|
|
|
36
54
|
content = content.replace(
|
|
37
55
|
/from\s+["']\.\.?\/([^"']+)(?<!\.js)["']/g,
|
|
38
56
|
(match, p1) => {
|
|
57
|
+
// Skip if it's already been handled (ends with index.js)
|
|
58
|
+
if (p1.includes('index.js')) {
|
|
59
|
+
return match;
|
|
60
|
+
}
|
|
39
61
|
if (p1.includes('/')) {
|
|
40
62
|
return `from "../${p1.replace(/([^\/]+)$/, '$1.js')}"`;
|
|
41
63
|
}
|
|
@@ -58,6 +80,24 @@ function fixImports(filePath) {
|
|
|
58
80
|
'import "../../core/dist/index.js"'
|
|
59
81
|
);
|
|
60
82
|
|
|
83
|
+
// Fix imports to core/dist to use index.js (both with and without .js)
|
|
84
|
+
content = content.replace(
|
|
85
|
+
/from\s+["']\.\.\/\.\.\/\.\.\/core\/dist\.js["']/g,
|
|
86
|
+
'from "../../../core/dist/index.js"'
|
|
87
|
+
);
|
|
88
|
+
content = content.replace(
|
|
89
|
+
/from\s+["']\.\.\/\.\.\/\.\.\/core\/dist["']/g,
|
|
90
|
+
'from "../../../core/dist/index.js"'
|
|
91
|
+
);
|
|
92
|
+
content = content.replace(
|
|
93
|
+
/from\s+["']\.\.\/\.\.\/core\/dist\.js["']/g,
|
|
94
|
+
'from "../../core/dist/index.js"'
|
|
95
|
+
);
|
|
96
|
+
content = content.replace(
|
|
97
|
+
/from\s+["']\.\.\/\.\.\/core\/dist["']/g,
|
|
98
|
+
'from "../../core/dist/index.js"'
|
|
99
|
+
);
|
|
100
|
+
|
|
61
101
|
// Fix relative imports within the same package to include .js extension
|
|
62
102
|
content = content.replace(
|
|
63
103
|
/from\s+["']\.\/([^"']+)(?<!\.js)["']/g,
|
|
@@ -66,6 +106,10 @@ function fixImports(filePath) {
|
|
|
66
106
|
content = content.replace(
|
|
67
107
|
/from\s+["']\.\.?\/([^"']+)(?<!\.js)["']/g,
|
|
68
108
|
(match, p1) => {
|
|
109
|
+
// Skip if it's already been handled (ends with index.js)
|
|
110
|
+
if (p1.includes('index.js')) {
|
|
111
|
+
return match;
|
|
112
|
+
}
|
|
69
113
|
if (p1.includes('/')) {
|
|
70
114
|
return `from "../${p1.replace(/([^\/]+)$/, '$1.js')}"`;
|
|
71
115
|
}
|