@webitel/ui-sdk 25.12.44 → 25.12.46
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/{install-DfHG0Llr.js → install-CVfWqwx_.js} +55 -21
- package/dist/{plyr-BS8-d-eT.js → plyr-DjpbRwU1.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +4 -4
- package/dist/{vidstack-Bq6c3Bam-BO_BTLwZ.js → vidstack-Bq6c3Bam-D76pUOvQ.js} +2 -2
- package/dist/{vidstack-D2pY00kU-BE7FU4sp.js → vidstack-D2pY00kU-Bu00d2sw.js} +2 -2
- package/dist/{vidstack-DDXt6fpN-Cb2lMDgf.js → vidstack-DDXt6fpN-BiIBX3zp.js} +1 -1
- package/dist/{vidstack-D_-9AA6_-1bv8SJKd.js → vidstack-D_-9AA6_-DntZkT1m.js} +1 -1
- package/dist/{vidstack-DqAw8m9J-BrQBxAHC.js → vidstack-DqAw8m9J-D1kVCcCr.js} +1 -1
- package/dist/{vidstack-audio-DPk7GUck.js → vidstack-audio-DqdNN8Aw.js} +2 -2
- package/dist/{vidstack-dash-emGB1n89.js → vidstack-dash-WgTAdPNm.js} +3 -3
- package/dist/{vidstack-google-cast-BupaCVYS.js → vidstack-google-cast-C2L48CdR.js} +3 -3
- package/dist/{vidstack-hls-B_WnEtar.js → vidstack-hls-sIM-sJCc.js} +3 -3
- package/dist/{vidstack-video-CAJYG_jF.js → vidstack-video-BCaTiWs3.js} +2 -2
- package/dist/{vidstack-vimeo-DSPsQsz0.js → vidstack-vimeo-CJTn78Qu.js} +3 -3
- package/dist/{vidstack-youtube-AaNMxv8t.js → vidstack-youtube-3bZfchO3.js} +2 -2
- package/dist/{vuex.esm-bundler-DQieAhW4.js → vuex.esm-bundler-BGS0cOh_.js} +1 -1
- package/package.json +1 -1
- package/src/components/wt-vidstack-player/components/layouts/video-layout.vue +2 -0
- package/src/components/wt-vidstack-player/components/panels/screen-sharing-controls-panel/screen-sharing-controls-panel.vue +10 -3
- package/src/components/wt-vidstack-player/components/panels/video-call-controls-panel/video-call-controls-panel.vue +37 -28
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +2 -0
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +18 -4
- package/src/modules/CallSession/modules/VideoCall/video-call.vue +8 -3
- package/types/components/wt-vidstack-player/components/layouts/video-layout.vue.d.ts +1 -0
- package/types/components/wt-vidstack-player/components/panels/video-call-controls-panel/video-call-controls-panel.vue.d.ts +2 -0
- package/types/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue.d.ts +1 -0
- package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +2 -0
- package/types/modules/CallSession/modules/VideoCall/video-call.vue.d.ts +3 -1
|
@@ -5,8 +5,8 @@ var ot = (n) => {
|
|
|
5
5
|
var Xt = (n, t, s) => t in n ? Qt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[t] = s;
|
|
6
6
|
var N = (n, t, s) => Xt(n, typeof t != "symbol" ? t + "" : t, s), X = (n, t, s) => t.has(n) || ot("Cannot " + s);
|
|
7
7
|
var i = (n, t, s) => (X(n, t, "read from private field"), s ? s.call(n) : t.get(n)), d = (n, t, s) => t.has(n) ? ot("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, s), c = (n, t, s, r) => (X(n, t, "write to private field"), r ? r.call(n, s) : t.set(n, s), s), a = (n, t, s) => (X(n, t, "access private method"), s);
|
|
8
|
-
import { A as Yt, z as ut, B as j, C as Zt, b as ti, E as nt, e as lt, F as _, G as ii, H as ei, f as si, J as ai, l as rt, K as dt, D as ni, L as Y, M as Z } from "./install-
|
|
9
|
-
import { R as ri } from "./vidstack-DqAw8m9J-
|
|
8
|
+
import { A as Yt, z as ut, B as j, C as Zt, b as ti, E as nt, e as lt, F as _, G as ii, H as ei, f as si, J as ai, l as rt, K as dt, D as ni, L as Y, M as Z } from "./install-CVfWqwx_.js";
|
|
9
|
+
import { R as ri } from "./vidstack-DqAw8m9J-D1kVCcCr.js";
|
|
10
10
|
let q = null, K = [], z = [];
|
|
11
11
|
function ht() {
|
|
12
12
|
return q ?? (q = new AudioContext());
|
|
@@ -5,7 +5,7 @@ var w = (t) => {
|
|
|
5
5
|
var P = (t, e, a) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
6
6
|
var u = (t, e, a) => P(t, typeof e != "symbol" ? e + "" : e, a), C = (t, e, a) => e.has(t) || w("Cannot " + a);
|
|
7
7
|
var c = (t, e, a) => (C(t, e, "read from private field"), a ? a.call(t) : e.get(t)), m = (t, e, a) => e.has(t) ? w("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, a), y = (t, e, a, o) => (C(t, e, "write to private field"), o ? o.call(t, a) : e.set(t, a), a), s = (t, e, a) => (C(t, e, "access private method"), a);
|
|
8
|
-
import { l as b, k as A, V as O, G as D, f as R, o as G } from "./install-
|
|
8
|
+
import { l as b, k as A, V as O, G as D, f as R, o as G } from "./install-CVfWqwx_.js";
|
|
9
9
|
function M() {
|
|
10
10
|
return "https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";
|
|
11
11
|
}
|
|
@@ -94,7 +94,7 @@ class F {
|
|
|
94
94
|
async load(e) {
|
|
95
95
|
if (!c(this, n))
|
|
96
96
|
throw Error("[vidstack] google cast player was not initialized");
|
|
97
|
-
return new (await import("./vidstack-google-cast-
|
|
97
|
+
return new (await import("./vidstack-google-cast-C2L48CdR.js")).GoogleCastProvider(c(this, n), e);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
n = new WeakMap(), r = new WeakSet(), S = async function(e) {
|
|
@@ -5,7 +5,7 @@ var g = (s) => {
|
|
|
5
5
|
var M = (s, t, i) => t in s ? y(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
|
|
6
6
|
var c = (s, t, i) => M(s, typeof t != "symbol" ? t + "" : t, i), h = (s, t, i) => t.has(s) || g("Cannot " + i);
|
|
7
7
|
var e = (s, t, i) => (h(s, t, "read from private field"), i ? i.call(s) : t.get(s)), l = (s, t, i) => t.has(s) ? g("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, i), p = (s, t, i, a) => (h(s, t, "write to private field"), a ? a.call(s, i) : t.set(s, i), i), u = (s, t, i) => (h(s, t, "access private method"), i);
|
|
8
|
-
import { M as w, l as f, e as A, f as P, U as O, b as S } from "./install-
|
|
8
|
+
import { M as w, l as f, e as A, f as P, U as O, b as S } from "./install-CVfWqwx_.js";
|
|
9
9
|
var r, o, b, m;
|
|
10
10
|
class J {
|
|
11
11
|
constructor(t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as d, a as i, I as l, e as m } from "./install-
|
|
1
|
+
import { c as d, a as i, I as l, e as m } from "./install-CVfWqwx_.js";
|
|
2
2
|
const p = /* @__PURE__ */ i(
|
|
3
3
|
'<svg viewBox="0 0 32 32" fill="none" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"></svg>'
|
|
4
4
|
);
|
|
@@ -3,7 +3,7 @@ var l = (i) => {
|
|
|
3
3
|
};
|
|
4
4
|
var m = (i, t, s) => t.has(i) || l("Cannot " + s);
|
|
5
5
|
var r = (i, t, s) => (m(i, t, "read from private field"), s ? s.call(i) : t.get(i)), e = (i, t, s) => t.has(i) ? l("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), h = (i, t, s, f) => (m(i, t, "write to private field"), f ? f.call(i, s) : t.set(i, s), s), c = (i, t, s) => (m(i, t, "access private method"), s);
|
|
6
|
-
import { m as p, v as u } from "./install-
|
|
6
|
+
import { m as p, v as u } from "./install-CVfWqwx_.js";
|
|
7
7
|
var o, a, n, d;
|
|
8
8
|
class F {
|
|
9
9
|
constructor(t) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var a = Object.defineProperty;
|
|
2
2
|
var o = (i, e, t) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
3
|
var r = (i, e, t) => o(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { s as p } from "./install-
|
|
5
|
-
import { H as d, a as u } from "./vidstack-Bq6c3Bam-
|
|
4
|
+
import { s as p } from "./install-CVfWqwx_.js";
|
|
5
|
+
import { H as d, a as u } from "./vidstack-Bq6c3Bam-D76pUOvQ.js";
|
|
6
6
|
class n extends d {
|
|
7
7
|
constructor(t, s) {
|
|
8
8
|
super(t, s);
|
|
@@ -5,9 +5,9 @@ var Y = (n) => {
|
|
|
5
5
|
var wt = (n, t, e) => t in n ? vt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
6
6
|
var I = (n, t, e) => wt(n, typeof t != "symbol" ? t + "" : t, e), b = (n, t, e) => t.has(n) || Y("Cannot " + e);
|
|
7
7
|
var i = (n, t, e) => (b(n, t, "read from private field"), e ? e.call(n) : t.get(n)), f = (n, t, e) => t.has(n) ? Y("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, e), p = (n, t, e, r) => (b(n, t, "write to private field"), r ? r.call(n, e) : t.set(n, e), e), h = (n, t, e) => (b(n, t, "access private method"), e);
|
|
8
|
-
import { r as Et, b as _, d as Lt, f as At, Q as z, l as J, e as Dt, D as N, h as xt, j as O, T as Mt, L as q, t as Ct, u as Nt, v as Rt, k as Ft, m as Z, n as Pt, o as qt, q as _t } from "./install-
|
|
9
|
-
import { VideoProvider as $t } from "./vidstack-video-
|
|
10
|
-
import { R as jt } from "./vidstack-DqAw8m9J-
|
|
8
|
+
import { r as Et, b as _, d as Lt, f as At, Q as z, l as J, e as Dt, D as N, h as xt, j as O, T as Mt, L as q, t as Ct, u as Nt, v as Rt, k as Ft, m as Z, n as Pt, o as qt, q as _t } from "./install-CVfWqwx_.js";
|
|
9
|
+
import { VideoProvider as $t } from "./vidstack-video-BCaTiWs3.js";
|
|
10
|
+
import { R as jt } from "./vidstack-DqAw8m9J-D1kVCcCr.js";
|
|
11
11
|
function W(n) {
|
|
12
12
|
try {
|
|
13
13
|
return new Intl.DisplayNames(navigator.languages, { type: "language" }).of(n) ?? null;
|
|
@@ -5,9 +5,9 @@ var Q = (d) => {
|
|
|
5
5
|
var vt = (d, t, s) => t in d ? Lt(d, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : d[t] = s;
|
|
6
6
|
var G = (d, t, s) => vt(d, typeof t != "symbol" ? t + "" : t, s), O = (d, t, s) => t.has(d) || Q("Cannot " + s);
|
|
7
7
|
var e = (d, t, s) => (O(d, t, "read from private field"), s ? s.call(d) : t.get(d)), T = (d, t, s) => t.has(d) ? Q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(d) : t.set(d, s), l = (d, t, s, i) => (O(d, t, "write to private field"), i ? i.call(d, s) : t.set(d, s), s), r = (d, t, s) => (O(d, t, "access private method"), s);
|
|
8
|
-
import { A as St, N as L, W as Z, z as At, D as tt, f as V, l as et, e as It, X as bt, L as Rt } from "./install-
|
|
9
|
-
import { R as wt } from "./vidstack-DqAw8m9J-
|
|
10
|
-
import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-
|
|
8
|
+
import { A as St, N as L, W as Z, z as At, D as tt, f as V, l as et, e as It, X as bt, L as Rt } from "./install-CVfWqwx_.js";
|
|
9
|
+
import { R as wt } from "./vidstack-DqAw8m9J-D1kVCcCr.js";
|
|
10
|
+
import { g as Mt, a as Dt, b as it, h as st, l as Nt, c as Pt } from "./vidstack-D2pY00kU-Bu00d2sw.js";
|
|
11
11
|
var g, _, at;
|
|
12
12
|
class _t {
|
|
13
13
|
constructor(t) {
|
|
@@ -5,9 +5,9 @@ var q = (n) => {
|
|
|
5
5
|
var ot = (n, t, i) => t in n ? rt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[t] = i;
|
|
6
6
|
var _ = (n, t, i) => ot(n, typeof t != "symbol" ? t + "" : t, i), R = (n, t, i) => t.has(n) || q("Cannot " + i);
|
|
7
7
|
var e = (n, t, i) => (R(n, t, "read from private field"), i ? i.call(n) : t.get(n)), f = (n, t, i) => t.has(n) ? q("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(n) : t.set(n, i), p = (n, t, i, s) => (R(n, t, "write to private field"), s ? s.call(n, i) : t.set(n, i), i), a = (n, t, i) => (R(n, t, "access private method"), i);
|
|
8
|
-
import { i as ht, b as C, d as at, f as O, Q as N, l as V, e as dt, D as x, h as ut, T as ct, j, L as $, k as lt, m as k, n as ft, o as pt, q as vt } from "./install-
|
|
9
|
-
import { VideoProvider as yt } from "./vidstack-video-
|
|
10
|
-
import { R as gt } from "./vidstack-DqAw8m9J-
|
|
8
|
+
import { i as ht, b as C, d as at, f as O, Q as N, l as V, e as dt, D as x, h as ut, T as ct, j, L as $, k as lt, m as k, n as ft, o as pt, q as vt } from "./install-CVfWqwx_.js";
|
|
9
|
+
import { VideoProvider as yt } from "./vidstack-video-BCaTiWs3.js";
|
|
10
|
+
import { R as gt } from "./vidstack-DqAw8m9J-D1kVCcCr.js";
|
|
11
11
|
const Lt = (n) => ut(n);
|
|
12
12
|
var T, h, o, D, b, r, E, M, U, F, Q, K, W, B, J, X, Y, z, G, Z, tt;
|
|
13
13
|
class St {
|
|
@@ -5,8 +5,8 @@ var b = (i) => {
|
|
|
5
5
|
var N = (i, t, e) => t in i ? $(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
6
6
|
var y = (i, t, e) => N(i, typeof t != "symbol" ? t + "" : t, e), E = (i, t, e) => t.has(i) || b("Cannot " + e);
|
|
7
7
|
var s = (i, t, e) => (E(i, t, "read from private field"), e ? e.call(i) : t.get(i)), r = (i, t, e) => t.has(i) ? b("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), c = (i, t, e, n) => (E(i, t, "write to private field"), n ? n.call(i, e) : t.set(i, e), e), p = (i, t, e) => (E(i, t, "access private method"), e);
|
|
8
|
-
import { s as U, w as V, x as A, y as j, z as C, l as q, D as z, E as F, T as Y, j as v } from "./install-
|
|
9
|
-
import { H as _, a as B } from "./vidstack-Bq6c3Bam-
|
|
8
|
+
import { s as U, w as V, x as A, y as j, z as C, l as q, D as z, E as F, T as Y, j as v } from "./install-CVfWqwx_.js";
|
|
9
|
+
import { H as _, a as B } from "./vidstack-Bq6c3Bam-D76pUOvQ.js";
|
|
10
10
|
var P, f, k, D, H;
|
|
11
11
|
class G {
|
|
12
12
|
constructor(t, e) {
|
|
@@ -5,9 +5,9 @@ var N = (r) => {
|
|
|
5
5
|
var de = (r, c, e) => c in r ? ue(r, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[c] = e;
|
|
6
6
|
var b = (r, c, e) => de(r, typeof c != "symbol" ? c + "" : c, e), S = (r, c, e) => c.has(r) || N("Cannot " + e);
|
|
7
7
|
var t = (r, c, e) => (S(r, c, "read from private field"), e ? e.call(r) : c.get(r)), f = (r, c, e) => c.has(r) ? N("Cannot add the same private member more than once") : c instanceof WeakSet ? c.add(r) : c.set(r, e), u = (r, c, e, i) => (S(r, c, "write to private field"), i ? i.call(r, e) : c.set(r, e), e), o = (r, c, e) => (S(r, c, "access private method"), e);
|
|
8
|
-
import { A as fe, M as U, N as C, d as pe, e as q, f as Q, b as ye, O as _, L as R, l as be, P as ke, T as ve, Q as W } from "./install-
|
|
9
|
-
import { R as me } from "./vidstack-DqAw8m9J-
|
|
10
|
-
import { E as we } from "./vidstack-DDXt6fpN-
|
|
8
|
+
import { A as fe, M as U, N as C, d as pe, e as q, f as Q, b as ye, O as _, L as R, l as be, P as ke, T as ve, Q as W } from "./install-CVfWqwx_.js";
|
|
9
|
+
import { R as me } from "./vidstack-DqAw8m9J-D1kVCcCr.js";
|
|
10
|
+
import { E as we } from "./vidstack-DDXt6fpN-BiIBX3zp.js";
|
|
11
11
|
import { resolveVimeoVideoId as Pe, getVimeoVideoInfo as Te } from "./vidstack-krOAtKMi-B4IZWKdc.js";
|
|
12
12
|
const Ce = [
|
|
13
13
|
"bufferend",
|
|
@@ -5,8 +5,8 @@ var B = (r) => {
|
|
|
5
5
|
var q = (r, n, e) => n in r ? A(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e;
|
|
6
6
|
var T = (r, n, e) => q(r, typeof n != "symbol" ? n + "" : n, e), M = (r, n, e) => n.has(r) || B("Cannot " + e);
|
|
7
7
|
var s = (r, n, e) => (M(r, n, "read from private field"), e ? e.call(r) : n.get(r)), p = (r, n, e) => n.has(r) ? B("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(r) : n.set(r, e), l = (r, n, e, t) => (M(r, n, "write to private field"), t ? t.call(r, e) : n.set(r, e), e), o = (r, n, e) => (M(r, n, "access private method"), e);
|
|
8
|
-
import { A as z, M as G, d as H, e as J, b as K, O as Q, N as C, R as W, v as $, S as X } from "./install-
|
|
9
|
-
import { E as Z } from "./vidstack-DDXt6fpN-
|
|
8
|
+
import { A as z, M as G, d as H, e as J, b as K, O as Q, N as C, R as W, v as $, S as X } from "./install-CVfWqwx_.js";
|
|
9
|
+
import { E as Z } from "./vidstack-DDXt6fpN-BiIBX3zp.js";
|
|
10
10
|
import { resolveYouTubeVideoId as ee } from "./vidstack-Dm1xEU9Q-qSXq3AI-.js";
|
|
11
11
|
const b = {
|
|
12
12
|
Ended: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.12.
|
|
3
|
+
"version": "25.12.46",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
:title="props.title"
|
|
9
9
|
:username="props.username"
|
|
10
10
|
:closable="props.closable"
|
|
11
|
+
:hide-expand="props.hideExpand"
|
|
11
12
|
@close="emit('close-player')"
|
|
12
13
|
/>
|
|
13
14
|
|
|
@@ -36,6 +37,7 @@ const props = defineProps<{
|
|
|
36
37
|
closable?: boolean;
|
|
37
38
|
hideHeader?: boolean
|
|
38
39
|
hideControlsPanel?: boolean
|
|
40
|
+
hideExpand?: boolean
|
|
39
41
|
}>();
|
|
40
42
|
|
|
41
43
|
const emit = defineEmits<{
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
variant="outlined"
|
|
7
7
|
color="secondary"
|
|
8
8
|
:loading="props.screenshotIsLoading"
|
|
9
|
-
:size="size"
|
|
9
|
+
:size="buttonSizeMap[size]"
|
|
10
10
|
:icon="screenShotIcon"
|
|
11
11
|
@click="makeScreenshot"
|
|
12
12
|
/>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
contains-icon
|
|
17
17
|
variant="outlined"
|
|
18
18
|
color="secondary"
|
|
19
|
-
:size="size"
|
|
19
|
+
:size="buttonSizeMap[size]"
|
|
20
20
|
:icon="recordIcon"
|
|
21
21
|
@click="emit('toggle-record')"
|
|
22
22
|
/>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
class="screen-sharing-control-panel__sharing-end"
|
|
27
27
|
color="error"
|
|
28
28
|
variant="outlined"
|
|
29
|
-
:size="size"
|
|
29
|
+
:size="buttonSizeMap[size]"
|
|
30
30
|
rounded
|
|
31
31
|
contains-icon
|
|
32
32
|
@click="closeSession"
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
import {computed, defineEmits, inject} from 'vue';
|
|
39
39
|
|
|
40
40
|
import {ControlsGroup} from '../../../../../components/wt-vidstack-player/components'
|
|
41
|
+
import {ComponentSize} from "../../../../../enums";
|
|
41
42
|
import {ScreenSharingSession, ScreenshotStatus} from "../../../../../modules/CallSession/types";
|
|
42
43
|
import {WtVidstackPlayerSizeProvider} from "../../../types/WtVidstackPlayerSizeProvider";
|
|
43
44
|
|
|
@@ -77,6 +78,12 @@ const closeSession = () => {
|
|
|
77
78
|
const makeScreenshot = () => {
|
|
78
79
|
emit('make-screenshot')
|
|
79
80
|
};
|
|
81
|
+
|
|
82
|
+
const buttonSizeMap = {
|
|
83
|
+
[ComponentSize.SM]: ComponentSize.SM,
|
|
84
|
+
[ComponentSize.MD]: ComponentSize.MD,
|
|
85
|
+
[ComponentSize.LG]: ComponentSize.MD,
|
|
86
|
+
}
|
|
80
87
|
</script>
|
|
81
88
|
|
|
82
89
|
<style scoped lang="scss">
|
|
@@ -2,56 +2,56 @@
|
|
|
2
2
|
<controls-group class="video-call-controls-panel">
|
|
3
3
|
<wt-button
|
|
4
4
|
v-if="shownActionsMap[VideoCallAction.Screenshot]"
|
|
5
|
-
rounded
|
|
6
|
-
contains-icon
|
|
7
|
-
variant="outlined"
|
|
8
|
-
color="secondary"
|
|
9
5
|
:loading="isScreenshotLoading"
|
|
10
|
-
:size="size"
|
|
6
|
+
:size="buttonSizeMap[size]"
|
|
11
7
|
:icon="screenShotIcon"
|
|
8
|
+
variant="outlined"
|
|
9
|
+
color="secondary"
|
|
10
|
+
rounded
|
|
11
|
+
contains-icon
|
|
12
12
|
@click="onScreenshotClick"
|
|
13
13
|
/>
|
|
14
14
|
|
|
15
15
|
<wt-button
|
|
16
16
|
v-if="shownActionsMap[VideoCallAction.Recordings]"
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
:size="buttonSizeMap[size]"
|
|
18
|
+
:icon="recordIcon"
|
|
19
19
|
variant="outlined"
|
|
20
20
|
color="secondary"
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
rounded
|
|
22
|
+
contains-icon
|
|
23
23
|
@click="emit(VideoCallAction.Recordings)"
|
|
24
24
|
/>
|
|
25
25
|
|
|
26
26
|
<wt-button
|
|
27
27
|
v-if="shownActionsMap[VideoCallAction.Mic]"
|
|
28
|
-
rounded
|
|
29
|
-
contains-icon
|
|
30
|
-
variant="outlined"
|
|
31
|
-
color="secondary"
|
|
32
28
|
:disabled="!props['mic:accessed']"
|
|
33
|
-
:size="size"
|
|
29
|
+
:size="buttonSizeMap[size]"
|
|
34
30
|
:icon="microphoneIcon"
|
|
31
|
+
variant="outlined"
|
|
32
|
+
color="secondary"
|
|
33
|
+
rounded
|
|
34
|
+
contains-icon
|
|
35
35
|
@click="emit(VideoCallAction.Mic)"
|
|
36
36
|
/>
|
|
37
37
|
|
|
38
38
|
<wt-button
|
|
39
39
|
v-if="shownActionsMap[VideoCallAction.Video]"
|
|
40
|
-
rounded
|
|
41
|
-
contains-icon
|
|
42
|
-
variant="outlined"
|
|
43
|
-
color="secondary"
|
|
44
40
|
:disabled="!props['video:accessed']"
|
|
45
|
-
:size="size"
|
|
41
|
+
:size="buttonSizeMap[size]"
|
|
46
42
|
:icon="videoCamIcon"
|
|
43
|
+
variant="outlined"
|
|
44
|
+
color="secondary"
|
|
45
|
+
rounded
|
|
46
|
+
contains-icon
|
|
47
47
|
@click="emit(VideoCallAction.Video)"
|
|
48
48
|
/>
|
|
49
49
|
|
|
50
50
|
<wt-button
|
|
51
51
|
v-if="shownActionsMap[VideoCallAction.Settings]"
|
|
52
|
-
:size="size"
|
|
52
|
+
:size="buttonSizeMap[size]"
|
|
53
|
+
:variant="props['actions:settings:pressed'] ? 'active' : 'outlined'"
|
|
53
54
|
icon="settings"
|
|
54
|
-
variant="outlined"
|
|
55
55
|
color="secondary"
|
|
56
56
|
rounded
|
|
57
57
|
contains-icon
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
|
|
61
61
|
<wt-button
|
|
62
62
|
v-if="shownActionsMap[VideoCallAction.Chat]"
|
|
63
|
-
:size="size"
|
|
63
|
+
:size="buttonSizeMap[size]"
|
|
64
|
+
:variant="props['actions:chat:pressed'] ? 'active' : 'outlined'"
|
|
64
65
|
icon="chat"
|
|
65
|
-
variant="outlined"
|
|
66
66
|
color="secondary"
|
|
67
67
|
rounded
|
|
68
68
|
contains-icon
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
<wt-button
|
|
73
73
|
v-if="shownActionsMap[VideoCallAction.Hangup]"
|
|
74
|
-
:size="size"
|
|
74
|
+
:size="buttonSizeMap[size]"
|
|
75
75
|
icon="call-end--filled"
|
|
76
76
|
color="error"
|
|
77
77
|
rounded
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
import {computed, inject, ref} from 'vue';
|
|
86
86
|
|
|
87
87
|
import {ControlsGroup} from '../../../../../components/wt-vidstack-player/components'
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
88
|
+
import {ComponentSize} from '../../../../../enums';
|
|
89
|
+
import {VideoCallAction} from '../../../../../modules/CallSession/modules/VideoCall/enums/VideoCallAction.enum';
|
|
90
90
|
import {ScreenshotStatus} from '../../../../../modules/CallSession/types';
|
|
91
|
-
import {
|
|
91
|
+
import {ResultCallbacks} from '../../../../../types';
|
|
92
92
|
|
|
93
93
|
const props = defineProps<{
|
|
94
94
|
'actions': VideoCallAction[];
|
|
@@ -100,6 +100,9 @@ const props = defineProps<{
|
|
|
100
100
|
'screenshot:status': ScreenshotStatus | null;
|
|
101
101
|
'screenshot:loading': boolean;
|
|
102
102
|
'recordings': boolean;
|
|
103
|
+
|
|
104
|
+
'actions:settings:pressed': boolean;
|
|
105
|
+
'actions:chat:pressed': boolean;
|
|
103
106
|
}>();
|
|
104
107
|
|
|
105
108
|
const emit = defineEmits<{
|
|
@@ -112,7 +115,7 @@ const emit = defineEmits<{
|
|
|
112
115
|
(e: typeof VideoCallAction.Hangup, payload?: unknown, options?: ResultCallbacks): void;
|
|
113
116
|
}>();
|
|
114
117
|
|
|
115
|
-
const {
|
|
118
|
+
const {size} = inject('size') as { size: ComponentSize };
|
|
116
119
|
|
|
117
120
|
const shownActionsMap = computed(() => {
|
|
118
121
|
return props.actions.reduce<Record<VideoCallAction, boolean>>((acc, action) => {
|
|
@@ -168,6 +171,12 @@ const onScreenshotClick = () => {
|
|
|
168
171
|
},
|
|
169
172
|
});
|
|
170
173
|
};
|
|
174
|
+
|
|
175
|
+
const buttonSizeMap = {
|
|
176
|
+
[ComponentSize.SM]: ComponentSize.SM,
|
|
177
|
+
[ComponentSize.MD]: ComponentSize.MD,
|
|
178
|
+
[ComponentSize.LG]: ComponentSize.MD,
|
|
179
|
+
}
|
|
171
180
|
</script>
|
|
172
181
|
|
|
173
182
|
<style scoped lang="scss">
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
@toggle="handleFullscreen"
|
|
22
22
|
/>
|
|
23
23
|
<toggle-button
|
|
24
|
+
v-if="!props.hideExpand"
|
|
24
25
|
primary-icon="expand"
|
|
25
26
|
secondary-icon="collapse"
|
|
26
27
|
color="on-dark"
|
|
@@ -52,6 +53,7 @@ const props = defineProps<{
|
|
|
52
53
|
title?: string;
|
|
53
54
|
username?: string;
|
|
54
55
|
closable?: boolean;
|
|
56
|
+
hideExpand?: boolean
|
|
55
57
|
}>();
|
|
56
58
|
|
|
57
59
|
const emit = defineEmits<{
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
:class="[
|
|
5
5
|
`wt-vidstack-player--${size}`,
|
|
6
6
|
fullscreen && `wt-vidstack-player--fullscreen`,
|
|
7
|
+
stretch && `wt-vidstack-player--stretch`,
|
|
7
8
|
props.static && 'wt-vidstack-player--static',
|
|
8
9
|
props.hideBackground && 'wt-vidstack-player--hide-background'
|
|
9
10
|
]"
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
:autoplay="props.autoplay"
|
|
31
32
|
:title="props.title"
|
|
32
33
|
:username="props.username"
|
|
34
|
+
:hide-expand="props.hideExpand"
|
|
33
35
|
@close-player="emit('close')"
|
|
34
36
|
>
|
|
35
37
|
<template #controls-panel>
|
|
@@ -69,6 +71,8 @@ interface Props {
|
|
|
69
71
|
hideHeader?: boolean
|
|
70
72
|
hideControlsPanel?: boolean
|
|
71
73
|
hideBackground?: boolean
|
|
74
|
+
hideExpand?: boolean
|
|
75
|
+
stretch?: boolean
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -137,6 +141,7 @@ const normalizedSrc = computed(() => {
|
|
|
137
141
|
max-width: 100%;
|
|
138
142
|
max-height: 100%;
|
|
139
143
|
transition: var(--transition);
|
|
144
|
+
box-shadow: var(--elevation-10);
|
|
140
145
|
|
|
141
146
|
&__player {
|
|
142
147
|
padding: 0;
|
|
@@ -152,7 +157,6 @@ const normalizedSrc = computed(() => {
|
|
|
152
157
|
z-index: 100;
|
|
153
158
|
border-radius: var(--p-player-wrapper-sm-border-radius);
|
|
154
159
|
overflow: hidden;
|
|
155
|
-
box-shadow: var(--elevation-10);
|
|
156
160
|
height: var(--p-player-wrapper-sm-height);
|
|
157
161
|
|
|
158
162
|
.wt-vidstack-player__provider {
|
|
@@ -165,18 +169,20 @@ const normalizedSrc = computed(() => {
|
|
|
165
169
|
&--md {
|
|
166
170
|
border-radius: var(--p-player-wrapper-md-border-radius);
|
|
167
171
|
overflow: hidden;
|
|
168
|
-
//max-width: var(--p-player-wrapper-md-width);
|
|
169
|
-
//max-height: var(--p-player-wrapper-md-height);
|
|
170
172
|
flex: 0 0 auto;
|
|
171
173
|
max-width: 100%;
|
|
172
174
|
max-height: 100%;
|
|
173
175
|
|
|
176
|
+
&.wt-vidstack-player--static {
|
|
177
|
+
max-width: var(--p-player-wrapper-md-width);
|
|
178
|
+
max-height: var(--p-player-wrapper-md-height);
|
|
179
|
+
}
|
|
180
|
+
|
|
174
181
|
.wt-vidstack-player__player {
|
|
175
182
|
width: 100%;
|
|
176
183
|
height: 100%;
|
|
177
184
|
max-width: var(--p-player-wrapper-md-width);
|
|
178
185
|
max-height: var(--p-player-wrapper-md-height);
|
|
179
|
-
box-shadow: var(--elevation-10);
|
|
180
186
|
}
|
|
181
187
|
|
|
182
188
|
&:not(.wt-vidstack-player--static) {
|
|
@@ -232,6 +238,7 @@ const normalizedSrc = computed(() => {
|
|
|
232
238
|
right: unset;
|
|
233
239
|
bottom: unset;
|
|
234
240
|
z-index: 1;
|
|
241
|
+
flex: 0 0 auto;
|
|
235
242
|
|
|
236
243
|
.wt-vidstack-player__provider {
|
|
237
244
|
padding: 0;
|
|
@@ -244,6 +251,13 @@ const normalizedSrc = computed(() => {
|
|
|
244
251
|
}
|
|
245
252
|
}
|
|
246
253
|
|
|
254
|
+
&--stretch {
|
|
255
|
+
width: 100%;
|
|
256
|
+
height: 100%;
|
|
257
|
+
max-width: 100%;
|
|
258
|
+
max-height: 100%;
|
|
259
|
+
}
|
|
260
|
+
|
|
247
261
|
&--hide-background {
|
|
248
262
|
&.wt-vidstack-player {
|
|
249
263
|
&--md {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<template #content="{ size: innerSize }">
|
|
16
16
|
<slot name="content" :size="innerSize" />
|
|
17
17
|
|
|
18
|
-
<slot name="overlay" :size="innerSize">
|
|
18
|
+
<slot v-if="!mainStream" name="overlay" :size="innerSize">
|
|
19
19
|
<div class="video-call-overlay"></div>
|
|
20
20
|
</slot>
|
|
21
21
|
|
|
@@ -74,6 +74,8 @@
|
|
|
74
74
|
:screenshot:loading="props['screenshot:loading']"
|
|
75
75
|
:recordings="props.recordings"
|
|
76
76
|
:actions="props.actions"
|
|
77
|
+
:actions:settings:pressed="props['actions:settings:pressed']"
|
|
78
|
+
:actions:chat:pressed="props['actions:chat:pressed']"
|
|
77
79
|
@[VideoCallAction.Screenshot]="([payload, options] = []) => emit(`action:${VideoCallAction.Screenshot}`, payload, options)"
|
|
78
80
|
@[VideoCallAction.Recordings]="([payload, options] = []) => emit(`action:${VideoCallAction.Recordings}`, payload, options)"
|
|
79
81
|
@[VideoCallAction.Mic]="([payload, options] = []) => emit(`action:${VideoCallAction.Mic}`, payload, options)"
|
|
@@ -127,7 +129,10 @@ const props = withDefaults(defineProps<{
|
|
|
127
129
|
resizable?: boolean;
|
|
128
130
|
|
|
129
131
|
actions: VideoCallAction[];
|
|
130
|
-
username
|
|
132
|
+
username?: string;
|
|
133
|
+
|
|
134
|
+
'actions:settings:pressed'?: boolean;
|
|
135
|
+
'actions:chat:pressed'?: boolean;
|
|
131
136
|
}>(), {
|
|
132
137
|
position: 'right-bottom',
|
|
133
138
|
});
|
|
@@ -212,7 +217,7 @@ const senderVideoMutedIconSizes = {
|
|
|
212
217
|
position: absolute;
|
|
213
218
|
left: 0;
|
|
214
219
|
top: 0;
|
|
215
|
-
z-index:
|
|
220
|
+
z-index: -1;
|
|
216
221
|
background: var(--p-player-wrapper-background);
|
|
217
222
|
}
|
|
218
223
|
|
|
@@ -10,6 +10,8 @@ type __VLS_Props = {
|
|
|
10
10
|
'screenshot:status': ScreenshotStatus | null;
|
|
11
11
|
'screenshot:loading': boolean;
|
|
12
12
|
'recordings': boolean;
|
|
13
|
+
'actions:settings:pressed': boolean;
|
|
14
|
+
'actions:chat:pressed': boolean;
|
|
13
15
|
};
|
|
14
16
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
17
|
chat: (payload?: unknown, options?: ResultCallbacks) => any;
|
|
@@ -2,6 +2,7 @@ type __VLS_Props = {
|
|
|
2
2
|
title?: string;
|
|
3
3
|
username?: string;
|
|
4
4
|
closable?: boolean;
|
|
5
|
+
hideExpand?: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
8
|
close: () => any;
|
|
@@ -20,7 +20,9 @@ type __VLS_Props = {
|
|
|
20
20
|
hideHeader?: boolean;
|
|
21
21
|
resizable?: boolean;
|
|
22
22
|
actions: VideoCallAction[];
|
|
23
|
-
username
|
|
23
|
+
username?: string;
|
|
24
|
+
'actions:settings:pressed'?: boolean;
|
|
25
|
+
'actions:chat:pressed'?: boolean;
|
|
24
26
|
};
|
|
25
27
|
declare var __VLS_10: {
|
|
26
28
|
size: ComponentSize;
|