@evercam/ui 0.0.53-beta.1 → 0.0.53-beta.3
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/attributes.json +15 -0
- package/dist/index.mjs +18840 -1998
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +27 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/EVideoPlayer.vue.d.ts +6 -1
- package/dist/src/index.d.ts +5 -1
- package/dist/style.css +1 -1
- package/dist/tags.json +4 -1
- package/dist/web-types.json +29 -2
- package/package.json +5 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import Hls from "hls.js";
|
|
1
2
|
import Vue from "vue";
|
|
2
3
|
export type VideoSource = {
|
|
3
4
|
type: string;
|
|
@@ -18,12 +19,13 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
18
19
|
isFinished: boolean;
|
|
19
20
|
isLoading: boolean;
|
|
20
21
|
isError: boolean;
|
|
22
|
+
player: Hls;
|
|
21
23
|
}, {
|
|
24
|
+
initHls(): void;
|
|
22
25
|
handle404Error(): void;
|
|
23
26
|
bindEvents(): void;
|
|
24
27
|
unbindEvents(): void;
|
|
25
28
|
bindVideoEvent(which: string): void;
|
|
26
|
-
unbindVideoEvent(which: string): void;
|
|
27
29
|
initializePlayer(): void;
|
|
28
30
|
destroyPlayer(): void;
|
|
29
31
|
removeFullscreenListeners(): void;
|
|
@@ -56,5 +58,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
56
58
|
sources: string | VideoSource[];
|
|
57
59
|
videoListeners: {};
|
|
58
60
|
videoOptions: {};
|
|
61
|
+
isHls: boolean;
|
|
62
|
+
streamingToken: string;
|
|
63
|
+
isLiveView: boolean;
|
|
59
64
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
60
65
|
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -132,12 +132,13 @@ export declare const components: {
|
|
|
132
132
|
isFinished: boolean;
|
|
133
133
|
isLoading: boolean;
|
|
134
134
|
isError: boolean;
|
|
135
|
+
player: import("hls.js").default;
|
|
135
136
|
}, {
|
|
137
|
+
initHls(): void;
|
|
136
138
|
handle404Error(): void;
|
|
137
139
|
bindEvents(): void;
|
|
138
140
|
unbindEvents(): void;
|
|
139
141
|
bindVideoEvent(which: string): void;
|
|
140
|
-
unbindVideoEvent(which: string): void;
|
|
141
142
|
initializePlayer(): void;
|
|
142
143
|
destroyPlayer(): void;
|
|
143
144
|
removeFullscreenListeners(): void;
|
|
@@ -170,6 +171,9 @@ export declare const components: {
|
|
|
170
171
|
sources: string | import('./components/EVideoPlayer.vue').VideoSource[];
|
|
171
172
|
videoListeners: {};
|
|
172
173
|
videoOptions: {};
|
|
174
|
+
isHls: boolean;
|
|
175
|
+
streamingToken: string;
|
|
176
|
+
isLiveView: boolean;
|
|
173
177
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
174
178
|
ETimeline: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {
|
|
175
179
|
tooltip: HTMLElement;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.e-spinner[data-v-29711f67]{vertical-align:center}.e-spinner__primary[data-v-29711f67],.e-spinner__secondary[data-v-29711f67]{stroke-width:0;animation:fade-29711f67;animation-iteration-count:infinite}@keyframes fade-29711f67{0%{fill-opacity:0}50%{fill-opacity:1}to{fill-opacity:0}}.e-row.e-row--no-gutters{margin:0}.e-row.e-row--no-gutters>.e-col{padding:0}.e-col{padding:.75rem}.spinner-container[data-v-
|
|
1
|
+
.e-spinner[data-v-29711f67]{vertical-align:center}.e-spinner__primary[data-v-29711f67],.e-spinner__secondary[data-v-29711f67]{stroke-width:0;animation:fade-29711f67;animation-iteration-count:infinite}@keyframes fade-29711f67{0%{fill-opacity:0}50%{fill-opacity:1}to{fill-opacity:0}}.e-row.e-row--no-gutters{margin:0}.e-row.e-row--no-gutters>.e-col{padding:0}.e-col{padding:.75rem}.spinner-container[data-v-56330695]{position:absolute;background:linear-gradient(to top,rgba(0,0,0,.65),transparent);inset:0;display:flex;justify-content:center;align-items:center;vertical-align:middle}.video-container[data-v-56330695]{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;margin:0 auto}.video-container.full-screen[data-v-56330695]{max-width:initial;width:100%;max-height:100vh}video[data-v-56330695]{width:100%;height:inherit}.video-controls-container[data-v-56330695]{position:absolute;bottom:0;left:0;right:0;color:#fff;z-index:100;opacity:0;transition:opacity .15s ease-in-out}.hide[data-v-56330695]{display:none}.video-controls-container[data-v-56330695]:before{content:"";position:absolute;bottom:0;background:linear-gradient(to top,rgba(0,0,0,.75),transparent);width:100%;aspect-ratio:6 / 1;z-index:-1;pointer-events:none}.video-container:hover .video-controls-container[data-v-56330695],.video-container:focus-within .video-controls-container[data-v-56330695],.video-container.paused .video-controls-container[data-v-56330695]{opacity:1}.video-controls-container .controls[data-v-56330695]{display:flex;gap:.5rem;padding:.75rem 1rem;align-items:center;width:100%}.video-controls-container .controls button[data-v-56330695]{background:none;border:none;color:inherit;padding:0;height:32px;width:32px;font-size:1.35rem;cursor:pointer;opacity:.85;transition:opacity .15s ease-in-out}.video-controls-container .controls button[data-v-56330695]:hover{opacity:1}.duration-container[data-v-56330695]{display:flex;align-items:center;gap:.25rem;flex-grow:1}.video-container.captions .captions-btn[data-v-56330695]{border-bottom:3px solid red}.video-controls-container .controls button.wide-btn[data-v-56330695]{width:50px}.timeline-container[data-v-56330695]{width:100%;height:7px;margin-inline:.5rem;cursor:pointer;display:flex;align-items:center}.timeline[data-v-56330695]{background-color:#64646480;height:3px;width:100%;position:relative}.timeline[data-v-56330695]:before{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--preview-position) * 100%);background-color:#969696;display:none}.timeline[data-v-56330695]:after{content:"";position:absolute;left:0;top:0;bottom:0;right:calc(100% - var(--progress-position) * 100%);background-color:red}.timeline .thumb-indicator[data-v-56330695]{--scale: 0;position:absolute;transform:translate(-50%) scale(var(--scale));height:200%;top:-50%;left:calc(var(--progress-position) * 100%);background-color:red;border-radius:50%;transition:transform .15s ease-in-out;aspect-ratio:1 / 1}.video-container.scrubbing .thumbnail-img[data-v-56330695]{display:block}.video-container.scrubbing .timeline[data-v-56330695]:before,.timeline-container:hover .timeline[data-v-56330695]:before{display:block}.video-container.scrubbing .thumb-indicator[data-v-56330695],.timeline-container:hover .thumb-indicator[data-v-56330695]{--scale: 1}.video-container.scrubbing .timeline[data-v-56330695],.timeline-container:hover .timeline[data-v-56330695]{height:100%}.e-timeline svg{display:block}.e-timeline .x-axis-overview .domain,.e-timeline .x-axis-detailed .domain,.e-timeline .x-axis-overviewBackground .domain,.e-timeline .x-axis-detailedBackground .domain{display:none}.e-timeline .x-axis-detailedBackground .domain,.e-timeline .x-axis-detailedBackground text{display:none}.e-timeline .x-axis-overview>g.tick>line{opacity:.1;stroke-width:3;stroke-linecap:round}.e-timeline .x-axis-detailed>g.tick>line{opacity:.1;stroke-linecap:round}.e-timeline .x-axis-detailedBackground>g.tick>line{opacity:.075;stroke-linecap:round}.e-timeline--dark .tick line{stroke:#fff}.e-timeline--dark .tick text{fill:#fff}@keyframes moveGradient{0%{transform:translate(-50%)}to{transform:translate(100%)}}@keyframes pulse-rect{0%{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}50%{filter:saturate(.5) drop-shadow(0 0 0 #0000)}to{filter:saturate(3.5) drop-shadow(0 0 1px #0008)}}@keyframes pulse-circle{0%{r:4px}50%{r:1px}to{r:4px}}.loading-indicator{animation:moveGradient 1.5s ease-in infinite}.line-graph-dot--active{animation:pulse-circle 1s ease-in-out infinite}.event-rect--hovered{animation:pulse-rect 1s ease-in-out infinite}@keyframes dash{0%{filter:saturate(1) drop-shadow(0 0 0 #0000)}50%{stroke-width:2px;filter:saturate(2.5) drop-shadow(0 0 0 #0006)}to{filter:saturate(1) drop-shadow(0 0 0 #0000)}}.line-graph-group--highlighted path{animation:dash 1s ease-in-out infinite}.e-timeline--dragging{cursor:ew-resize}.curtain{cursor:ew-resize;fill:#3332;stroke-width:1px;stroke:#3338;transition:stroke-width .2s}.e-timeline--dragging .curtain{stroke-width:3px}.e-timeline--dark .curtain{fill:#fff3;stroke:#fff7}.event-bar-hover-zone{cursor:pointer}.external-labels-container{position:absolute;top:-1.5em;left:0}.external-label{margin-right:.35em;border-width:.5px;border-radius:.2em}.external-label__content{cursor:pointer;font-size:.8em;font-weight:500;padding:0 .6em;line-height:1.4em}.marker-label{transition:transform .2s;transform:translateY(-32px);position:absolute;width:max-content}.marker-label-text{position:absolute;width:max-content;font-size:.8em;font-weight:500;padding:0 .75em;border-radius:.4em .4em .4em 0;box-shadow:0 0 5px -1px #000000f5}.marker-label-text:after{content:"";background:inherit;width:5px;height:5px;bottom:-5px;position:absolute;left:2px;clip-path:path("M 0,5 L 0,0 L 5,0 A 5,5 0 0 0 0,5")}.marker-label-text:before{content:"";background:inherit;height:20px;top:18px;position:absolute;width:2px;left:0}.marker{filter:saturate(.9)}.marker-line{position:absolute;width:2px;top:-24px}.marker:hover{cursor:pointer;opacity:1;filter:saturate(1.1);.marker-label{transform:translateY(-38px);height:61px;width:255px;padding-bottom:42px}.marker-label-text{box-shadow:2px 2px 11px -4px #000}}.marker--hidden:hover{.marker-label{transform:translateY(-54px)}}.video-embed[data-v-0ecf4a71]{position:relative;width:100%!important;padding-bottom:56.25%}.video-embed iframe[data-v-0ecf4a71]{position:absolute;top:0;left:0;width:100%;height:100%}
|
package/dist/tags.json
CHANGED
package/dist/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@evercam/ui",
|
|
5
|
-
"version": "0.0.53-beta.
|
|
5
|
+
"version": "0.0.53-beta.2",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"types-syntax": "typescript",
|
|
@@ -511,6 +511,33 @@
|
|
|
511
511
|
"kind": "expression",
|
|
512
512
|
"type": "object"
|
|
513
513
|
}
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "is-hls",
|
|
517
|
+
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
518
|
+
"default": "false",
|
|
519
|
+
"value": {
|
|
520
|
+
"kind": "expression",
|
|
521
|
+
"type": "boolean"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "streaming-token",
|
|
526
|
+
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
527
|
+
"default": "",
|
|
528
|
+
"value": {
|
|
529
|
+
"kind": "expression",
|
|
530
|
+
"type": "string"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "is-live-view",
|
|
535
|
+
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
536
|
+
"default": "false",
|
|
537
|
+
"value": {
|
|
538
|
+
"kind": "expression",
|
|
539
|
+
"type": "boolean"
|
|
540
|
+
}
|
|
514
541
|
}
|
|
515
542
|
]
|
|
516
543
|
},
|
|
@@ -535,7 +562,7 @@
|
|
|
535
562
|
{
|
|
536
563
|
"name": "x-axes-config",
|
|
537
564
|
"doc-url": "https://www.npmjs.com/package/@evercam/ui",
|
|
538
|
-
"default": "() =>
|
|
565
|
+
"default": "() => bh",
|
|
539
566
|
"value": {
|
|
540
567
|
"kind": "expression",
|
|
541
568
|
"type": "object"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evercam/ui",
|
|
3
|
-
"version": "0.0.53-beta.
|
|
3
|
+
"version": "0.0.53-beta.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Evercam - Constuction Cameras.",
|
|
@@ -72,5 +72,8 @@
|
|
|
72
72
|
"tags": "dist/tags.json",
|
|
73
73
|
"attributes": "dist/attributes.json"
|
|
74
74
|
},
|
|
75
|
-
"web-types": "dist/web-types.json"
|
|
75
|
+
"web-types": "dist/web-types.json",
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"hls.js": "^1.5.6"
|
|
78
|
+
}
|
|
76
79
|
}
|