@stinkycomputing/web-live-player 0.1.5 → 0.1.6
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/web-live-player.mjs
CHANGED
|
@@ -229,7 +229,7 @@ class WebCodecsDecoder {
|
|
|
229
229
|
* Decode a binary packet
|
|
230
230
|
*/
|
|
231
231
|
decodeBinary(o) {
|
|
232
|
-
var e, n;
|
|
232
|
+
var e, n, s, a, d, u;
|
|
233
233
|
if (this.flushing) {
|
|
234
234
|
this.logger.warn("Received packet while flushing");
|
|
235
235
|
return;
|
|
@@ -240,15 +240,15 @@ class WebCodecsDecoder {
|
|
|
240
240
|
this.onQueueOverflow && this.onQueueOverflow(this.decoder.decodeQueueSize);
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
|
-
const l = (e = o.header.codecData) != null &&
|
|
243
|
+
const l = (n = (e = o.header.media) == null ? void 0 : e.codecData) != null && n.timebaseDen && ((a = (s = o.header.media) == null ? void 0 : s.codecData) != null && a.timebaseNum) ? { num: o.header.media.codecData.timebaseNum, den: o.header.media.codecData.timebaseDen } : { num: 1, den: 1e6 }, i = { num: 1, den: 1e6 }, r = rescaleTime(((d = o.header.media) == null ? void 0 : d.pts) ?? 0, l, i), t = new EncodedVideoChunk({
|
|
244
244
|
timestamp: r,
|
|
245
|
-
type: o.header.keyframe ? "key" : "delta",
|
|
245
|
+
type: (u = o.header.media) != null && u.keyframe ? "key" : "delta",
|
|
246
246
|
data: o.payload ?? new Uint8Array(0)
|
|
247
247
|
});
|
|
248
248
|
try {
|
|
249
249
|
this.chunksSentToDecoder++, this.decoder.decode(t);
|
|
250
|
-
} catch (
|
|
251
|
-
this.logger.error(`Decode error: ${
|
|
250
|
+
} catch (F) {
|
|
251
|
+
this.logger.error(`Decode error: ${F}`);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
@@ -375,10 +375,10 @@ class WasmDecoder {
|
|
|
375
375
|
* Decode a binary packet (same interface as WebCodecsDecoder)
|
|
376
376
|
*/
|
|
377
377
|
decodeBinary(o) {
|
|
378
|
-
var e, n;
|
|
378
|
+
var e, n, s, a, d;
|
|
379
379
|
if (!this.worker || !this.configured || !o.header || !o.payload)
|
|
380
380
|
return;
|
|
381
|
-
const l = new Uint8Array(o.payload), i = (e = o.header.codecData) != null &&
|
|
381
|
+
const l = new Uint8Array(o.payload), i = (n = (e = o.header.media) == null ? void 0 : e.codecData) != null && n.timebaseDen && ((a = (s = o.header.media) == null ? void 0 : s.codecData) != null && a.timebaseNum) ? { num: o.header.media.codecData.timebaseNum, den: o.header.media.codecData.timebaseDen } : { num: 1, den: 1e6 }, r = { num: 1, den: 1e6 }, t = rescaleTime(((d = o.header.media) == null ? void 0 : d.pts) ?? 0, i, r);
|
|
382
382
|
this.pendingFrames.push(l), this.pendingTimestamps.push(t), this.decodeNext();
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
@@ -404,21 +404,21 @@ class WasmDecoder {
|
|
|
404
404
|
* Handle decoded picture from worker
|
|
405
405
|
*/
|
|
406
406
|
handlePictureReady(o) {
|
|
407
|
-
var
|
|
407
|
+
var E;
|
|
408
408
|
this._queueSize--;
|
|
409
|
-
const { width: l, height: i, data: r } = o, t = new Uint8Array(r), e = l, n = e * i, s = n >> 2, a = t.subarray(0, n), d = t.subarray(n, n + s), u = t.subarray(n + s, n + 2 * s), F = i >> 1,
|
|
409
|
+
const { width: l, height: i, data: r } = o, t = new Uint8Array(r), e = l, n = e * i, s = n >> 2, a = t.subarray(0, n), d = t.subarray(n, n + s), u = t.subarray(n + s, n + 2 * s), F = i >> 1, R = e >> 1, S = this.pendingTimestamps.shift() ?? 0, y = {
|
|
410
410
|
y: a,
|
|
411
411
|
u: d,
|
|
412
412
|
v: u,
|
|
413
413
|
width: l,
|
|
414
414
|
height: i,
|
|
415
|
-
chromaStride:
|
|
415
|
+
chromaStride: R,
|
|
416
416
|
chromaHeight: F,
|
|
417
|
-
timestamp:
|
|
417
|
+
timestamp: S,
|
|
418
418
|
close: () => {
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
|
-
(
|
|
421
|
+
(E = this.onFrameDecoded) == null || E.call(this, y);
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
424
|
* Flush the decoder (clear pending frames)
|
|
@@ -681,43 +681,43 @@ var base64$1 = {};
|
|
|
681
681
|
for (var l = new Array(64), i = new Array(123), r = 0; r < 64; )
|
|
682
682
|
i[l[r] = r < 26 ? r + 65 : r < 52 ? r + 71 : r < 62 ? r - 4 : r - 59 | 43] = r++;
|
|
683
683
|
o.encode = function(n, s, a) {
|
|
684
|
-
for (var d = null, u = [], F = 0,
|
|
684
|
+
for (var d = null, u = [], F = 0, R = 0, S; s < a; ) {
|
|
685
685
|
var y = n[s++];
|
|
686
|
-
switch (
|
|
686
|
+
switch (R) {
|
|
687
687
|
case 0:
|
|
688
|
-
u[F++] = l[y >> 2],
|
|
688
|
+
u[F++] = l[y >> 2], S = (y & 3) << 4, R = 1;
|
|
689
689
|
break;
|
|
690
690
|
case 1:
|
|
691
|
-
u[F++] = l[
|
|
691
|
+
u[F++] = l[S | y >> 4], S = (y & 15) << 2, R = 2;
|
|
692
692
|
break;
|
|
693
693
|
case 2:
|
|
694
|
-
u[F++] = l[
|
|
694
|
+
u[F++] = l[S | y >> 6], u[F++] = l[y & 63], R = 0;
|
|
695
695
|
break;
|
|
696
696
|
}
|
|
697
697
|
F > 8191 && ((d || (d = [])).push(String.fromCharCode.apply(String, u)), F = 0);
|
|
698
698
|
}
|
|
699
|
-
return
|
|
699
|
+
return R && (u[F++] = l[S], u[F++] = 61, R === 1 && (u[F++] = 61)), d ? (F && d.push(String.fromCharCode.apply(String, u.slice(0, F))), d.join("")) : String.fromCharCode.apply(String, u.slice(0, F));
|
|
700
700
|
};
|
|
701
701
|
var t = "invalid encoding";
|
|
702
702
|
o.decode = function(n, s, a) {
|
|
703
|
-
for (var d = a, u = 0, F,
|
|
704
|
-
var
|
|
705
|
-
if (
|
|
703
|
+
for (var d = a, u = 0, F, R = 0; R < n.length; ) {
|
|
704
|
+
var S = n.charCodeAt(R++);
|
|
705
|
+
if (S === 61 && u > 1)
|
|
706
706
|
break;
|
|
707
|
-
if ((
|
|
707
|
+
if ((S = i[S]) === void 0)
|
|
708
708
|
throw Error(t);
|
|
709
709
|
switch (u) {
|
|
710
710
|
case 0:
|
|
711
|
-
F =
|
|
711
|
+
F = S, u = 1;
|
|
712
712
|
break;
|
|
713
713
|
case 1:
|
|
714
|
-
s[a++] = F << 2 | (
|
|
714
|
+
s[a++] = F << 2 | (S & 48) >> 4, F = S, u = 2;
|
|
715
715
|
break;
|
|
716
716
|
case 2:
|
|
717
|
-
s[a++] = (F & 15) << 4 | (
|
|
717
|
+
s[a++] = (F & 15) << 4 | (S & 60) >> 2, F = S, u = 3;
|
|
718
718
|
break;
|
|
719
719
|
case 3:
|
|
720
|
-
s[a++] = (F & 3) << 6 |
|
|
720
|
+
s[a++] = (F & 3) << 6 | S, u = 0;
|
|
721
721
|
break;
|
|
722
722
|
}
|
|
723
723
|
}
|
|
@@ -1540,8 +1540,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
1540
1540
|
U
|
|
1541
1541
|
)), require_events = __commonJS({
|
|
1542
1542
|
"node_modules/events/events.js"(U, o) {
|
|
1543
|
-
var l = typeof Reflect == "object" ? Reflect : null, i = l && typeof l.apply == "function" ? l.apply : function(p, f,
|
|
1544
|
-
return Function.prototype.apply.call(p, f,
|
|
1543
|
+
var l = typeof Reflect == "object" ? Reflect : null, i = l && typeof l.apply == "function" ? l.apply : function(p, f, h) {
|
|
1544
|
+
return Function.prototype.apply.call(p, f, h);
|
|
1545
1545
|
}, r;
|
|
1546
1546
|
l && typeof l.ownKeys == "function" ? r = l.ownKeys : Object.getOwnPropertySymbols ? r = function(p) {
|
|
1547
1547
|
return Object.getOwnPropertyNames(p).concat(Object.getOwnPropertySymbols(p));
|
|
@@ -1557,7 +1557,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
1557
1557
|
function n() {
|
|
1558
1558
|
n.init.call(this);
|
|
1559
1559
|
}
|
|
1560
|
-
o.exports = n, o.exports.once =
|
|
1560
|
+
o.exports = n, o.exports.once = T, n.EventEmitter = n, n.prototype._events = void 0, n.prototype._eventsCount = 0, n.prototype._maxListeners = void 0;
|
|
1561
1561
|
var s = 10;
|
|
1562
1562
|
function a(Q) {
|
|
1563
1563
|
if (typeof Q != "function")
|
|
@@ -1586,42 +1586,42 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
1586
1586
|
n.prototype.getMaxListeners = function() {
|
|
1587
1587
|
return d(this);
|
|
1588
1588
|
}, n.prototype.emit = function(p) {
|
|
1589
|
-
for (var f = [],
|
|
1590
|
-
f.push(arguments[
|
|
1591
|
-
var
|
|
1592
|
-
if (
|
|
1593
|
-
|
|
1594
|
-
else if (!
|
|
1589
|
+
for (var f = [], h = 1; h < arguments.length; h++)
|
|
1590
|
+
f.push(arguments[h]);
|
|
1591
|
+
var B = p === "error", J = this._events;
|
|
1592
|
+
if (J !== void 0)
|
|
1593
|
+
B = B && J.error === void 0;
|
|
1594
|
+
else if (!B)
|
|
1595
1595
|
return !1;
|
|
1596
|
-
if (
|
|
1597
|
-
var
|
|
1598
|
-
if (f.length > 0 && (
|
|
1599
|
-
throw
|
|
1600
|
-
var v = new Error("Unhandled error." + (
|
|
1601
|
-
throw v.context =
|
|
1596
|
+
if (B) {
|
|
1597
|
+
var V;
|
|
1598
|
+
if (f.length > 0 && (V = f[0]), V instanceof Error)
|
|
1599
|
+
throw V;
|
|
1600
|
+
var v = new Error("Unhandled error." + (V ? " (" + V.message + ")" : ""));
|
|
1601
|
+
throw v.context = V, v;
|
|
1602
1602
|
}
|
|
1603
|
-
var
|
|
1604
|
-
if (
|
|
1603
|
+
var b = J[p];
|
|
1604
|
+
if (b === void 0)
|
|
1605
1605
|
return !1;
|
|
1606
|
-
if (typeof
|
|
1607
|
-
i(
|
|
1606
|
+
if (typeof b == "function")
|
|
1607
|
+
i(b, this, f);
|
|
1608
1608
|
else
|
|
1609
|
-
for (var
|
|
1610
|
-
i(
|
|
1609
|
+
for (var g = b.length, Z = E(b, g), h = 0; h < g; ++h)
|
|
1610
|
+
i(Z[h], this, f);
|
|
1611
1611
|
return !0;
|
|
1612
1612
|
};
|
|
1613
|
-
function u(Q, p, f,
|
|
1614
|
-
var
|
|
1615
|
-
if (a(f),
|
|
1613
|
+
function u(Q, p, f, h) {
|
|
1614
|
+
var B, J, V;
|
|
1615
|
+
if (a(f), J = Q._events, J === void 0 ? (J = Q._events = /* @__PURE__ */ Object.create(null), Q._eventsCount = 0) : (J.newListener !== void 0 && (Q.emit(
|
|
1616
1616
|
"newListener",
|
|
1617
1617
|
p,
|
|
1618
1618
|
f.listener ? f.listener : f
|
|
1619
|
-
),
|
|
1620
|
-
|
|
1621
|
-
else if (typeof
|
|
1622
|
-
|
|
1623
|
-
var v = new Error("Possible EventEmitter memory leak detected. " +
|
|
1624
|
-
v.name = "MaxListenersExceededWarning", v.emitter = Q, v.type = p, v.count =
|
|
1619
|
+
), J = Q._events), V = J[p]), V === void 0)
|
|
1620
|
+
V = J[p] = f, ++Q._eventsCount;
|
|
1621
|
+
else if (typeof V == "function" ? V = J[p] = h ? [f, V] : [V, f] : h ? V.unshift(f) : V.push(f), B = d(Q), B > 0 && V.length > B && !V.warned) {
|
|
1622
|
+
V.warned = !0;
|
|
1623
|
+
var v = new Error("Possible EventEmitter memory leak detected. " + V.length + " " + String(p) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1624
|
+
v.name = "MaxListenersExceededWarning", v.emitter = Q, v.type = p, v.count = V.length, t(v);
|
|
1625
1625
|
}
|
|
1626
1626
|
return Q;
|
|
1627
1627
|
}
|
|
@@ -1634,63 +1634,63 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
1634
1634
|
if (!this.fired)
|
|
1635
1635
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1638
|
-
var
|
|
1639
|
-
return
|
|
1637
|
+
function R(Q, p, f) {
|
|
1638
|
+
var h = { fired: !1, wrapFn: void 0, target: Q, type: p, listener: f }, B = F.bind(h);
|
|
1639
|
+
return B.listener = f, h.wrapFn = B, B;
|
|
1640
1640
|
}
|
|
1641
1641
|
n.prototype.once = function(p, f) {
|
|
1642
|
-
return a(f), this.on(p,
|
|
1642
|
+
return a(f), this.on(p, R(this, p, f)), this;
|
|
1643
1643
|
}, n.prototype.prependOnceListener = function(p, f) {
|
|
1644
|
-
return a(f), this.prependListener(p,
|
|
1644
|
+
return a(f), this.prependListener(p, R(this, p, f)), this;
|
|
1645
1645
|
}, n.prototype.removeListener = function(p, f) {
|
|
1646
|
-
var
|
|
1647
|
-
if (a(f),
|
|
1646
|
+
var h, B, J, V, v;
|
|
1647
|
+
if (a(f), B = this._events, B === void 0)
|
|
1648
1648
|
return this;
|
|
1649
|
-
if (
|
|
1649
|
+
if (h = B[p], h === void 0)
|
|
1650
1650
|
return this;
|
|
1651
|
-
if (
|
|
1652
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete
|
|
1653
|
-
else if (typeof
|
|
1654
|
-
for (
|
|
1655
|
-
if (
|
|
1656
|
-
v =
|
|
1651
|
+
if (h === f || h.listener === f)
|
|
1652
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete B[p], B.removeListener && this.emit("removeListener", p, h.listener || f));
|
|
1653
|
+
else if (typeof h != "function") {
|
|
1654
|
+
for (J = -1, V = h.length - 1; V >= 0; V--)
|
|
1655
|
+
if (h[V] === f || h[V].listener === f) {
|
|
1656
|
+
v = h[V].listener, J = V;
|
|
1657
1657
|
break;
|
|
1658
1658
|
}
|
|
1659
|
-
if (
|
|
1659
|
+
if (J < 0)
|
|
1660
1660
|
return this;
|
|
1661
|
-
|
|
1661
|
+
J === 0 ? h.shift() : W(h, J), h.length === 1 && (B[p] = h[0]), B.removeListener !== void 0 && this.emit("removeListener", p, v || f);
|
|
1662
1662
|
}
|
|
1663
1663
|
return this;
|
|
1664
1664
|
}, n.prototype.off = n.prototype.removeListener, n.prototype.removeAllListeners = function(p) {
|
|
1665
|
-
var f,
|
|
1666
|
-
if (
|
|
1665
|
+
var f, h, B;
|
|
1666
|
+
if (h = this._events, h === void 0)
|
|
1667
1667
|
return this;
|
|
1668
|
-
if (
|
|
1669
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) :
|
|
1668
|
+
if (h.removeListener === void 0)
|
|
1669
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : h[p] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete h[p]), this;
|
|
1670
1670
|
if (arguments.length === 0) {
|
|
1671
|
-
var
|
|
1672
|
-
for (
|
|
1673
|
-
|
|
1671
|
+
var J = Object.keys(h), V;
|
|
1672
|
+
for (B = 0; B < J.length; ++B)
|
|
1673
|
+
V = J[B], V !== "removeListener" && this.removeAllListeners(V);
|
|
1674
1674
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
1675
1675
|
}
|
|
1676
|
-
if (f =
|
|
1676
|
+
if (f = h[p], typeof f == "function")
|
|
1677
1677
|
this.removeListener(p, f);
|
|
1678
1678
|
else if (f !== void 0)
|
|
1679
|
-
for (
|
|
1680
|
-
this.removeListener(p, f[
|
|
1679
|
+
for (B = f.length - 1; B >= 0; B--)
|
|
1680
|
+
this.removeListener(p, f[B]);
|
|
1681
1681
|
return this;
|
|
1682
1682
|
};
|
|
1683
|
-
function
|
|
1684
|
-
var
|
|
1685
|
-
if (
|
|
1683
|
+
function S(Q, p, f) {
|
|
1684
|
+
var h = Q._events;
|
|
1685
|
+
if (h === void 0)
|
|
1686
1686
|
return [];
|
|
1687
|
-
var
|
|
1688
|
-
return
|
|
1687
|
+
var B = h[p];
|
|
1688
|
+
return B === void 0 ? [] : typeof B == "function" ? f ? [B.listener || B] : [B] : f ? N(B) : E(B, B.length);
|
|
1689
1689
|
}
|
|
1690
1690
|
n.prototype.listeners = function(p) {
|
|
1691
|
-
return
|
|
1691
|
+
return S(this, p, !0);
|
|
1692
1692
|
}, n.prototype.rawListeners = function(p) {
|
|
1693
|
-
return
|
|
1693
|
+
return S(this, p, !1);
|
|
1694
1694
|
}, n.listenerCount = function(Q, p) {
|
|
1695
1695
|
return typeof Q.listenerCount == "function" ? Q.listenerCount(p) : y.call(Q, p);
|
|
1696
1696
|
}, n.prototype.listenerCount = y;
|
|
@@ -1708,9 +1708,9 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
1708
1708
|
n.prototype.eventNames = function() {
|
|
1709
1709
|
return this._eventsCount > 0 ? r(this._events) : [];
|
|
1710
1710
|
};
|
|
1711
|
-
function
|
|
1712
|
-
for (var f = new Array(p),
|
|
1713
|
-
f[
|
|
1711
|
+
function E(Q, p) {
|
|
1712
|
+
for (var f = new Array(p), h = 0; h < p; ++h)
|
|
1713
|
+
f[h] = Q[h];
|
|
1714
1714
|
return f;
|
|
1715
1715
|
}
|
|
1716
1716
|
function W(Q, p) {
|
|
@@ -1718,31 +1718,31 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
1718
1718
|
Q[p] = Q[p + 1];
|
|
1719
1719
|
Q.pop();
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function N(Q) {
|
|
1722
1722
|
for (var p = new Array(Q.length), f = 0; f < p.length; ++f)
|
|
1723
1723
|
p[f] = Q[f].listener || Q[f];
|
|
1724
1724
|
return p;
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1727
|
-
return new Promise(function(f,
|
|
1728
|
-
function
|
|
1729
|
-
Q.removeListener(p,
|
|
1726
|
+
function T(Q, p) {
|
|
1727
|
+
return new Promise(function(f, h) {
|
|
1728
|
+
function B(V) {
|
|
1729
|
+
Q.removeListener(p, J), h(V);
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1732
|
-
typeof Q.removeListener == "function" && Q.removeListener("error",
|
|
1731
|
+
function J() {
|
|
1732
|
+
typeof Q.removeListener == "function" && Q.removeListener("error", B), f([].slice.call(arguments));
|
|
1733
1733
|
}
|
|
1734
|
-
|
|
1734
|
+
m(Q, p, J, { once: !0 }), p !== "error" && C(Q, B, { once: !0 });
|
|
1735
1735
|
});
|
|
1736
1736
|
}
|
|
1737
1737
|
function C(Q, p, f) {
|
|
1738
|
-
typeof Q.on == "function" &&
|
|
1738
|
+
typeof Q.on == "function" && m(Q, "error", p, f);
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function m(Q, p, f, h) {
|
|
1741
1741
|
if (typeof Q.on == "function")
|
|
1742
|
-
|
|
1742
|
+
h.once ? Q.once(p, f) : Q.on(p, f);
|
|
1743
1743
|
else if (typeof Q.addEventListener == "function")
|
|
1744
|
-
Q.addEventListener(p, function
|
|
1745
|
-
|
|
1744
|
+
Q.addEventListener(p, function B(J) {
|
|
1745
|
+
h.once && Q.removeEventListener(p, B), f(J);
|
|
1746
1746
|
});
|
|
1747
1747
|
else
|
|
1748
1748
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof Q);
|
|
@@ -3860,9 +3860,9 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
3860
3860
|
}(), l.VideoFormat = function() {
|
|
3861
3861
|
const i = {}, r = Object.create(i);
|
|
3862
3862
|
return r[i[0] = "VIDEO_FORMAT_UNSPECIFIED"] = 0, r[i[1] = "VIDEO_FORMAT_1080_50I"] = 1, r[i[2] = "VIDEO_FORMAT_1080_50P"] = 2, r[i[3] = "VIDEO_FORMAT_1080_60I"] = 3, r[i[4] = "VIDEO_FORMAT_1080_60P"] = 4, r;
|
|
3863
|
-
}(), l.
|
|
3863
|
+
}(), l.CodecType = function() {
|
|
3864
3864
|
const i = {}, r = Object.create(i);
|
|
3865
|
-
return r[i[0] = "
|
|
3865
|
+
return r[i[0] = "CODEC_TYPE_UNSPECIFIED"] = 0, r[i[1] = "CODEC_TYPE_VIDEO_VP8"] = 1, r[i[2] = "CODEC_TYPE_VIDEO_VP9"] = 2, r[i[3] = "CODEC_TYPE_VIDEO_AVC"] = 3, r[i[4] = "CODEC_TYPE_VIDEO_HEVC"] = 4, r[i[5] = "CODEC_TYPE_VIDEO_AV1"] = 5, r[i[6] = "CODEC_TYPE_VIDEO_PRORES"] = 6, r[i[7] = "CODEC_TYPE_VIDEO_DNXHR"] = 7, r[i[64] = "CODEC_TYPE_AUDIO_OPUS"] = 64, r[i[65] = "CODEC_TYPE_AUDIO_AAC"] = 65, r[i[66] = "CODEC_TYPE_AUDIO_PCM"] = 66, r[i[67] = "CODEC_TYPE_AUDIO_PCM_S24LE"] = 67, r;
|
|
3866
3866
|
}(), l.Empty = function() {
|
|
3867
3867
|
function i(r) {
|
|
3868
3868
|
if (r)
|
|
@@ -4202,16 +4202,16 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
4202
4202
|
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
4203
4203
|
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
4204
4204
|
}
|
|
4205
|
-
return i.prototype.name = "", i.prototype.value =
|
|
4205
|
+
return i.prototype.name = "", i.prototype.value = null, i.create = function(t) {
|
|
4206
4206
|
return new i(t);
|
|
4207
4207
|
}, i.encode = function(t, e) {
|
|
4208
4208
|
return e || (e = $Writer.create()), t.name != null && Object.hasOwnProperty.call(t, "name") && e.uint32(
|
|
4209
4209
|
/* id 1, wireType 2 =*/
|
|
4210
4210
|
10
|
|
4211
|
-
).string(t.name), t.value != null && Object.hasOwnProperty.call(t, "value") && e.uint32(
|
|
4211
|
+
).string(t.name), t.value != null && Object.hasOwnProperty.call(t, "value") && $root.sesame.v1.common.PropValue.encode(t.value, e.uint32(
|
|
4212
4212
|
/* id 2, wireType 2 =*/
|
|
4213
4213
|
18
|
|
4214
|
-
).
|
|
4214
|
+
).fork()).ldelim(), e;
|
|
4215
4215
|
}, i.encodeDelimited = function(t, e) {
|
|
4216
4216
|
return this.encode(t, e).ldelim();
|
|
4217
4217
|
}, i.decode = function(t, e, n) {
|
|
@@ -4227,7 +4227,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
4227
4227
|
break;
|
|
4228
4228
|
}
|
|
4229
4229
|
case 2: {
|
|
4230
|
-
a.value = t.
|
|
4230
|
+
a.value = $root.sesame.v1.common.PropValue.decode(t, t.uint32());
|
|
4231
4231
|
break;
|
|
4232
4232
|
}
|
|
4233
4233
|
default:
|
|
@@ -4239,16 +4239,30 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
4239
4239
|
}, i.decodeDelimited = function(t) {
|
|
4240
4240
|
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
4241
4241
|
}, i.verify = function(t) {
|
|
4242
|
-
|
|
4242
|
+
if (typeof t != "object" || t === null)
|
|
4243
|
+
return "object expected";
|
|
4244
|
+
if (t.name != null && t.hasOwnProperty("name") && !$util.isString(t.name))
|
|
4245
|
+
return "name: string expected";
|
|
4246
|
+
if (t.value != null && t.hasOwnProperty("value")) {
|
|
4247
|
+
let e = $root.sesame.v1.common.PropValue.verify(t.value);
|
|
4248
|
+
if (e)
|
|
4249
|
+
return "value." + e;
|
|
4250
|
+
}
|
|
4251
|
+
return null;
|
|
4243
4252
|
}, i.fromObject = function(t) {
|
|
4244
4253
|
if (t instanceof $root.sesame.v1.common.NameValue)
|
|
4245
4254
|
return t;
|
|
4246
4255
|
let e = new $root.sesame.v1.common.NameValue();
|
|
4247
|
-
|
|
4256
|
+
if (t.name != null && (e.name = String(t.name)), t.value != null) {
|
|
4257
|
+
if (typeof t.value != "object")
|
|
4258
|
+
throw TypeError(".sesame.v1.common.NameValue.value: object expected");
|
|
4259
|
+
e.value = $root.sesame.v1.common.PropValue.fromObject(t.value);
|
|
4260
|
+
}
|
|
4261
|
+
return e;
|
|
4248
4262
|
}, i.toObject = function(t, e) {
|
|
4249
4263
|
e || (e = {});
|
|
4250
4264
|
let n = {};
|
|
4251
|
-
return e.defaults && (n.name = "", n.value =
|
|
4265
|
+
return e.defaults && (n.name = "", n.value = null), t.name != null && t.hasOwnProperty("name") && (n.name = t.name), t.value != null && t.hasOwnProperty("value") && (n.value = $root.sesame.v1.common.PropValue.toObject(t.value, e)), n;
|
|
4252
4266
|
}, i.prototype.toJSON = function() {
|
|
4253
4267
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4254
4268
|
}, i.getTypeUrl = function(t) {
|
|
@@ -4394,7 +4408,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
4394
4408
|
}, i;
|
|
4395
4409
|
}(), l.EventTopic = function() {
|
|
4396
4410
|
const i = {}, r = Object.create(i);
|
|
4397
|
-
return r[i[0] = "EVENT_TOPIC_UNSPECIFIED"] = 0, r[i[1] = "EVENT_TOPIC_ERROR"] = 1, r[i[2] = "EVENT_TOPIC_TRANSPORT"] = 2, r[i[3] = "EVENT_TOPIC_CALLBACK"] = 3, r[i[4] = "
|
|
4411
|
+
return r[i[0] = "EVENT_TOPIC_UNSPECIFIED"] = 0, r[i[1] = "EVENT_TOPIC_ERROR"] = 1, r[i[2] = "EVENT_TOPIC_TRANSPORT"] = 2, r[i[3] = "EVENT_TOPIC_CALLBACK"] = 3, r[i[4] = "EVENT_TOPIC_JOB"] = 4, r[i[6] = "EVENT_TOPIC_RECORDER"] = 6, r;
|
|
4398
4412
|
}(), l;
|
|
4399
4413
|
}(), o.sources = function() {
|
|
4400
4414
|
const l = {};
|
|
@@ -4410,9 +4424,6 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
4410
4424
|
}(), l.SourceTransportCommandType = function() {
|
|
4411
4425
|
const i = {}, r = Object.create(i);
|
|
4412
4426
|
return r[i[0] = "SOURCE_TRANSPORT_CMD_UNSPECIFIED"] = 0, r[i[1] = "SOURCE_TRANSPORT_CMD_STOP"] = 1, r[i[2] = "SOURCE_TRANSPORT_CMD_PLAY"] = 2, r[i[3] = "SOURCE_TRANSPORT_CMD_SEEK"] = 3, r[i[4] = "SOURCE_TRANSPORT_CMD_LOOP"] = 4, r[i[5] = "SOURCE_TRANSPORT_CMD_LIVE"] = 5, r[i[6] = "SOURCE_TRANSPORT_CMD_JOG"] = 6, r[i[7] = "SOURCE_TRANSPORT_CMD_MONITOR"] = 7, r[i[8] = "SOURCE_TRANSPORT_CMD_SEEK_USER_TIME"] = 8, r[i[9] = "SOURCE_TRANSPORT_CMD_TAKE"] = 9, r[i[10] = "SOURCE_TRANSPORT_CMD_POST_ROLL"] = 10, r[i[11] = "SOURCE_TRANSPORT_CMD_PRE_ROLL"] = 11, r[i[12] = "SOURCE_TRANSPORT_CMD_NEXT"] = 12, r[i[13] = "SOURCE_TRANSPORT_CMD_SKIP_NEXT"] = 13, r[i[14] = "SOURCE_TRANSPORT_CMD_TRANSITIONS_DISABLED"] = 14, r[i[15] = "SOURCE_TRANSPORT_CMD_SET_SCRUBBING"] = 15, r;
|
|
4413
|
-
}(), l.DecoderType = function() {
|
|
4414
|
-
const i = {}, r = Object.create(i);
|
|
4415
|
-
return r[i[0] = "DECODER_TYPE_UNSPECIFIED"] = 0, r[i[1] = "DECODER_TYPE_H264"] = 1, r[i[2] = "DECODER_TYPE_HEVC"] = 2, r[i[3] = "DECODER_TYPE_AV1"] = 3, r;
|
|
4416
4427
|
}(), l.SourceTextureSize = function() {
|
|
4417
4428
|
const i = {}, r = Object.create(i);
|
|
4418
4429
|
return r[i[0] = "SOURCE_TEXTURE_SIZE_UNSPECIFIED"] = 0, r[i[1] = "SOURCE_TEXTURE_SIZE_HD"] = 1, r[i[2] = "SOURCE_TEXTURE_SIZE_4K"] = 2, r;
|
|
@@ -4921,16 +4932,16 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
4921
4932
|
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
4922
4933
|
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
4923
4934
|
}
|
|
4924
|
-
return i.prototype.recorderId = "", i.prototype.
|
|
4935
|
+
return i.prototype.recorderId = "", i.prototype.codec = 0, i.create = function(t) {
|
|
4925
4936
|
return new i(t);
|
|
4926
4937
|
}, i.encode = function(t, e) {
|
|
4927
4938
|
return e || (e = $Writer.create()), t.recorderId != null && Object.hasOwnProperty.call(t, "recorderId") && e.uint32(
|
|
4928
4939
|
/* id 1, wireType 2 =*/
|
|
4929
4940
|
10
|
|
4930
|
-
).string(t.recorderId), t.
|
|
4941
|
+
).string(t.recorderId), t.codec != null && Object.hasOwnProperty.call(t, "codec") && e.uint32(
|
|
4931
4942
|
/* id 2, wireType 0 =*/
|
|
4932
4943
|
16
|
|
4933
|
-
).int32(t.
|
|
4944
|
+
).int32(t.codec), e;
|
|
4934
4945
|
}, i.encodeDelimited = function(t, e) {
|
|
4935
4946
|
return this.encode(t, e).ldelim();
|
|
4936
4947
|
}, i.decode = function(t, e, n) {
|
|
@@ -4946,7 +4957,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
4946
4957
|
break;
|
|
4947
4958
|
}
|
|
4948
4959
|
case 2: {
|
|
4949
|
-
a.
|
|
4960
|
+
a.codec = t.int32();
|
|
4950
4961
|
break;
|
|
4951
4962
|
}
|
|
4952
4963
|
default:
|
|
@@ -4962,14 +4973,22 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
4962
4973
|
return "object expected";
|
|
4963
4974
|
if (t.recorderId != null && t.hasOwnProperty("recorderId") && !$util.isString(t.recorderId))
|
|
4964
4975
|
return "recorderId: string expected";
|
|
4965
|
-
if (t.
|
|
4966
|
-
switch (t.
|
|
4976
|
+
if (t.codec != null && t.hasOwnProperty("codec"))
|
|
4977
|
+
switch (t.codec) {
|
|
4967
4978
|
default:
|
|
4968
|
-
return "
|
|
4979
|
+
return "codec: enum value expected";
|
|
4969
4980
|
case 0:
|
|
4970
4981
|
case 1:
|
|
4971
4982
|
case 2:
|
|
4972
4983
|
case 3:
|
|
4984
|
+
case 4:
|
|
4985
|
+
case 5:
|
|
4986
|
+
case 6:
|
|
4987
|
+
case 7:
|
|
4988
|
+
case 64:
|
|
4989
|
+
case 65:
|
|
4990
|
+
case 66:
|
|
4991
|
+
case 67:
|
|
4973
4992
|
break;
|
|
4974
4993
|
}
|
|
4975
4994
|
return null;
|
|
@@ -4977,35 +4996,67 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
4977
4996
|
if (t instanceof $root.sesame.v1.sources.RecorderSourceConfig)
|
|
4978
4997
|
return t;
|
|
4979
4998
|
let e = new $root.sesame.v1.sources.RecorderSourceConfig();
|
|
4980
|
-
switch (t.recorderId != null && (e.recorderId = String(t.recorderId)), t.
|
|
4999
|
+
switch (t.recorderId != null && (e.recorderId = String(t.recorderId)), t.codec) {
|
|
4981
5000
|
default:
|
|
4982
|
-
if (typeof t.
|
|
4983
|
-
e.
|
|
5001
|
+
if (typeof t.codec == "number") {
|
|
5002
|
+
e.codec = t.codec;
|
|
4984
5003
|
break;
|
|
4985
5004
|
}
|
|
4986
5005
|
break;
|
|
4987
|
-
case "
|
|
5006
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
4988
5007
|
case 0:
|
|
4989
|
-
e.
|
|
5008
|
+
e.codec = 0;
|
|
4990
5009
|
break;
|
|
4991
|
-
case "
|
|
5010
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
4992
5011
|
case 1:
|
|
4993
|
-
e.
|
|
5012
|
+
e.codec = 1;
|
|
4994
5013
|
break;
|
|
4995
|
-
case "
|
|
5014
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
4996
5015
|
case 2:
|
|
4997
|
-
e.
|
|
5016
|
+
e.codec = 2;
|
|
4998
5017
|
break;
|
|
4999
|
-
case "
|
|
5018
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
5000
5019
|
case 3:
|
|
5001
|
-
e.
|
|
5020
|
+
e.codec = 3;
|
|
5021
|
+
break;
|
|
5022
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
5023
|
+
case 4:
|
|
5024
|
+
e.codec = 4;
|
|
5025
|
+
break;
|
|
5026
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
5027
|
+
case 5:
|
|
5028
|
+
e.codec = 5;
|
|
5029
|
+
break;
|
|
5030
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
5031
|
+
case 6:
|
|
5032
|
+
e.codec = 6;
|
|
5033
|
+
break;
|
|
5034
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
5035
|
+
case 7:
|
|
5036
|
+
e.codec = 7;
|
|
5037
|
+
break;
|
|
5038
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
5039
|
+
case 64:
|
|
5040
|
+
e.codec = 64;
|
|
5041
|
+
break;
|
|
5042
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
5043
|
+
case 65:
|
|
5044
|
+
e.codec = 65;
|
|
5045
|
+
break;
|
|
5046
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
5047
|
+
case 66:
|
|
5048
|
+
e.codec = 66;
|
|
5049
|
+
break;
|
|
5050
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
5051
|
+
case 67:
|
|
5052
|
+
e.codec = 67;
|
|
5002
5053
|
break;
|
|
5003
5054
|
}
|
|
5004
5055
|
return e;
|
|
5005
5056
|
}, i.toObject = function(t, e) {
|
|
5006
5057
|
e || (e = {});
|
|
5007
5058
|
let n = {};
|
|
5008
|
-
return e.defaults && (n.recorderId = "", n.
|
|
5059
|
+
return e.defaults && (n.recorderId = "", n.codec = e.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0), t.recorderId != null && t.hasOwnProperty("recorderId") && (n.recorderId = t.recorderId), t.codec != null && t.hasOwnProperty("codec") && (n.codec = e.enums === String ? $root.sesame.v1.common.CodecType[t.codec] === void 0 ? t.codec : $root.sesame.v1.common.CodecType[t.codec] : t.codec), n;
|
|
5009
5060
|
}, i.prototype.toJSON = function() {
|
|
5010
5061
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5011
5062
|
}, i.getTypeUrl = function(t) {
|
|
@@ -6978,7 +7029,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
6978
7029
|
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
6979
7030
|
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
6980
7031
|
}
|
|
6981
|
-
return i.prototype.id = $util.Long ? $util.Long.fromBits(0, 0, !0) : 0, i.prototype.name = "", i.prototype.userData = "", i.prototype.flags = $util.Long ? $util.Long.fromBits(0, 0, !0) : 0, i.prototype.startTimeUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.endTimeUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.lockedStartUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.lockedEndUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.
|
|
7032
|
+
return i.prototype.id = $util.Long ? $util.Long.fromBits(0, 0, !0) : 0, i.prototype.name = "", i.prototype.userData = "", i.prototype.flags = $util.Long ? $util.Long.fromBits(0, 0, !0) : 0, i.prototype.startTimeUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.endTimeUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.lockedStartUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.lockedEndUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.create = function(t) {
|
|
6982
7033
|
return new i(t);
|
|
6983
7034
|
}, i.encode = function(t, e) {
|
|
6984
7035
|
return e || (e = $Writer.create()), t.id != null && Object.hasOwnProperty.call(t, "id") && e.uint32(
|
|
@@ -7005,10 +7056,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
7005
7056
|
).int64(t.lockedStartUs), t.lockedEndUs != null && Object.hasOwnProperty.call(t, "lockedEndUs") && e.uint32(
|
|
7006
7057
|
/* id 8, wireType 0 =*/
|
|
7007
7058
|
64
|
|
7008
|
-
).int64(t.lockedEndUs), t.
|
|
7059
|
+
).int64(t.lockedEndUs), t.userTimeUs != null && Object.hasOwnProperty.call(t, "userTimeUs") && e.uint32(
|
|
7009
7060
|
/* id 9, wireType 0 =*/
|
|
7010
7061
|
72
|
|
7011
|
-
).int64(t.
|
|
7062
|
+
).int64(t.userTimeUs), e;
|
|
7012
7063
|
}, i.encodeDelimited = function(t, e) {
|
|
7013
7064
|
return this.encode(t, e).ldelim();
|
|
7014
7065
|
}, i.decode = function(t, e, n) {
|
|
@@ -7052,7 +7103,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
7052
7103
|
break;
|
|
7053
7104
|
}
|
|
7054
7105
|
case 9: {
|
|
7055
|
-
a.
|
|
7106
|
+
a.userTimeUs = t.int64();
|
|
7056
7107
|
break;
|
|
7057
7108
|
}
|
|
7058
7109
|
default:
|
|
@@ -7064,12 +7115,12 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
7064
7115
|
}, i.decodeDelimited = function(t) {
|
|
7065
7116
|
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
7066
7117
|
}, i.verify = function(t) {
|
|
7067
|
-
return typeof t != "object" || t === null ? "object expected" : t.id != null && t.hasOwnProperty("id") && !$util.isInteger(t.id) && !(t.id && $util.isInteger(t.id.low) && $util.isInteger(t.id.high)) ? "id: integer|Long expected" : t.name != null && t.hasOwnProperty("name") && !$util.isString(t.name) ? "name: string expected" : t.userData != null && t.hasOwnProperty("userData") && !$util.isString(t.userData) ? "userData: string expected" : t.flags != null && t.hasOwnProperty("flags") && !$util.isInteger(t.flags) && !(t.flags && $util.isInteger(t.flags.low) && $util.isInteger(t.flags.high)) ? "flags: integer|Long expected" : t.startTimeUs != null && t.hasOwnProperty("startTimeUs") && !$util.isInteger(t.startTimeUs) && !(t.startTimeUs && $util.isInteger(t.startTimeUs.low) && $util.isInteger(t.startTimeUs.high)) ? "startTimeUs: integer|Long expected" : t.endTimeUs != null && t.hasOwnProperty("endTimeUs") && !$util.isInteger(t.endTimeUs) && !(t.endTimeUs && $util.isInteger(t.endTimeUs.low) && $util.isInteger(t.endTimeUs.high)) ? "endTimeUs: integer|Long expected" : t.lockedStartUs != null && t.hasOwnProperty("lockedStartUs") && !$util.isInteger(t.lockedStartUs) && !(t.lockedStartUs && $util.isInteger(t.lockedStartUs.low) && $util.isInteger(t.lockedStartUs.high)) ? "lockedStartUs: integer|Long expected" : t.lockedEndUs != null && t.hasOwnProperty("lockedEndUs") && !$util.isInteger(t.lockedEndUs) && !(t.lockedEndUs && $util.isInteger(t.lockedEndUs.low) && $util.isInteger(t.lockedEndUs.high)) ? "lockedEndUs: integer|Long expected" : t.
|
|
7118
|
+
return typeof t != "object" || t === null ? "object expected" : t.id != null && t.hasOwnProperty("id") && !$util.isInteger(t.id) && !(t.id && $util.isInteger(t.id.low) && $util.isInteger(t.id.high)) ? "id: integer|Long expected" : t.name != null && t.hasOwnProperty("name") && !$util.isString(t.name) ? "name: string expected" : t.userData != null && t.hasOwnProperty("userData") && !$util.isString(t.userData) ? "userData: string expected" : t.flags != null && t.hasOwnProperty("flags") && !$util.isInteger(t.flags) && !(t.flags && $util.isInteger(t.flags.low) && $util.isInteger(t.flags.high)) ? "flags: integer|Long expected" : t.startTimeUs != null && t.hasOwnProperty("startTimeUs") && !$util.isInteger(t.startTimeUs) && !(t.startTimeUs && $util.isInteger(t.startTimeUs.low) && $util.isInteger(t.startTimeUs.high)) ? "startTimeUs: integer|Long expected" : t.endTimeUs != null && t.hasOwnProperty("endTimeUs") && !$util.isInteger(t.endTimeUs) && !(t.endTimeUs && $util.isInteger(t.endTimeUs.low) && $util.isInteger(t.endTimeUs.high)) ? "endTimeUs: integer|Long expected" : t.lockedStartUs != null && t.hasOwnProperty("lockedStartUs") && !$util.isInteger(t.lockedStartUs) && !(t.lockedStartUs && $util.isInteger(t.lockedStartUs.low) && $util.isInteger(t.lockedStartUs.high)) ? "lockedStartUs: integer|Long expected" : t.lockedEndUs != null && t.hasOwnProperty("lockedEndUs") && !$util.isInteger(t.lockedEndUs) && !(t.lockedEndUs && $util.isInteger(t.lockedEndUs.low) && $util.isInteger(t.lockedEndUs.high)) ? "lockedEndUs: integer|Long expected" : t.userTimeUs != null && t.hasOwnProperty("userTimeUs") && !$util.isInteger(t.userTimeUs) && !(t.userTimeUs && $util.isInteger(t.userTimeUs.low) && $util.isInteger(t.userTimeUs.high)) ? "userTimeUs: integer|Long expected" : null;
|
|
7068
7119
|
}, i.fromObject = function(t) {
|
|
7069
7120
|
if (t instanceof $root.sesame.v1.recorder.RecorderClip)
|
|
7070
7121
|
return t;
|
|
7071
7122
|
let e = new $root.sesame.v1.recorder.RecorderClip();
|
|
7072
|
-
return t.id != null && ($util.Long ? (e.id = $util.Long.fromValue(t.id)).unsigned = !0 : typeof t.id == "string" ? e.id = parseInt(t.id, 10) : typeof t.id == "number" ? e.id = t.id : typeof t.id == "object" && (e.id = new $util.LongBits(t.id.low >>> 0, t.id.high >>> 0).toNumber(!0))), t.name != null && (e.name = String(t.name)), t.userData != null && (e.userData = String(t.userData)), t.flags != null && ($util.Long ? (e.flags = $util.Long.fromValue(t.flags)).unsigned = !0 : typeof t.flags == "string" ? e.flags = parseInt(t.flags, 10) : typeof t.flags == "number" ? e.flags = t.flags : typeof t.flags == "object" && (e.flags = new $util.LongBits(t.flags.low >>> 0, t.flags.high >>> 0).toNumber(!0))), t.startTimeUs != null && ($util.Long ? (e.startTimeUs = $util.Long.fromValue(t.startTimeUs)).unsigned = !1 : typeof t.startTimeUs == "string" ? e.startTimeUs = parseInt(t.startTimeUs, 10) : typeof t.startTimeUs == "number" ? e.startTimeUs = t.startTimeUs : typeof t.startTimeUs == "object" && (e.startTimeUs = new $util.LongBits(t.startTimeUs.low >>> 0, t.startTimeUs.high >>> 0).toNumber())), t.endTimeUs != null && ($util.Long ? (e.endTimeUs = $util.Long.fromValue(t.endTimeUs)).unsigned = !1 : typeof t.endTimeUs == "string" ? e.endTimeUs = parseInt(t.endTimeUs, 10) : typeof t.endTimeUs == "number" ? e.endTimeUs = t.endTimeUs : typeof t.endTimeUs == "object" && (e.endTimeUs = new $util.LongBits(t.endTimeUs.low >>> 0, t.endTimeUs.high >>> 0).toNumber())), t.lockedStartUs != null && ($util.Long ? (e.lockedStartUs = $util.Long.fromValue(t.lockedStartUs)).unsigned = !1 : typeof t.lockedStartUs == "string" ? e.lockedStartUs = parseInt(t.lockedStartUs, 10) : typeof t.lockedStartUs == "number" ? e.lockedStartUs = t.lockedStartUs : typeof t.lockedStartUs == "object" && (e.lockedStartUs = new $util.LongBits(t.lockedStartUs.low >>> 0, t.lockedStartUs.high >>> 0).toNumber())), t.lockedEndUs != null && ($util.Long ? (e.lockedEndUs = $util.Long.fromValue(t.lockedEndUs)).unsigned = !1 : typeof t.lockedEndUs == "string" ? e.lockedEndUs = parseInt(t.lockedEndUs, 10) : typeof t.lockedEndUs == "number" ? e.lockedEndUs = t.lockedEndUs : typeof t.lockedEndUs == "object" && (e.lockedEndUs = new $util.LongBits(t.lockedEndUs.low >>> 0, t.lockedEndUs.high >>> 0).toNumber())), t.
|
|
7123
|
+
return t.id != null && ($util.Long ? (e.id = $util.Long.fromValue(t.id)).unsigned = !0 : typeof t.id == "string" ? e.id = parseInt(t.id, 10) : typeof t.id == "number" ? e.id = t.id : typeof t.id == "object" && (e.id = new $util.LongBits(t.id.low >>> 0, t.id.high >>> 0).toNumber(!0))), t.name != null && (e.name = String(t.name)), t.userData != null && (e.userData = String(t.userData)), t.flags != null && ($util.Long ? (e.flags = $util.Long.fromValue(t.flags)).unsigned = !0 : typeof t.flags == "string" ? e.flags = parseInt(t.flags, 10) : typeof t.flags == "number" ? e.flags = t.flags : typeof t.flags == "object" && (e.flags = new $util.LongBits(t.flags.low >>> 0, t.flags.high >>> 0).toNumber(!0))), t.startTimeUs != null && ($util.Long ? (e.startTimeUs = $util.Long.fromValue(t.startTimeUs)).unsigned = !1 : typeof t.startTimeUs == "string" ? e.startTimeUs = parseInt(t.startTimeUs, 10) : typeof t.startTimeUs == "number" ? e.startTimeUs = t.startTimeUs : typeof t.startTimeUs == "object" && (e.startTimeUs = new $util.LongBits(t.startTimeUs.low >>> 0, t.startTimeUs.high >>> 0).toNumber())), t.endTimeUs != null && ($util.Long ? (e.endTimeUs = $util.Long.fromValue(t.endTimeUs)).unsigned = !1 : typeof t.endTimeUs == "string" ? e.endTimeUs = parseInt(t.endTimeUs, 10) : typeof t.endTimeUs == "number" ? e.endTimeUs = t.endTimeUs : typeof t.endTimeUs == "object" && (e.endTimeUs = new $util.LongBits(t.endTimeUs.low >>> 0, t.endTimeUs.high >>> 0).toNumber())), t.lockedStartUs != null && ($util.Long ? (e.lockedStartUs = $util.Long.fromValue(t.lockedStartUs)).unsigned = !1 : typeof t.lockedStartUs == "string" ? e.lockedStartUs = parseInt(t.lockedStartUs, 10) : typeof t.lockedStartUs == "number" ? e.lockedStartUs = t.lockedStartUs : typeof t.lockedStartUs == "object" && (e.lockedStartUs = new $util.LongBits(t.lockedStartUs.low >>> 0, t.lockedStartUs.high >>> 0).toNumber())), t.lockedEndUs != null && ($util.Long ? (e.lockedEndUs = $util.Long.fromValue(t.lockedEndUs)).unsigned = !1 : typeof t.lockedEndUs == "string" ? e.lockedEndUs = parseInt(t.lockedEndUs, 10) : typeof t.lockedEndUs == "number" ? e.lockedEndUs = t.lockedEndUs : typeof t.lockedEndUs == "object" && (e.lockedEndUs = new $util.LongBits(t.lockedEndUs.low >>> 0, t.lockedEndUs.high >>> 0).toNumber())), t.userTimeUs != null && ($util.Long ? (e.userTimeUs = $util.Long.fromValue(t.userTimeUs)).unsigned = !1 : typeof t.userTimeUs == "string" ? e.userTimeUs = parseInt(t.userTimeUs, 10) : typeof t.userTimeUs == "number" ? e.userTimeUs = t.userTimeUs : typeof t.userTimeUs == "object" && (e.userTimeUs = new $util.LongBits(t.userTimeUs.low >>> 0, t.userTimeUs.high >>> 0).toNumber())), e;
|
|
7073
7124
|
}, i.toObject = function(t, e) {
|
|
7074
7125
|
e || (e = {});
|
|
7075
7126
|
let n = {};
|
|
@@ -7106,11 +7157,11 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
7106
7157
|
n.lockedEndUs = e.longs === String ? "0" : 0;
|
|
7107
7158
|
if ($util.Long) {
|
|
7108
7159
|
let s = new $util.Long(0, 0, !1);
|
|
7109
|
-
n.
|
|
7160
|
+
n.userTimeUs = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
7110
7161
|
} else
|
|
7111
|
-
n.
|
|
7162
|
+
n.userTimeUs = e.longs === String ? "0" : 0;
|
|
7112
7163
|
}
|
|
7113
|
-
return t.id != null && t.hasOwnProperty("id") && (typeof t.id == "number" ? n.id = e.longs === String ? String(t.id) : t.id : n.id = e.longs === String ? $util.Long.prototype.toString.call(t.id) : e.longs === Number ? new $util.LongBits(t.id.low >>> 0, t.id.high >>> 0).toNumber(!0) : t.id), t.name != null && t.hasOwnProperty("name") && (n.name = t.name), t.userData != null && t.hasOwnProperty("userData") && (n.userData = t.userData), t.flags != null && t.hasOwnProperty("flags") && (typeof t.flags == "number" ? n.flags = e.longs === String ? String(t.flags) : t.flags : n.flags = e.longs === String ? $util.Long.prototype.toString.call(t.flags) : e.longs === Number ? new $util.LongBits(t.flags.low >>> 0, t.flags.high >>> 0).toNumber(!0) : t.flags), t.startTimeUs != null && t.hasOwnProperty("startTimeUs") && (typeof t.startTimeUs == "number" ? n.startTimeUs = e.longs === String ? String(t.startTimeUs) : t.startTimeUs : n.startTimeUs = e.longs === String ? $util.Long.prototype.toString.call(t.startTimeUs) : e.longs === Number ? new $util.LongBits(t.startTimeUs.low >>> 0, t.startTimeUs.high >>> 0).toNumber() : t.startTimeUs), t.endTimeUs != null && t.hasOwnProperty("endTimeUs") && (typeof t.endTimeUs == "number" ? n.endTimeUs = e.longs === String ? String(t.endTimeUs) : t.endTimeUs : n.endTimeUs = e.longs === String ? $util.Long.prototype.toString.call(t.endTimeUs) : e.longs === Number ? new $util.LongBits(t.endTimeUs.low >>> 0, t.endTimeUs.high >>> 0).toNumber() : t.endTimeUs), t.lockedStartUs != null && t.hasOwnProperty("lockedStartUs") && (typeof t.lockedStartUs == "number" ? n.lockedStartUs = e.longs === String ? String(t.lockedStartUs) : t.lockedStartUs : n.lockedStartUs = e.longs === String ? $util.Long.prototype.toString.call(t.lockedStartUs) : e.longs === Number ? new $util.LongBits(t.lockedStartUs.low >>> 0, t.lockedStartUs.high >>> 0).toNumber() : t.lockedStartUs), t.lockedEndUs != null && t.hasOwnProperty("lockedEndUs") && (typeof t.lockedEndUs == "number" ? n.lockedEndUs = e.longs === String ? String(t.lockedEndUs) : t.lockedEndUs : n.lockedEndUs = e.longs === String ? $util.Long.prototype.toString.call(t.lockedEndUs) : e.longs === Number ? new $util.LongBits(t.lockedEndUs.low >>> 0, t.lockedEndUs.high >>> 0).toNumber() : t.lockedEndUs), t.
|
|
7164
|
+
return t.id != null && t.hasOwnProperty("id") && (typeof t.id == "number" ? n.id = e.longs === String ? String(t.id) : t.id : n.id = e.longs === String ? $util.Long.prototype.toString.call(t.id) : e.longs === Number ? new $util.LongBits(t.id.low >>> 0, t.id.high >>> 0).toNumber(!0) : t.id), t.name != null && t.hasOwnProperty("name") && (n.name = t.name), t.userData != null && t.hasOwnProperty("userData") && (n.userData = t.userData), t.flags != null && t.hasOwnProperty("flags") && (typeof t.flags == "number" ? n.flags = e.longs === String ? String(t.flags) : t.flags : n.flags = e.longs === String ? $util.Long.prototype.toString.call(t.flags) : e.longs === Number ? new $util.LongBits(t.flags.low >>> 0, t.flags.high >>> 0).toNumber(!0) : t.flags), t.startTimeUs != null && t.hasOwnProperty("startTimeUs") && (typeof t.startTimeUs == "number" ? n.startTimeUs = e.longs === String ? String(t.startTimeUs) : t.startTimeUs : n.startTimeUs = e.longs === String ? $util.Long.prototype.toString.call(t.startTimeUs) : e.longs === Number ? new $util.LongBits(t.startTimeUs.low >>> 0, t.startTimeUs.high >>> 0).toNumber() : t.startTimeUs), t.endTimeUs != null && t.hasOwnProperty("endTimeUs") && (typeof t.endTimeUs == "number" ? n.endTimeUs = e.longs === String ? String(t.endTimeUs) : t.endTimeUs : n.endTimeUs = e.longs === String ? $util.Long.prototype.toString.call(t.endTimeUs) : e.longs === Number ? new $util.LongBits(t.endTimeUs.low >>> 0, t.endTimeUs.high >>> 0).toNumber() : t.endTimeUs), t.lockedStartUs != null && t.hasOwnProperty("lockedStartUs") && (typeof t.lockedStartUs == "number" ? n.lockedStartUs = e.longs === String ? String(t.lockedStartUs) : t.lockedStartUs : n.lockedStartUs = e.longs === String ? $util.Long.prototype.toString.call(t.lockedStartUs) : e.longs === Number ? new $util.LongBits(t.lockedStartUs.low >>> 0, t.lockedStartUs.high >>> 0).toNumber() : t.lockedStartUs), t.lockedEndUs != null && t.hasOwnProperty("lockedEndUs") && (typeof t.lockedEndUs == "number" ? n.lockedEndUs = e.longs === String ? String(t.lockedEndUs) : t.lockedEndUs : n.lockedEndUs = e.longs === String ? $util.Long.prototype.toString.call(t.lockedEndUs) : e.longs === Number ? new $util.LongBits(t.lockedEndUs.low >>> 0, t.lockedEndUs.high >>> 0).toNumber() : t.lockedEndUs), t.userTimeUs != null && t.hasOwnProperty("userTimeUs") && (typeof t.userTimeUs == "number" ? n.userTimeUs = e.longs === String ? String(t.userTimeUs) : t.userTimeUs : n.userTimeUs = e.longs === String ? $util.Long.prototype.toString.call(t.userTimeUs) : e.longs === Number ? new $util.LongBits(t.userTimeUs.low >>> 0, t.userTimeUs.high >>> 0).toNumber() : t.userTimeUs), n;
|
|
7114
7165
|
}, i.prototype.toJSON = function() {
|
|
7115
7166
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7116
7167
|
}, i.getTypeUrl = function(t) {
|
|
@@ -9936,7 +9987,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
9936
9987
|
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
9937
9988
|
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
9938
9989
|
}
|
|
9939
|
-
return i.prototype.sourceId = "", i.prototype.userId = "", i.prototype.state = 0, i.prototype.durationUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.positionUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.materialPositionUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.userPlaylistId = "", i.prototype.playlistIndex = 0, i.prototype.playlistLength = 0, i.prototype.clipId = $util.Long ? $util.Long.fromBits(0, 0, !0) : 0, i.prototype.clipPositionUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.create = function(t) {
|
|
9990
|
+
return i.prototype.sourceId = "", i.prototype.userId = "", i.prototype.uri = "", i.prototype.state = 0, i.prototype.durationUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.positionUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.materialPositionUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.userTimeUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.speed = 0, i.prototype.userPlaylistId = "", i.prototype.playlistIndex = 0, i.prototype.playlistLength = 0, i.prototype.clipId = $util.Long ? $util.Long.fromBits(0, 0, !0) : 0, i.prototype.clipPositionUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.clipDurationUs = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.preroll = 0, i.prototype.postroll = 0, i.prototype.metadata = null, i.create = function(t) {
|
|
9940
9991
|
return new i(t);
|
|
9941
9992
|
}, i.encode = function(t, e) {
|
|
9942
9993
|
return e || (e = $Writer.create()), t.sourceId != null && Object.hasOwnProperty.call(t, "sourceId") && e.uint32(
|
|
@@ -9945,34 +9996,55 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
9945
9996
|
).string(t.sourceId), t.userId != null && Object.hasOwnProperty.call(t, "userId") && e.uint32(
|
|
9946
9997
|
/* id 2, wireType 2 =*/
|
|
9947
9998
|
18
|
|
9948
|
-
).string(t.userId), t.
|
|
9949
|
-
/* id 3, wireType
|
|
9950
|
-
|
|
9951
|
-
).
|
|
9999
|
+
).string(t.userId), t.uri != null && Object.hasOwnProperty.call(t, "uri") && e.uint32(
|
|
10000
|
+
/* id 3, wireType 2 =*/
|
|
10001
|
+
26
|
|
10002
|
+
).string(t.uri), t.state != null && Object.hasOwnProperty.call(t, "state") && e.uint32(
|
|
9952
10003
|
/* id 4, wireType 0 =*/
|
|
9953
10004
|
32
|
|
9954
|
-
).
|
|
10005
|
+
).int32(t.state), t.durationUs != null && Object.hasOwnProperty.call(t, "durationUs") && e.uint32(
|
|
9955
10006
|
/* id 5, wireType 0 =*/
|
|
9956
10007
|
40
|
|
9957
|
-
).int64(t.
|
|
10008
|
+
).int64(t.durationUs), t.positionUs != null && Object.hasOwnProperty.call(t, "positionUs") && e.uint32(
|
|
9958
10009
|
/* id 6, wireType 0 =*/
|
|
9959
10010
|
48
|
|
9960
|
-
).int64(t.
|
|
9961
|
-
/* id 7, wireType
|
|
9962
|
-
|
|
9963
|
-
).
|
|
10011
|
+
).int64(t.positionUs), t.materialPositionUs != null && Object.hasOwnProperty.call(t, "materialPositionUs") && e.uint32(
|
|
10012
|
+
/* id 7, wireType 0 =*/
|
|
10013
|
+
56
|
|
10014
|
+
).int64(t.materialPositionUs), t.userTimeUs != null && Object.hasOwnProperty.call(t, "userTimeUs") && e.uint32(
|
|
9964
10015
|
/* id 8, wireType 0 =*/
|
|
9965
10016
|
64
|
|
10017
|
+
).int64(t.userTimeUs), t.speed != null && Object.hasOwnProperty.call(t, "speed") && e.uint32(
|
|
10018
|
+
/* id 9, wireType 5 =*/
|
|
10019
|
+
77
|
|
10020
|
+
).float(t.speed), t.userPlaylistId != null && Object.hasOwnProperty.call(t, "userPlaylistId") && e.uint32(
|
|
10021
|
+
/* id 10, wireType 2 =*/
|
|
10022
|
+
82
|
|
10023
|
+
).string(t.userPlaylistId), t.playlistIndex != null && Object.hasOwnProperty.call(t, "playlistIndex") && e.uint32(
|
|
10024
|
+
/* id 11, wireType 0 =*/
|
|
10025
|
+
88
|
|
9966
10026
|
).uint32(t.playlistIndex), t.playlistLength != null && Object.hasOwnProperty.call(t, "playlistLength") && e.uint32(
|
|
9967
|
-
/* id
|
|
9968
|
-
|
|
10027
|
+
/* id 12, wireType 0 =*/
|
|
10028
|
+
96
|
|
9969
10029
|
).uint32(t.playlistLength), t.clipId != null && Object.hasOwnProperty.call(t, "clipId") && e.uint32(
|
|
9970
|
-
/* id
|
|
9971
|
-
|
|
10030
|
+
/* id 13, wireType 0 =*/
|
|
10031
|
+
104
|
|
9972
10032
|
).uint64(t.clipId), t.clipPositionUs != null && Object.hasOwnProperty.call(t, "clipPositionUs") && e.uint32(
|
|
9973
|
-
/* id
|
|
9974
|
-
|
|
9975
|
-
).int64(t.clipPositionUs), e
|
|
10033
|
+
/* id 14, wireType 0 =*/
|
|
10034
|
+
112
|
|
10035
|
+
).int64(t.clipPositionUs), t.clipDurationUs != null && Object.hasOwnProperty.call(t, "clipDurationUs") && e.uint32(
|
|
10036
|
+
/* id 15, wireType 0 =*/
|
|
10037
|
+
120
|
|
10038
|
+
).int64(t.clipDurationUs), t.preroll != null && Object.hasOwnProperty.call(t, "preroll") && e.uint32(
|
|
10039
|
+
/* id 16, wireType 0 =*/
|
|
10040
|
+
128
|
|
10041
|
+
).uint32(t.preroll), t.postroll != null && Object.hasOwnProperty.call(t, "postroll") && e.uint32(
|
|
10042
|
+
/* id 17, wireType 0 =*/
|
|
10043
|
+
136
|
|
10044
|
+
).uint32(t.postroll), t.metadata != null && Object.hasOwnProperty.call(t, "metadata") && $root.sesame.v1.common.TransportMetadata.encode(t.metadata, e.uint32(
|
|
10045
|
+
/* id 18, wireType 2 =*/
|
|
10046
|
+
146
|
|
10047
|
+
).fork()).ldelim(), e;
|
|
9976
10048
|
}, i.encodeDelimited = function(t, e) {
|
|
9977
10049
|
return this.encode(t, e).ldelim();
|
|
9978
10050
|
}, i.decode = function(t, e, n) {
|
|
@@ -9992,41 +10064,69 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
9992
10064
|
break;
|
|
9993
10065
|
}
|
|
9994
10066
|
case 3: {
|
|
9995
|
-
a.
|
|
10067
|
+
a.uri = t.string();
|
|
9996
10068
|
break;
|
|
9997
10069
|
}
|
|
9998
10070
|
case 4: {
|
|
9999
|
-
a.
|
|
10071
|
+
a.state = t.int32();
|
|
10000
10072
|
break;
|
|
10001
10073
|
}
|
|
10002
10074
|
case 5: {
|
|
10003
|
-
a.
|
|
10075
|
+
a.durationUs = t.int64();
|
|
10004
10076
|
break;
|
|
10005
10077
|
}
|
|
10006
10078
|
case 6: {
|
|
10007
|
-
a.
|
|
10079
|
+
a.positionUs = t.int64();
|
|
10008
10080
|
break;
|
|
10009
10081
|
}
|
|
10010
10082
|
case 7: {
|
|
10011
|
-
a.
|
|
10083
|
+
a.materialPositionUs = t.int64();
|
|
10012
10084
|
break;
|
|
10013
10085
|
}
|
|
10014
10086
|
case 8: {
|
|
10015
|
-
a.
|
|
10087
|
+
a.userTimeUs = t.int64();
|
|
10016
10088
|
break;
|
|
10017
10089
|
}
|
|
10018
10090
|
case 9: {
|
|
10019
|
-
a.
|
|
10091
|
+
a.speed = t.float();
|
|
10020
10092
|
break;
|
|
10021
10093
|
}
|
|
10022
10094
|
case 10: {
|
|
10023
|
-
a.
|
|
10095
|
+
a.userPlaylistId = t.string();
|
|
10024
10096
|
break;
|
|
10025
10097
|
}
|
|
10026
10098
|
case 11: {
|
|
10099
|
+
a.playlistIndex = t.uint32();
|
|
10100
|
+
break;
|
|
10101
|
+
}
|
|
10102
|
+
case 12: {
|
|
10103
|
+
a.playlistLength = t.uint32();
|
|
10104
|
+
break;
|
|
10105
|
+
}
|
|
10106
|
+
case 13: {
|
|
10107
|
+
a.clipId = t.uint64();
|
|
10108
|
+
break;
|
|
10109
|
+
}
|
|
10110
|
+
case 14: {
|
|
10027
10111
|
a.clipPositionUs = t.int64();
|
|
10028
10112
|
break;
|
|
10029
10113
|
}
|
|
10114
|
+
case 15: {
|
|
10115
|
+
a.clipDurationUs = t.int64();
|
|
10116
|
+
break;
|
|
10117
|
+
}
|
|
10118
|
+
case 16: {
|
|
10119
|
+
a.preroll = t.uint32();
|
|
10120
|
+
break;
|
|
10121
|
+
}
|
|
10122
|
+
case 17: {
|
|
10123
|
+
a.postroll = t.uint32();
|
|
10124
|
+
break;
|
|
10125
|
+
}
|
|
10126
|
+
case 18: {
|
|
10127
|
+
a.metadata = $root.sesame.v1.common.TransportMetadata.decode(t, t.uint32());
|
|
10128
|
+
break;
|
|
10129
|
+
}
|
|
10030
10130
|
default:
|
|
10031
10131
|
t.skipType(d & 7);
|
|
10032
10132
|
break;
|
|
@@ -10042,6 +10142,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10042
10142
|
return "sourceId: string expected";
|
|
10043
10143
|
if (t.userId != null && t.hasOwnProperty("userId") && !$util.isString(t.userId))
|
|
10044
10144
|
return "userId: string expected";
|
|
10145
|
+
if (t.uri != null && t.hasOwnProperty("uri") && !$util.isString(t.uri))
|
|
10146
|
+
return "uri: string expected";
|
|
10045
10147
|
if (t.state != null && t.hasOwnProperty("state"))
|
|
10046
10148
|
switch (t.state) {
|
|
10047
10149
|
default:
|
|
@@ -10053,12 +10155,43 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10053
10155
|
case 4:
|
|
10054
10156
|
break;
|
|
10055
10157
|
}
|
|
10056
|
-
|
|
10158
|
+
if (t.durationUs != null && t.hasOwnProperty("durationUs") && !$util.isInteger(t.durationUs) && !(t.durationUs && $util.isInteger(t.durationUs.low) && $util.isInteger(t.durationUs.high)))
|
|
10159
|
+
return "durationUs: integer|Long expected";
|
|
10160
|
+
if (t.positionUs != null && t.hasOwnProperty("positionUs") && !$util.isInteger(t.positionUs) && !(t.positionUs && $util.isInteger(t.positionUs.low) && $util.isInteger(t.positionUs.high)))
|
|
10161
|
+
return "positionUs: integer|Long expected";
|
|
10162
|
+
if (t.materialPositionUs != null && t.hasOwnProperty("materialPositionUs") && !$util.isInteger(t.materialPositionUs) && !(t.materialPositionUs && $util.isInteger(t.materialPositionUs.low) && $util.isInteger(t.materialPositionUs.high)))
|
|
10163
|
+
return "materialPositionUs: integer|Long expected";
|
|
10164
|
+
if (t.userTimeUs != null && t.hasOwnProperty("userTimeUs") && !$util.isInteger(t.userTimeUs) && !(t.userTimeUs && $util.isInteger(t.userTimeUs.low) && $util.isInteger(t.userTimeUs.high)))
|
|
10165
|
+
return "userTimeUs: integer|Long expected";
|
|
10166
|
+
if (t.speed != null && t.hasOwnProperty("speed") && typeof t.speed != "number")
|
|
10167
|
+
return "speed: number expected";
|
|
10168
|
+
if (t.userPlaylistId != null && t.hasOwnProperty("userPlaylistId") && !$util.isString(t.userPlaylistId))
|
|
10169
|
+
return "userPlaylistId: string expected";
|
|
10170
|
+
if (t.playlistIndex != null && t.hasOwnProperty("playlistIndex") && !$util.isInteger(t.playlistIndex))
|
|
10171
|
+
return "playlistIndex: integer expected";
|
|
10172
|
+
if (t.playlistLength != null && t.hasOwnProperty("playlistLength") && !$util.isInteger(t.playlistLength))
|
|
10173
|
+
return "playlistLength: integer expected";
|
|
10174
|
+
if (t.clipId != null && t.hasOwnProperty("clipId") && !$util.isInteger(t.clipId) && !(t.clipId && $util.isInteger(t.clipId.low) && $util.isInteger(t.clipId.high)))
|
|
10175
|
+
return "clipId: integer|Long expected";
|
|
10176
|
+
if (t.clipPositionUs != null && t.hasOwnProperty("clipPositionUs") && !$util.isInteger(t.clipPositionUs) && !(t.clipPositionUs && $util.isInteger(t.clipPositionUs.low) && $util.isInteger(t.clipPositionUs.high)))
|
|
10177
|
+
return "clipPositionUs: integer|Long expected";
|
|
10178
|
+
if (t.clipDurationUs != null && t.hasOwnProperty("clipDurationUs") && !$util.isInteger(t.clipDurationUs) && !(t.clipDurationUs && $util.isInteger(t.clipDurationUs.low) && $util.isInteger(t.clipDurationUs.high)))
|
|
10179
|
+
return "clipDurationUs: integer|Long expected";
|
|
10180
|
+
if (t.preroll != null && t.hasOwnProperty("preroll") && !$util.isInteger(t.preroll))
|
|
10181
|
+
return "preroll: integer expected";
|
|
10182
|
+
if (t.postroll != null && t.hasOwnProperty("postroll") && !$util.isInteger(t.postroll))
|
|
10183
|
+
return "postroll: integer expected";
|
|
10184
|
+
if (t.metadata != null && t.hasOwnProperty("metadata")) {
|
|
10185
|
+
let e = $root.sesame.v1.common.TransportMetadata.verify(t.metadata);
|
|
10186
|
+
if (e)
|
|
10187
|
+
return "metadata." + e;
|
|
10188
|
+
}
|
|
10189
|
+
return null;
|
|
10057
10190
|
}, i.fromObject = function(t) {
|
|
10058
10191
|
if (t instanceof $root.sesame.v1.status.TransportEvent)
|
|
10059
10192
|
return t;
|
|
10060
10193
|
let e = new $root.sesame.v1.status.TransportEvent();
|
|
10061
|
-
switch (t.sourceId != null && (e.sourceId = String(t.sourceId)), t.userId != null && (e.userId = String(t.userId)), t.state) {
|
|
10194
|
+
switch (t.sourceId != null && (e.sourceId = String(t.sourceId)), t.userId != null && (e.userId = String(t.userId)), t.uri != null && (e.uri = String(t.uri)), t.state) {
|
|
10062
10195
|
default:
|
|
10063
10196
|
if (typeof t.state == "number") {
|
|
10064
10197
|
e.state = t.state;
|
|
@@ -10086,12 +10219,17 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10086
10219
|
e.state = 4;
|
|
10087
10220
|
break;
|
|
10088
10221
|
}
|
|
10089
|
-
|
|
10222
|
+
if (t.durationUs != null && ($util.Long ? (e.durationUs = $util.Long.fromValue(t.durationUs)).unsigned = !1 : typeof t.durationUs == "string" ? e.durationUs = parseInt(t.durationUs, 10) : typeof t.durationUs == "number" ? e.durationUs = t.durationUs : typeof t.durationUs == "object" && (e.durationUs = new $util.LongBits(t.durationUs.low >>> 0, t.durationUs.high >>> 0).toNumber())), t.positionUs != null && ($util.Long ? (e.positionUs = $util.Long.fromValue(t.positionUs)).unsigned = !1 : typeof t.positionUs == "string" ? e.positionUs = parseInt(t.positionUs, 10) : typeof t.positionUs == "number" ? e.positionUs = t.positionUs : typeof t.positionUs == "object" && (e.positionUs = new $util.LongBits(t.positionUs.low >>> 0, t.positionUs.high >>> 0).toNumber())), t.materialPositionUs != null && ($util.Long ? (e.materialPositionUs = $util.Long.fromValue(t.materialPositionUs)).unsigned = !1 : typeof t.materialPositionUs == "string" ? e.materialPositionUs = parseInt(t.materialPositionUs, 10) : typeof t.materialPositionUs == "number" ? e.materialPositionUs = t.materialPositionUs : typeof t.materialPositionUs == "object" && (e.materialPositionUs = new $util.LongBits(t.materialPositionUs.low >>> 0, t.materialPositionUs.high >>> 0).toNumber())), t.userTimeUs != null && ($util.Long ? (e.userTimeUs = $util.Long.fromValue(t.userTimeUs)).unsigned = !1 : typeof t.userTimeUs == "string" ? e.userTimeUs = parseInt(t.userTimeUs, 10) : typeof t.userTimeUs == "number" ? e.userTimeUs = t.userTimeUs : typeof t.userTimeUs == "object" && (e.userTimeUs = new $util.LongBits(t.userTimeUs.low >>> 0, t.userTimeUs.high >>> 0).toNumber())), t.speed != null && (e.speed = Number(t.speed)), t.userPlaylistId != null && (e.userPlaylistId = String(t.userPlaylistId)), t.playlistIndex != null && (e.playlistIndex = t.playlistIndex >>> 0), t.playlistLength != null && (e.playlistLength = t.playlistLength >>> 0), t.clipId != null && ($util.Long ? (e.clipId = $util.Long.fromValue(t.clipId)).unsigned = !0 : typeof t.clipId == "string" ? e.clipId = parseInt(t.clipId, 10) : typeof t.clipId == "number" ? e.clipId = t.clipId : typeof t.clipId == "object" && (e.clipId = new $util.LongBits(t.clipId.low >>> 0, t.clipId.high >>> 0).toNumber(!0))), t.clipPositionUs != null && ($util.Long ? (e.clipPositionUs = $util.Long.fromValue(t.clipPositionUs)).unsigned = !1 : typeof t.clipPositionUs == "string" ? e.clipPositionUs = parseInt(t.clipPositionUs, 10) : typeof t.clipPositionUs == "number" ? e.clipPositionUs = t.clipPositionUs : typeof t.clipPositionUs == "object" && (e.clipPositionUs = new $util.LongBits(t.clipPositionUs.low >>> 0, t.clipPositionUs.high >>> 0).toNumber())), t.clipDurationUs != null && ($util.Long ? (e.clipDurationUs = $util.Long.fromValue(t.clipDurationUs)).unsigned = !1 : typeof t.clipDurationUs == "string" ? e.clipDurationUs = parseInt(t.clipDurationUs, 10) : typeof t.clipDurationUs == "number" ? e.clipDurationUs = t.clipDurationUs : typeof t.clipDurationUs == "object" && (e.clipDurationUs = new $util.LongBits(t.clipDurationUs.low >>> 0, t.clipDurationUs.high >>> 0).toNumber())), t.preroll != null && (e.preroll = t.preroll >>> 0), t.postroll != null && (e.postroll = t.postroll >>> 0), t.metadata != null) {
|
|
10223
|
+
if (typeof t.metadata != "object")
|
|
10224
|
+
throw TypeError(".sesame.v1.status.TransportEvent.metadata: object expected");
|
|
10225
|
+
e.metadata = $root.sesame.v1.common.TransportMetadata.fromObject(t.metadata);
|
|
10226
|
+
}
|
|
10227
|
+
return e;
|
|
10090
10228
|
}, i.toObject = function(t, e) {
|
|
10091
10229
|
e || (e = {});
|
|
10092
10230
|
let n = {};
|
|
10093
10231
|
if (e.defaults) {
|
|
10094
|
-
if (n.sourceId = "", n.userId = "", n.state = e.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0, $util.Long) {
|
|
10232
|
+
if (n.sourceId = "", n.userId = "", n.uri = "", n.state = e.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0, $util.Long) {
|
|
10095
10233
|
let s = new $util.Long(0, 0, !1);
|
|
10096
10234
|
n.durationUs = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
10097
10235
|
} else
|
|
@@ -10106,7 +10244,12 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10106
10244
|
n.materialPositionUs = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
10107
10245
|
} else
|
|
10108
10246
|
n.materialPositionUs = e.longs === String ? "0" : 0;
|
|
10109
|
-
if (
|
|
10247
|
+
if ($util.Long) {
|
|
10248
|
+
let s = new $util.Long(0, 0, !1);
|
|
10249
|
+
n.userTimeUs = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
10250
|
+
} else
|
|
10251
|
+
n.userTimeUs = e.longs === String ? "0" : 0;
|
|
10252
|
+
if (n.speed = 0, n.userPlaylistId = "", n.playlistIndex = 0, n.playlistLength = 0, $util.Long) {
|
|
10110
10253
|
let s = new $util.Long(0, 0, !0);
|
|
10111
10254
|
n.clipId = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
10112
10255
|
} else
|
|
@@ -10116,8 +10259,14 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10116
10259
|
n.clipPositionUs = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
10117
10260
|
} else
|
|
10118
10261
|
n.clipPositionUs = e.longs === String ? "0" : 0;
|
|
10262
|
+
if ($util.Long) {
|
|
10263
|
+
let s = new $util.Long(0, 0, !1);
|
|
10264
|
+
n.clipDurationUs = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
10265
|
+
} else
|
|
10266
|
+
n.clipDurationUs = e.longs === String ? "0" : 0;
|
|
10267
|
+
n.preroll = 0, n.postroll = 0, n.metadata = null;
|
|
10119
10268
|
}
|
|
10120
|
-
return t.sourceId != null && t.hasOwnProperty("sourceId") && (n.sourceId = t.sourceId), t.userId != null && t.hasOwnProperty("userId") && (n.userId = t.userId), t.state != null && t.hasOwnProperty("state") && (n.state = e.enums === String ? $root.sesame.v1.sources.SourceTransportState[t.state] === void 0 ? t.state : $root.sesame.v1.sources.SourceTransportState[t.state] : t.state), t.durationUs != null && t.hasOwnProperty("durationUs") && (typeof t.durationUs == "number" ? n.durationUs = e.longs === String ? String(t.durationUs) : t.durationUs : n.durationUs = e.longs === String ? $util.Long.prototype.toString.call(t.durationUs) : e.longs === Number ? new $util.LongBits(t.durationUs.low >>> 0, t.durationUs.high >>> 0).toNumber() : t.durationUs), t.positionUs != null && t.hasOwnProperty("positionUs") && (typeof t.positionUs == "number" ? n.positionUs = e.longs === String ? String(t.positionUs) : t.positionUs : n.positionUs = e.longs === String ? $util.Long.prototype.toString.call(t.positionUs) : e.longs === Number ? new $util.LongBits(t.positionUs.low >>> 0, t.positionUs.high >>> 0).toNumber() : t.positionUs), t.materialPositionUs != null && t.hasOwnProperty("materialPositionUs") && (typeof t.materialPositionUs == "number" ? n.materialPositionUs = e.longs === String ? String(t.materialPositionUs) : t.materialPositionUs : n.materialPositionUs = e.longs === String ? $util.Long.prototype.toString.call(t.materialPositionUs) : e.longs === Number ? new $util.LongBits(t.materialPositionUs.low >>> 0, t.materialPositionUs.high >>> 0).toNumber() : t.materialPositionUs), t.userPlaylistId != null && t.hasOwnProperty("userPlaylistId") && (n.userPlaylistId = t.userPlaylistId), t.playlistIndex != null && t.hasOwnProperty("playlistIndex") && (n.playlistIndex = t.playlistIndex), t.playlistLength != null && t.hasOwnProperty("playlistLength") && (n.playlistLength = t.playlistLength), t.clipId != null && t.hasOwnProperty("clipId") && (typeof t.clipId == "number" ? n.clipId = e.longs === String ? String(t.clipId) : t.clipId : n.clipId = e.longs === String ? $util.Long.prototype.toString.call(t.clipId) : e.longs === Number ? new $util.LongBits(t.clipId.low >>> 0, t.clipId.high >>> 0).toNumber(!0) : t.clipId), t.clipPositionUs != null && t.hasOwnProperty("clipPositionUs") && (typeof t.clipPositionUs == "number" ? n.clipPositionUs = e.longs === String ? String(t.clipPositionUs) : t.clipPositionUs : n.clipPositionUs = e.longs === String ? $util.Long.prototype.toString.call(t.clipPositionUs) : e.longs === Number ? new $util.LongBits(t.clipPositionUs.low >>> 0, t.clipPositionUs.high >>> 0).toNumber() : t.clipPositionUs), n;
|
|
10269
|
+
return t.sourceId != null && t.hasOwnProperty("sourceId") && (n.sourceId = t.sourceId), t.userId != null && t.hasOwnProperty("userId") && (n.userId = t.userId), t.uri != null && t.hasOwnProperty("uri") && (n.uri = t.uri), t.state != null && t.hasOwnProperty("state") && (n.state = e.enums === String ? $root.sesame.v1.sources.SourceTransportState[t.state] === void 0 ? t.state : $root.sesame.v1.sources.SourceTransportState[t.state] : t.state), t.durationUs != null && t.hasOwnProperty("durationUs") && (typeof t.durationUs == "number" ? n.durationUs = e.longs === String ? String(t.durationUs) : t.durationUs : n.durationUs = e.longs === String ? $util.Long.prototype.toString.call(t.durationUs) : e.longs === Number ? new $util.LongBits(t.durationUs.low >>> 0, t.durationUs.high >>> 0).toNumber() : t.durationUs), t.positionUs != null && t.hasOwnProperty("positionUs") && (typeof t.positionUs == "number" ? n.positionUs = e.longs === String ? String(t.positionUs) : t.positionUs : n.positionUs = e.longs === String ? $util.Long.prototype.toString.call(t.positionUs) : e.longs === Number ? new $util.LongBits(t.positionUs.low >>> 0, t.positionUs.high >>> 0).toNumber() : t.positionUs), t.materialPositionUs != null && t.hasOwnProperty("materialPositionUs") && (typeof t.materialPositionUs == "number" ? n.materialPositionUs = e.longs === String ? String(t.materialPositionUs) : t.materialPositionUs : n.materialPositionUs = e.longs === String ? $util.Long.prototype.toString.call(t.materialPositionUs) : e.longs === Number ? new $util.LongBits(t.materialPositionUs.low >>> 0, t.materialPositionUs.high >>> 0).toNumber() : t.materialPositionUs), t.userTimeUs != null && t.hasOwnProperty("userTimeUs") && (typeof t.userTimeUs == "number" ? n.userTimeUs = e.longs === String ? String(t.userTimeUs) : t.userTimeUs : n.userTimeUs = e.longs === String ? $util.Long.prototype.toString.call(t.userTimeUs) : e.longs === Number ? new $util.LongBits(t.userTimeUs.low >>> 0, t.userTimeUs.high >>> 0).toNumber() : t.userTimeUs), t.speed != null && t.hasOwnProperty("speed") && (n.speed = e.json && !isFinite(t.speed) ? String(t.speed) : t.speed), t.userPlaylistId != null && t.hasOwnProperty("userPlaylistId") && (n.userPlaylistId = t.userPlaylistId), t.playlistIndex != null && t.hasOwnProperty("playlistIndex") && (n.playlistIndex = t.playlistIndex), t.playlistLength != null && t.hasOwnProperty("playlistLength") && (n.playlistLength = t.playlistLength), t.clipId != null && t.hasOwnProperty("clipId") && (typeof t.clipId == "number" ? n.clipId = e.longs === String ? String(t.clipId) : t.clipId : n.clipId = e.longs === String ? $util.Long.prototype.toString.call(t.clipId) : e.longs === Number ? new $util.LongBits(t.clipId.low >>> 0, t.clipId.high >>> 0).toNumber(!0) : t.clipId), t.clipPositionUs != null && t.hasOwnProperty("clipPositionUs") && (typeof t.clipPositionUs == "number" ? n.clipPositionUs = e.longs === String ? String(t.clipPositionUs) : t.clipPositionUs : n.clipPositionUs = e.longs === String ? $util.Long.prototype.toString.call(t.clipPositionUs) : e.longs === Number ? new $util.LongBits(t.clipPositionUs.low >>> 0, t.clipPositionUs.high >>> 0).toNumber() : t.clipPositionUs), t.clipDurationUs != null && t.hasOwnProperty("clipDurationUs") && (typeof t.clipDurationUs == "number" ? n.clipDurationUs = e.longs === String ? String(t.clipDurationUs) : t.clipDurationUs : n.clipDurationUs = e.longs === String ? $util.Long.prototype.toString.call(t.clipDurationUs) : e.longs === Number ? new $util.LongBits(t.clipDurationUs.low >>> 0, t.clipDurationUs.high >>> 0).toNumber() : t.clipDurationUs), t.preroll != null && t.hasOwnProperty("preroll") && (n.preroll = t.preroll), t.postroll != null && t.hasOwnProperty("postroll") && (n.postroll = t.postroll), t.metadata != null && t.hasOwnProperty("metadata") && (n.metadata = $root.sesame.v1.common.TransportMetadata.toObject(t.metadata, e)), n;
|
|
10121
10270
|
}, i.prototype.toJSON = function() {
|
|
10122
10271
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10123
10272
|
}, i.getTypeUrl = function(t) {
|
|
@@ -10129,10 +10278,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10129
10278
|
for (let e = Object.keys(t), n = 0; n < e.length; ++n)
|
|
10130
10279
|
t[e[n]] != null && (this[e[n]] = t[e[n]]);
|
|
10131
10280
|
}
|
|
10132
|
-
i.prototype.errorEvent = null, i.prototype.transportEvent = null, i.prototype.callbackEvent = null, i.prototype.
|
|
10281
|
+
i.prototype.errorEvent = null, i.prototype.transportEvent = null, i.prototype.callbackEvent = null, i.prototype.jobEvent = null, i.prototype.recorderEvent = null;
|
|
10133
10282
|
let r;
|
|
10134
10283
|
return Object.defineProperty(i.prototype, "event", {
|
|
10135
|
-
get: $util.oneOfGetter(r = ["errorEvent", "transportEvent", "callbackEvent", "
|
|
10284
|
+
get: $util.oneOfGetter(r = ["errorEvent", "transportEvent", "callbackEvent", "jobEvent", "recorderEvent"]),
|
|
10136
10285
|
set: $util.oneOfSetter(r)
|
|
10137
10286
|
}), i.create = function(e) {
|
|
10138
10287
|
return new i(e);
|
|
@@ -10146,12 +10295,9 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10146
10295
|
).fork()).ldelim(), e.callbackEvent != null && Object.hasOwnProperty.call(e, "callbackEvent") && $root.sesame.v1.common.Callback.encode(e.callbackEvent, n.uint32(
|
|
10147
10296
|
/* id 3, wireType 2 =*/
|
|
10148
10297
|
26
|
|
10149
|
-
).fork()).ldelim(), e.
|
|
10298
|
+
).fork()).ldelim(), e.jobEvent != null && Object.hasOwnProperty.call(e, "jobEvent") && $root.sesame.v1.jobs.Job.encode(e.jobEvent, n.uint32(
|
|
10150
10299
|
/* id 4, wireType 2 =*/
|
|
10151
10300
|
34
|
|
10152
|
-
).fork()).ldelim(), e.clipImportEvent != null && Object.hasOwnProperty.call(e, "clipImportEvent") && $root.sesame.v1.jobs.JobEvent.encode(e.clipImportEvent, n.uint32(
|
|
10153
|
-
/* id 5, wireType 2 =*/
|
|
10154
|
-
42
|
|
10155
10301
|
).fork()).ldelim(), e.recorderEvent != null && Object.hasOwnProperty.call(e, "recorderEvent") && $root.sesame.v1.recorder.RecorderEvent.encode(e.recorderEvent, n.uint32(
|
|
10156
10302
|
/* id 6, wireType 2 =*/
|
|
10157
10303
|
50
|
|
@@ -10179,11 +10325,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10179
10325
|
break;
|
|
10180
10326
|
}
|
|
10181
10327
|
case 4: {
|
|
10182
|
-
d.
|
|
10183
|
-
break;
|
|
10184
|
-
}
|
|
10185
|
-
case 5: {
|
|
10186
|
-
d.clipImportEvent = $root.sesame.v1.jobs.JobEvent.decode(e, e.uint32());
|
|
10328
|
+
d.jobEvent = $root.sesame.v1.jobs.Job.decode(e, e.uint32());
|
|
10187
10329
|
break;
|
|
10188
10330
|
}
|
|
10189
10331
|
case 6: {
|
|
@@ -10230,24 +10372,14 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10230
10372
|
return "callbackEvent." + s;
|
|
10231
10373
|
}
|
|
10232
10374
|
}
|
|
10233
|
-
if (e.
|
|
10234
|
-
if (n.event === 1)
|
|
10235
|
-
return "event: multiple values";
|
|
10236
|
-
n.event = 1;
|
|
10237
|
-
{
|
|
10238
|
-
let s = $root.sesame.v1.jobs.JobEvent.verify(e.playlistExportEvent);
|
|
10239
|
-
if (s)
|
|
10240
|
-
return "playlistExportEvent." + s;
|
|
10241
|
-
}
|
|
10242
|
-
}
|
|
10243
|
-
if (e.clipImportEvent != null && e.hasOwnProperty("clipImportEvent")) {
|
|
10375
|
+
if (e.jobEvent != null && e.hasOwnProperty("jobEvent")) {
|
|
10244
10376
|
if (n.event === 1)
|
|
10245
10377
|
return "event: multiple values";
|
|
10246
10378
|
n.event = 1;
|
|
10247
10379
|
{
|
|
10248
|
-
let s = $root.sesame.v1.jobs.
|
|
10380
|
+
let s = $root.sesame.v1.jobs.Job.verify(e.jobEvent);
|
|
10249
10381
|
if (s)
|
|
10250
|
-
return "
|
|
10382
|
+
return "jobEvent." + s;
|
|
10251
10383
|
}
|
|
10252
10384
|
}
|
|
10253
10385
|
if (e.recorderEvent != null && e.hasOwnProperty("recorderEvent")) {
|
|
@@ -10280,15 +10412,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10280
10412
|
throw TypeError(".sesame.v1.status.Event.callbackEvent: object expected");
|
|
10281
10413
|
n.callbackEvent = $root.sesame.v1.common.Callback.fromObject(e.callbackEvent);
|
|
10282
10414
|
}
|
|
10283
|
-
if (e.
|
|
10284
|
-
if (typeof e.
|
|
10285
|
-
throw TypeError(".sesame.v1.status.Event.
|
|
10286
|
-
n.
|
|
10287
|
-
}
|
|
10288
|
-
if (e.clipImportEvent != null) {
|
|
10289
|
-
if (typeof e.clipImportEvent != "object")
|
|
10290
|
-
throw TypeError(".sesame.v1.status.Event.clipImportEvent: object expected");
|
|
10291
|
-
n.clipImportEvent = $root.sesame.v1.jobs.JobEvent.fromObject(e.clipImportEvent);
|
|
10415
|
+
if (e.jobEvent != null) {
|
|
10416
|
+
if (typeof e.jobEvent != "object")
|
|
10417
|
+
throw TypeError(".sesame.v1.status.Event.jobEvent: object expected");
|
|
10418
|
+
n.jobEvent = $root.sesame.v1.jobs.Job.fromObject(e.jobEvent);
|
|
10292
10419
|
}
|
|
10293
10420
|
if (e.recorderEvent != null) {
|
|
10294
10421
|
if (typeof e.recorderEvent != "object")
|
|
@@ -10299,7 +10426,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10299
10426
|
}, i.toObject = function(e, n) {
|
|
10300
10427
|
n || (n = {});
|
|
10301
10428
|
let s = {};
|
|
10302
|
-
return e.errorEvent != null && e.hasOwnProperty("errorEvent") && (s.errorEvent = $root.sesame.v1.status.ErrorEvent.toObject(e.errorEvent, n), n.oneofs && (s.event = "errorEvent")), e.transportEvent != null && e.hasOwnProperty("transportEvent") && (s.transportEvent = $root.sesame.v1.status.TransportEvent.toObject(e.transportEvent, n), n.oneofs && (s.event = "transportEvent")), e.callbackEvent != null && e.hasOwnProperty("callbackEvent") && (s.callbackEvent = $root.sesame.v1.common.Callback.toObject(e.callbackEvent, n), n.oneofs && (s.event = "callbackEvent")), e.
|
|
10429
|
+
return e.errorEvent != null && e.hasOwnProperty("errorEvent") && (s.errorEvent = $root.sesame.v1.status.ErrorEvent.toObject(e.errorEvent, n), n.oneofs && (s.event = "errorEvent")), e.transportEvent != null && e.hasOwnProperty("transportEvent") && (s.transportEvent = $root.sesame.v1.status.TransportEvent.toObject(e.transportEvent, n), n.oneofs && (s.event = "transportEvent")), e.callbackEvent != null && e.hasOwnProperty("callbackEvent") && (s.callbackEvent = $root.sesame.v1.common.Callback.toObject(e.callbackEvent, n), n.oneofs && (s.event = "callbackEvent")), e.jobEvent != null && e.hasOwnProperty("jobEvent") && (s.jobEvent = $root.sesame.v1.jobs.Job.toObject(e.jobEvent, n), n.oneofs && (s.event = "jobEvent")), e.recorderEvent != null && e.hasOwnProperty("recorderEvent") && (s.recorderEvent = $root.sesame.v1.recorder.RecorderEvent.toObject(e.recorderEvent, n), n.oneofs && (s.event = "recorderEvent")), s;
|
|
10303
10430
|
}, i.prototype.toJSON = function() {
|
|
10304
10431
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10305
10432
|
}, i.getTypeUrl = function(e) {
|
|
@@ -10376,7 +10503,6 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10376
10503
|
case 2:
|
|
10377
10504
|
case 3:
|
|
10378
10505
|
case 4:
|
|
10379
|
-
case 5:
|
|
10380
10506
|
case 6:
|
|
10381
10507
|
break;
|
|
10382
10508
|
}
|
|
@@ -10420,14 +10546,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10420
10546
|
case 3:
|
|
10421
10547
|
e.eventTopics[n] = 3;
|
|
10422
10548
|
break;
|
|
10423
|
-
case "
|
|
10549
|
+
case "EVENT_TOPIC_JOB":
|
|
10424
10550
|
case 4:
|
|
10425
10551
|
e.eventTopics[n] = 4;
|
|
10426
10552
|
break;
|
|
10427
|
-
case "EVENT_TOPIC_CLIP_IMPORT":
|
|
10428
|
-
case 5:
|
|
10429
|
-
e.eventTopics[n] = 5;
|
|
10430
|
-
break;
|
|
10431
10553
|
case "EVENT_TOPIC_RECORDER":
|
|
10432
10554
|
case 6:
|
|
10433
10555
|
e.eventTopics[n] = 6;
|
|
@@ -10479,13 +10601,13 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10479
10601
|
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
10480
10602
|
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
10481
10603
|
}
|
|
10482
|
-
return i.prototype.
|
|
10604
|
+
return i.prototype.codec = 0, i.prototype.preset = 0, i.prototype.bitrateKbps = 0, i.prototype.keyframeInterval = 0, i.prototype.width = 0, i.prototype.height = 0, i.prototype.fps = 0, i.create = function(t) {
|
|
10483
10605
|
return new i(t);
|
|
10484
10606
|
}, i.encode = function(t, e) {
|
|
10485
|
-
return e || (e = $Writer.create()), t.
|
|
10607
|
+
return e || (e = $Writer.create()), t.codec != null && Object.hasOwnProperty.call(t, "codec") && e.uint32(
|
|
10486
10608
|
/* id 1, wireType 0 =*/
|
|
10487
10609
|
8
|
|
10488
|
-
).int32(t.
|
|
10610
|
+
).int32(t.codec), t.preset != null && Object.hasOwnProperty.call(t, "preset") && e.uint32(
|
|
10489
10611
|
/* id 2, wireType 0 =*/
|
|
10490
10612
|
16
|
|
10491
10613
|
).int32(t.preset), t.bitrateKbps != null && Object.hasOwnProperty.call(t, "bitrateKbps") && e.uint32(
|
|
@@ -10515,7 +10637,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10515
10637
|
break;
|
|
10516
10638
|
switch (d >>> 3) {
|
|
10517
10639
|
case 1: {
|
|
10518
|
-
a.
|
|
10640
|
+
a.codec = t.int32();
|
|
10519
10641
|
break;
|
|
10520
10642
|
}
|
|
10521
10643
|
case 2: {
|
|
@@ -10553,10 +10675,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10553
10675
|
}, i.verify = function(t) {
|
|
10554
10676
|
if (typeof t != "object" || t === null)
|
|
10555
10677
|
return "object expected";
|
|
10556
|
-
if (t.
|
|
10557
|
-
switch (t.
|
|
10678
|
+
if (t.codec != null && t.hasOwnProperty("codec"))
|
|
10679
|
+
switch (t.codec) {
|
|
10558
10680
|
default:
|
|
10559
|
-
return "
|
|
10681
|
+
return "codec: enum value expected";
|
|
10560
10682
|
case 0:
|
|
10561
10683
|
case 1:
|
|
10562
10684
|
case 2:
|
|
@@ -10564,6 +10686,11 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10564
10686
|
case 4:
|
|
10565
10687
|
case 5:
|
|
10566
10688
|
case 6:
|
|
10689
|
+
case 7:
|
|
10690
|
+
case 64:
|
|
10691
|
+
case 65:
|
|
10692
|
+
case 66:
|
|
10693
|
+
case 67:
|
|
10567
10694
|
break;
|
|
10568
10695
|
}
|
|
10569
10696
|
if (t.preset != null && t.hasOwnProperty("preset"))
|
|
@@ -10581,40 +10708,60 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10581
10708
|
if (t instanceof $root.sesame.v1.outputs.EncoderConfig)
|
|
10582
10709
|
return t;
|
|
10583
10710
|
let e = new $root.sesame.v1.outputs.EncoderConfig();
|
|
10584
|
-
switch (t.
|
|
10711
|
+
switch (t.codec) {
|
|
10585
10712
|
default:
|
|
10586
|
-
if (typeof t.
|
|
10587
|
-
e.
|
|
10713
|
+
if (typeof t.codec == "number") {
|
|
10714
|
+
e.codec = t.codec;
|
|
10588
10715
|
break;
|
|
10589
10716
|
}
|
|
10590
10717
|
break;
|
|
10591
|
-
case "
|
|
10718
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
10592
10719
|
case 0:
|
|
10593
|
-
e.
|
|
10720
|
+
e.codec = 0;
|
|
10594
10721
|
break;
|
|
10595
|
-
case "
|
|
10722
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
10596
10723
|
case 1:
|
|
10597
|
-
e.
|
|
10724
|
+
e.codec = 1;
|
|
10598
10725
|
break;
|
|
10599
|
-
case "
|
|
10726
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
10600
10727
|
case 2:
|
|
10601
|
-
e.
|
|
10728
|
+
e.codec = 2;
|
|
10602
10729
|
break;
|
|
10603
|
-
case "
|
|
10730
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
10604
10731
|
case 3:
|
|
10605
|
-
e.
|
|
10732
|
+
e.codec = 3;
|
|
10606
10733
|
break;
|
|
10607
|
-
case "
|
|
10734
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
10608
10735
|
case 4:
|
|
10609
|
-
e.
|
|
10736
|
+
e.codec = 4;
|
|
10610
10737
|
break;
|
|
10611
|
-
case "
|
|
10738
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
10612
10739
|
case 5:
|
|
10613
|
-
e.
|
|
10740
|
+
e.codec = 5;
|
|
10614
10741
|
break;
|
|
10615
|
-
case "
|
|
10742
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
10616
10743
|
case 6:
|
|
10617
|
-
e.
|
|
10744
|
+
e.codec = 6;
|
|
10745
|
+
break;
|
|
10746
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
10747
|
+
case 7:
|
|
10748
|
+
e.codec = 7;
|
|
10749
|
+
break;
|
|
10750
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
10751
|
+
case 64:
|
|
10752
|
+
e.codec = 64;
|
|
10753
|
+
break;
|
|
10754
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
10755
|
+
case 65:
|
|
10756
|
+
e.codec = 65;
|
|
10757
|
+
break;
|
|
10758
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
10759
|
+
case 66:
|
|
10760
|
+
e.codec = 66;
|
|
10761
|
+
break;
|
|
10762
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
10763
|
+
case 67:
|
|
10764
|
+
e.codec = 67;
|
|
10618
10765
|
break;
|
|
10619
10766
|
}
|
|
10620
10767
|
switch (t.preset) {
|
|
@@ -10645,7 +10792,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
10645
10792
|
}, i.toObject = function(t, e) {
|
|
10646
10793
|
e || (e = {});
|
|
10647
10794
|
let n = {};
|
|
10648
|
-
return e.defaults && (n.
|
|
10795
|
+
return e.defaults && (n.codec = e.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0, n.preset = e.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0, n.bitrateKbps = 0, n.keyframeInterval = 0, n.width = 0, n.height = 0, n.fps = 0), t.codec != null && t.hasOwnProperty("codec") && (n.codec = e.enums === String ? $root.sesame.v1.common.CodecType[t.codec] === void 0 ? t.codec : $root.sesame.v1.common.CodecType[t.codec] : t.codec), t.preset != null && t.hasOwnProperty("preset") && (n.preset = e.enums === String ? $root.sesame.v1.outputs.EncoderPreset[t.preset] === void 0 ? t.preset : $root.sesame.v1.outputs.EncoderPreset[t.preset] : t.preset), t.bitrateKbps != null && t.hasOwnProperty("bitrateKbps") && (n.bitrateKbps = t.bitrateKbps), t.keyframeInterval != null && t.hasOwnProperty("keyframeInterval") && (n.keyframeInterval = t.keyframeInterval), t.width != null && t.hasOwnProperty("width") && (n.width = t.width), t.height != null && t.hasOwnProperty("height") && (n.height = t.height), t.fps != null && t.hasOwnProperty("fps") && (n.fps = e.json && !isFinite(t.fps) ? String(t.fps) : t.fps), n;
|
|
10649
10796
|
}, i.prototype.toJSON = function() {
|
|
10650
10797
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10651
10798
|
}, i.getTypeUrl = function(t) {
|
|
@@ -12961,15 +13108,15 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
12961
13108
|
}(), l;
|
|
12962
13109
|
}(), o.jobs = function() {
|
|
12963
13110
|
const l = {};
|
|
12964
|
-
return l.
|
|
13111
|
+
return l.JobType = function() {
|
|
13112
|
+
const i = {}, r = Object.create(i);
|
|
13113
|
+
return r[i[0] = "JOB_TYPE_UNSPECIFIED"] = 0, r[i[1] = "JOB_TYPE_EXPORT"] = 1, r[i[2] = "JOB_TYPE_IMPORT"] = 2, r;
|
|
13114
|
+
}(), l.JobStatus = function() {
|
|
12965
13115
|
const i = {}, r = Object.create(i);
|
|
12966
13116
|
return r[i[0] = "JOB_STATUS_UNSPECIFIED"] = 0, r[i[1] = "JOB_STATUS_PENDING"] = 1, r[i[2] = "JOB_STATUS_IN_PROGRESS"] = 2, r[i[3] = "JOB_STATUS_COMPLETE"] = 3, r[i[4] = "JOB_STATUS_ABORTED"] = 4, r[i[5] = "JOB_STATUS_ERROR"] = 5, r;
|
|
12967
13117
|
}(), l.ContainerFormat = function() {
|
|
12968
13118
|
const i = {}, r = Object.create(i);
|
|
12969
13119
|
return r[i[0] = "CONTAINER_FORMAT_UNSPECIFIED"] = 0, r[i[1] = "CONTAINER_FORMAT_MP4"] = 1, r[i[2] = "CONTAINER_FORMAT_MOV"] = 2, r[i[3] = "CONTAINER_FORMAT_MKV"] = 3, r[i[4] = "CONTAINER_FORMAT_MXF"] = 4, r;
|
|
12970
|
-
}(), l.AudioCodecId = function() {
|
|
12971
|
-
const i = {}, r = Object.create(i);
|
|
12972
|
-
return r[i[0] = "AUDIO_CODEC_ID_UNSPECIFIED"] = 0, r[i[1] = "AUDIO_CODEC_ID_AAC"] = 1, r[i[2] = "AUDIO_CODEC_ID_OPUS"] = 2, r[i[3] = "AUDIO_CODEC_ID_PCM_S16LE"] = 3, r[i[4] = "AUDIO_CODEC_ID_PCM_S24LE"] = 4, r;
|
|
12973
13120
|
}(), l.RateControlMode = function() {
|
|
12974
13121
|
const i = {}, r = Object.create(i);
|
|
12975
13122
|
return r[i[0] = "RATE_CONTROL_MODE_UNSPECIFIED"] = 0, r[i[1] = "RATE_CONTROL_MODE_CBR"] = 1, r[i[2] = "RATE_CONTROL_MODE_VBR"] = 2, r[i[3] = "RATE_CONTROL_MODE_CQ"] = 3, r;
|
|
@@ -13043,78 +13190,95 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13043
13190
|
}, i.getTypeUrl = function(t) {
|
|
13044
13191
|
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.TimingInfo";
|
|
13045
13192
|
}, i;
|
|
13046
|
-
}(), l.
|
|
13193
|
+
}(), l.Job = function() {
|
|
13047
13194
|
function i(t) {
|
|
13048
13195
|
if (t)
|
|
13049
13196
|
for (let e = Object.keys(t), n = 0; n < e.length; ++n)
|
|
13050
13197
|
t[e[n]] != null && (this[e[n]] = t[e[n]]);
|
|
13051
13198
|
}
|
|
13052
|
-
i.prototype.
|
|
13199
|
+
i.prototype.id = 0, i.prototype.type = 0, i.prototype.status = 0, i.prototype.name = "", i.prototype.description = "", i.prototype.error = null, i.prototype.progress = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, !1) : 0, i.prototype.timingInfo = null;
|
|
13053
13200
|
let r;
|
|
13054
13201
|
return Object.defineProperty(i.prototype, "_error", {
|
|
13055
13202
|
get: $util.oneOfGetter(r = ["error"]),
|
|
13056
13203
|
set: $util.oneOfSetter(r)
|
|
13204
|
+
}), Object.defineProperty(i.prototype, "_timingInfo", {
|
|
13205
|
+
get: $util.oneOfGetter(r = ["timingInfo"]),
|
|
13206
|
+
set: $util.oneOfSetter(r)
|
|
13057
13207
|
}), i.create = function(e) {
|
|
13058
13208
|
return new i(e);
|
|
13059
13209
|
}, i.encode = function(e, n) {
|
|
13060
|
-
return n || (n = $Writer.create()), e.
|
|
13210
|
+
return n || (n = $Writer.create()), e.id != null && Object.hasOwnProperty.call(e, "id") && n.uint32(
|
|
13061
13211
|
/* id 1, wireType 0 =*/
|
|
13062
13212
|
8
|
|
13063
|
-
).uint32(e.
|
|
13064
|
-
/* id 2, wireType
|
|
13065
|
-
|
|
13213
|
+
).uint32(e.id), e.type != null && Object.hasOwnProperty.call(e, "type") && n.uint32(
|
|
13214
|
+
/* id 2, wireType 0 =*/
|
|
13215
|
+
16
|
|
13216
|
+
).int32(e.type), e.status != null && Object.hasOwnProperty.call(e, "status") && n.uint32(
|
|
13217
|
+
/* id 3, wireType 0 =*/
|
|
13218
|
+
24
|
|
13219
|
+
).int32(e.status), e.name != null && Object.hasOwnProperty.call(e, "name") && n.uint32(
|
|
13220
|
+
/* id 4, wireType 2 =*/
|
|
13221
|
+
34
|
|
13066
13222
|
).string(e.name), e.description != null && Object.hasOwnProperty.call(e, "description") && n.uint32(
|
|
13067
|
-
/* id 3, wireType 2 =*/
|
|
13068
|
-
26
|
|
13069
|
-
).string(e.description), e.status != null && Object.hasOwnProperty.call(e, "status") && n.uint32(
|
|
13070
|
-
/* id 4, wireType 0 =*/
|
|
13071
|
-
32
|
|
13072
|
-
).int32(e.status), e.error != null && Object.hasOwnProperty.call(e, "error") && n.uint32(
|
|
13073
13223
|
/* id 5, wireType 2 =*/
|
|
13074
13224
|
42
|
|
13225
|
+
).string(e.description), e.error != null && Object.hasOwnProperty.call(e, "error") && n.uint32(
|
|
13226
|
+
/* id 6, wireType 2 =*/
|
|
13227
|
+
50
|
|
13075
13228
|
).string(e.error), e.progress != null && Object.hasOwnProperty.call(e, "progress") && n.uint32(
|
|
13076
|
-
/* id 6, wireType 0 =*/
|
|
13077
|
-
48
|
|
13078
|
-
).uint32(e.progress), e.total != null && Object.hasOwnProperty.call(e, "total") && n.uint32(
|
|
13079
13229
|
/* id 7, wireType 0 =*/
|
|
13080
13230
|
56
|
|
13081
|
-
).
|
|
13231
|
+
).int64(e.progress), e.total != null && Object.hasOwnProperty.call(e, "total") && n.uint32(
|
|
13232
|
+
/* id 8, wireType 0 =*/
|
|
13233
|
+
64
|
|
13234
|
+
).int64(e.total), e.timingInfo != null && Object.hasOwnProperty.call(e, "timingInfo") && $root.sesame.v1.jobs.TimingInfo.encode(e.timingInfo, n.uint32(
|
|
13235
|
+
/* id 9, wireType 2 =*/
|
|
13236
|
+
74
|
|
13237
|
+
).fork()).ldelim(), n;
|
|
13082
13238
|
}, i.encodeDelimited = function(e, n) {
|
|
13083
13239
|
return this.encode(e, n).ldelim();
|
|
13084
13240
|
}, i.decode = function(e, n, s) {
|
|
13085
13241
|
e instanceof $Reader || (e = $Reader.create(e));
|
|
13086
|
-
let a = n === void 0 ? e.len : e.pos + n, d = new $root.sesame.v1.jobs.
|
|
13242
|
+
let a = n === void 0 ? e.len : e.pos + n, d = new $root.sesame.v1.jobs.Job();
|
|
13087
13243
|
for (; e.pos < a; ) {
|
|
13088
13244
|
let u = e.uint32();
|
|
13089
13245
|
if (u === s)
|
|
13090
13246
|
break;
|
|
13091
13247
|
switch (u >>> 3) {
|
|
13092
13248
|
case 1: {
|
|
13093
|
-
d.
|
|
13249
|
+
d.id = e.uint32();
|
|
13094
13250
|
break;
|
|
13095
13251
|
}
|
|
13096
13252
|
case 2: {
|
|
13097
|
-
d.
|
|
13253
|
+
d.type = e.int32();
|
|
13098
13254
|
break;
|
|
13099
13255
|
}
|
|
13100
13256
|
case 3: {
|
|
13101
|
-
d.
|
|
13257
|
+
d.status = e.int32();
|
|
13102
13258
|
break;
|
|
13103
13259
|
}
|
|
13104
13260
|
case 4: {
|
|
13105
|
-
d.
|
|
13261
|
+
d.name = e.string();
|
|
13106
13262
|
break;
|
|
13107
13263
|
}
|
|
13108
13264
|
case 5: {
|
|
13109
|
-
d.
|
|
13265
|
+
d.description = e.string();
|
|
13110
13266
|
break;
|
|
13111
13267
|
}
|
|
13112
13268
|
case 6: {
|
|
13113
|
-
d.
|
|
13269
|
+
d.error = e.string();
|
|
13114
13270
|
break;
|
|
13115
13271
|
}
|
|
13116
13272
|
case 7: {
|
|
13117
|
-
d.
|
|
13273
|
+
d.progress = e.int64();
|
|
13274
|
+
break;
|
|
13275
|
+
}
|
|
13276
|
+
case 8: {
|
|
13277
|
+
d.total = e.int64();
|
|
13278
|
+
break;
|
|
13279
|
+
}
|
|
13280
|
+
case 9: {
|
|
13281
|
+
d.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(e, e.uint32());
|
|
13118
13282
|
break;
|
|
13119
13283
|
}
|
|
13120
13284
|
default:
|
|
@@ -13128,12 +13292,17 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13128
13292
|
}, i.verify = function(e) {
|
|
13129
13293
|
if (typeof e != "object" || e === null)
|
|
13130
13294
|
return "object expected";
|
|
13131
|
-
if (e.
|
|
13132
|
-
return "
|
|
13133
|
-
if (e.
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13295
|
+
if (e.id != null && e.hasOwnProperty("id") && !$util.isInteger(e.id))
|
|
13296
|
+
return "id: integer expected";
|
|
13297
|
+
if (e.type != null && e.hasOwnProperty("type"))
|
|
13298
|
+
switch (e.type) {
|
|
13299
|
+
default:
|
|
13300
|
+
return "type: enum value expected";
|
|
13301
|
+
case 0:
|
|
13302
|
+
case 1:
|
|
13303
|
+
case 2:
|
|
13304
|
+
break;
|
|
13305
|
+
}
|
|
13137
13306
|
if (e.status != null && e.hasOwnProperty("status"))
|
|
13138
13307
|
switch (e.status) {
|
|
13139
13308
|
default:
|
|
@@ -13146,14 +13315,49 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13146
13315
|
case 5:
|
|
13147
13316
|
break;
|
|
13148
13317
|
}
|
|
13149
|
-
|
|
13318
|
+
if (e.name != null && e.hasOwnProperty("name") && !$util.isString(e.name))
|
|
13319
|
+
return "name: string expected";
|
|
13320
|
+
if (e.description != null && e.hasOwnProperty("description") && !$util.isString(e.description))
|
|
13321
|
+
return "description: string expected";
|
|
13322
|
+
if (e.error != null && e.hasOwnProperty("error") && !$util.isString(e.error))
|
|
13323
|
+
return "error: string expected";
|
|
13324
|
+
if (e.progress != null && e.hasOwnProperty("progress") && !$util.isInteger(e.progress) && !(e.progress && $util.isInteger(e.progress.low) && $util.isInteger(e.progress.high)))
|
|
13325
|
+
return "progress: integer|Long expected";
|
|
13326
|
+
if (e.total != null && e.hasOwnProperty("total") && !$util.isInteger(e.total) && !(e.total && $util.isInteger(e.total.low) && $util.isInteger(e.total.high)))
|
|
13327
|
+
return "total: integer|Long expected";
|
|
13328
|
+
if (e.timingInfo != null && e.hasOwnProperty("timingInfo")) {
|
|
13329
|
+
let n = $root.sesame.v1.jobs.TimingInfo.verify(e.timingInfo);
|
|
13330
|
+
if (n)
|
|
13331
|
+
return "timingInfo." + n;
|
|
13332
|
+
}
|
|
13333
|
+
return null;
|
|
13150
13334
|
}, i.fromObject = function(e) {
|
|
13151
|
-
if (e instanceof $root.sesame.v1.jobs.
|
|
13335
|
+
if (e instanceof $root.sesame.v1.jobs.Job)
|
|
13152
13336
|
return e;
|
|
13153
|
-
let n = new $root.sesame.v1.jobs.
|
|
13154
|
-
switch (e.
|
|
13337
|
+
let n = new $root.sesame.v1.jobs.Job();
|
|
13338
|
+
switch (e.id != null && (n.id = e.id >>> 0), e.type) {
|
|
13155
13339
|
default:
|
|
13156
|
-
if (typeof e.
|
|
13340
|
+
if (typeof e.type == "number") {
|
|
13341
|
+
n.type = e.type;
|
|
13342
|
+
break;
|
|
13343
|
+
}
|
|
13344
|
+
break;
|
|
13345
|
+
case "JOB_TYPE_UNSPECIFIED":
|
|
13346
|
+
case 0:
|
|
13347
|
+
n.type = 0;
|
|
13348
|
+
break;
|
|
13349
|
+
case "JOB_TYPE_EXPORT":
|
|
13350
|
+
case 1:
|
|
13351
|
+
n.type = 1;
|
|
13352
|
+
break;
|
|
13353
|
+
case "JOB_TYPE_IMPORT":
|
|
13354
|
+
case 2:
|
|
13355
|
+
n.type = 2;
|
|
13356
|
+
break;
|
|
13357
|
+
}
|
|
13358
|
+
switch (e.status) {
|
|
13359
|
+
default:
|
|
13360
|
+
if (typeof e.status == "number") {
|
|
13157
13361
|
n.status = e.status;
|
|
13158
13362
|
break;
|
|
13159
13363
|
}
|
|
@@ -13183,17 +13387,34 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13183
13387
|
n.status = 5;
|
|
13184
13388
|
break;
|
|
13185
13389
|
}
|
|
13186
|
-
|
|
13390
|
+
if (e.name != null && (n.name = String(e.name)), e.description != null && (n.description = String(e.description)), e.error != null && (n.error = String(e.error)), e.progress != null && ($util.Long ? (n.progress = $util.Long.fromValue(e.progress)).unsigned = !1 : typeof e.progress == "string" ? n.progress = parseInt(e.progress, 10) : typeof e.progress == "number" ? n.progress = e.progress : typeof e.progress == "object" && (n.progress = new $util.LongBits(e.progress.low >>> 0, e.progress.high >>> 0).toNumber())), e.total != null && ($util.Long ? (n.total = $util.Long.fromValue(e.total)).unsigned = !1 : typeof e.total == "string" ? n.total = parseInt(e.total, 10) : typeof e.total == "number" ? n.total = e.total : typeof e.total == "object" && (n.total = new $util.LongBits(e.total.low >>> 0, e.total.high >>> 0).toNumber())), e.timingInfo != null) {
|
|
13391
|
+
if (typeof e.timingInfo != "object")
|
|
13392
|
+
throw TypeError(".sesame.v1.jobs.Job.timingInfo: object expected");
|
|
13393
|
+
n.timingInfo = $root.sesame.v1.jobs.TimingInfo.fromObject(e.timingInfo);
|
|
13394
|
+
}
|
|
13395
|
+
return n;
|
|
13187
13396
|
}, i.toObject = function(e, n) {
|
|
13188
13397
|
n || (n = {});
|
|
13189
13398
|
let s = {};
|
|
13190
|
-
|
|
13399
|
+
if (n.defaults) {
|
|
13400
|
+
if (s.id = 0, s.type = n.enums === String ? "JOB_TYPE_UNSPECIFIED" : 0, s.status = n.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0, s.name = "", s.description = "", $util.Long) {
|
|
13401
|
+
let a = new $util.Long(0, 0, !1);
|
|
13402
|
+
s.progress = n.longs === String ? a.toString() : n.longs === Number ? a.toNumber() : a;
|
|
13403
|
+
} else
|
|
13404
|
+
s.progress = n.longs === String ? "0" : 0;
|
|
13405
|
+
if ($util.Long) {
|
|
13406
|
+
let a = new $util.Long(0, 0, !1);
|
|
13407
|
+
s.total = n.longs === String ? a.toString() : n.longs === Number ? a.toNumber() : a;
|
|
13408
|
+
} else
|
|
13409
|
+
s.total = n.longs === String ? "0" : 0;
|
|
13410
|
+
}
|
|
13411
|
+
return e.id != null && e.hasOwnProperty("id") && (s.id = e.id), e.type != null && e.hasOwnProperty("type") && (s.type = n.enums === String ? $root.sesame.v1.jobs.JobType[e.type] === void 0 ? e.type : $root.sesame.v1.jobs.JobType[e.type] : e.type), e.status != null && e.hasOwnProperty("status") && (s.status = n.enums === String ? $root.sesame.v1.jobs.JobStatus[e.status] === void 0 ? e.status : $root.sesame.v1.jobs.JobStatus[e.status] : e.status), e.name != null && e.hasOwnProperty("name") && (s.name = e.name), e.description != null && e.hasOwnProperty("description") && (s.description = e.description), e.error != null && e.hasOwnProperty("error") && (s.error = e.error, n.oneofs && (s._error = "error")), e.progress != null && e.hasOwnProperty("progress") && (typeof e.progress == "number" ? s.progress = n.longs === String ? String(e.progress) : e.progress : s.progress = n.longs === String ? $util.Long.prototype.toString.call(e.progress) : n.longs === Number ? new $util.LongBits(e.progress.low >>> 0, e.progress.high >>> 0).toNumber() : e.progress), e.total != null && e.hasOwnProperty("total") && (typeof e.total == "number" ? s.total = n.longs === String ? String(e.total) : e.total : s.total = n.longs === String ? $util.Long.prototype.toString.call(e.total) : n.longs === Number ? new $util.LongBits(e.total.low >>> 0, e.total.high >>> 0).toNumber() : e.total), e.timingInfo != null && e.hasOwnProperty("timingInfo") && (s.timingInfo = $root.sesame.v1.jobs.TimingInfo.toObject(e.timingInfo, n), n.oneofs && (s._timingInfo = "timingInfo")), s;
|
|
13191
13412
|
}, i.prototype.toJSON = function() {
|
|
13192
13413
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13193
13414
|
}, i.getTypeUrl = function(e) {
|
|
13194
|
-
return e === void 0 && (e = "type.googleapis.com"), e + "/sesame.v1.jobs.
|
|
13415
|
+
return e === void 0 && (e = "type.googleapis.com"), e + "/sesame.v1.jobs.Job";
|
|
13195
13416
|
}, i;
|
|
13196
|
-
}(), l.
|
|
13417
|
+
}(), l.JobList = function() {
|
|
13197
13418
|
function i(r) {
|
|
13198
13419
|
if (this.jobs = [], r)
|
|
13199
13420
|
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
@@ -13204,7 +13425,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13204
13425
|
}, i.encode = function(t, e) {
|
|
13205
13426
|
if (e || (e = $Writer.create()), t.jobs != null && t.jobs.length)
|
|
13206
13427
|
for (let n = 0; n < t.jobs.length; ++n)
|
|
13207
|
-
$root.sesame.v1.jobs.
|
|
13428
|
+
$root.sesame.v1.jobs.Job.encode(t.jobs[n], e.uint32(
|
|
13208
13429
|
/* id 1, wireType 2 =*/
|
|
13209
13430
|
10
|
|
13210
13431
|
).fork()).ldelim();
|
|
@@ -13213,14 +13434,14 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13213
13434
|
return this.encode(t, e).ldelim();
|
|
13214
13435
|
}, i.decode = function(t, e, n) {
|
|
13215
13436
|
t instanceof $Reader || (t = $Reader.create(t));
|
|
13216
|
-
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.
|
|
13437
|
+
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.JobList();
|
|
13217
13438
|
for (; t.pos < s; ) {
|
|
13218
13439
|
let d = t.uint32();
|
|
13219
13440
|
if (d === n)
|
|
13220
13441
|
break;
|
|
13221
13442
|
switch (d >>> 3) {
|
|
13222
13443
|
case 1: {
|
|
13223
|
-
a.jobs && a.jobs.length || (a.jobs = []), a.jobs.push($root.sesame.v1.jobs.
|
|
13444
|
+
a.jobs && a.jobs.length || (a.jobs = []), a.jobs.push($root.sesame.v1.jobs.Job.decode(t, t.uint32()));
|
|
13224
13445
|
break;
|
|
13225
13446
|
}
|
|
13226
13447
|
default:
|
|
@@ -13238,24 +13459,24 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13238
13459
|
if (!Array.isArray(t.jobs))
|
|
13239
13460
|
return "jobs: array expected";
|
|
13240
13461
|
for (let e = 0; e < t.jobs.length; ++e) {
|
|
13241
|
-
let n = $root.sesame.v1.jobs.
|
|
13462
|
+
let n = $root.sesame.v1.jobs.Job.verify(t.jobs[e]);
|
|
13242
13463
|
if (n)
|
|
13243
13464
|
return "jobs." + n;
|
|
13244
13465
|
}
|
|
13245
13466
|
}
|
|
13246
13467
|
return null;
|
|
13247
13468
|
}, i.fromObject = function(t) {
|
|
13248
|
-
if (t instanceof $root.sesame.v1.jobs.
|
|
13469
|
+
if (t instanceof $root.sesame.v1.jobs.JobList)
|
|
13249
13470
|
return t;
|
|
13250
|
-
let e = new $root.sesame.v1.jobs.
|
|
13471
|
+
let e = new $root.sesame.v1.jobs.JobList();
|
|
13251
13472
|
if (t.jobs) {
|
|
13252
13473
|
if (!Array.isArray(t.jobs))
|
|
13253
|
-
throw TypeError(".sesame.v1.jobs.
|
|
13474
|
+
throw TypeError(".sesame.v1.jobs.JobList.jobs: array expected");
|
|
13254
13475
|
e.jobs = [];
|
|
13255
13476
|
for (let n = 0; n < t.jobs.length; ++n) {
|
|
13256
13477
|
if (typeof t.jobs[n] != "object")
|
|
13257
|
-
throw TypeError(".sesame.v1.jobs.
|
|
13258
|
-
e.jobs[n] = $root.sesame.v1.jobs.
|
|
13478
|
+
throw TypeError(".sesame.v1.jobs.JobList.jobs: object expected");
|
|
13479
|
+
e.jobs[n] = $root.sesame.v1.jobs.Job.fromObject(t.jobs[n]);
|
|
13259
13480
|
}
|
|
13260
13481
|
}
|
|
13261
13482
|
return e;
|
|
@@ -13265,82 +13486,51 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13265
13486
|
if ((e.arrays || e.defaults) && (n.jobs = []), t.jobs && t.jobs.length) {
|
|
13266
13487
|
n.jobs = [];
|
|
13267
13488
|
for (let s = 0; s < t.jobs.length; ++s)
|
|
13268
|
-
n.jobs[s] = $root.sesame.v1.jobs.
|
|
13489
|
+
n.jobs[s] = $root.sesame.v1.jobs.Job.toObject(t.jobs[s], e);
|
|
13269
13490
|
}
|
|
13270
13491
|
return n;
|
|
13271
13492
|
}, i.prototype.toJSON = function() {
|
|
13272
13493
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13273
13494
|
}, i.getTypeUrl = function(t) {
|
|
13274
|
-
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.
|
|
13495
|
+
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.JobList";
|
|
13275
13496
|
}, i;
|
|
13276
|
-
}(), l.
|
|
13497
|
+
}(), l.JobStartRequest = function() {
|
|
13277
13498
|
function i(t) {
|
|
13278
13499
|
if (t)
|
|
13279
13500
|
for (let e = Object.keys(t), n = 0; n < e.length; ++n)
|
|
13280
13501
|
t[e[n]] != null && (this[e[n]] = t[e[n]]);
|
|
13281
13502
|
}
|
|
13282
|
-
i.prototype.
|
|
13503
|
+
i.prototype.exportRequest = null, i.prototype.importRequest = null;
|
|
13283
13504
|
let r;
|
|
13284
|
-
return Object.defineProperty(i.prototype, "
|
|
13285
|
-
get: $util.oneOfGetter(r = ["
|
|
13286
|
-
set: $util.oneOfSetter(r)
|
|
13287
|
-
}), Object.defineProperty(i.prototype, "_timingInfo", {
|
|
13288
|
-
get: $util.oneOfGetter(r = ["timingInfo"]),
|
|
13505
|
+
return Object.defineProperty(i.prototype, "config", {
|
|
13506
|
+
get: $util.oneOfGetter(r = ["exportRequest", "importRequest"]),
|
|
13289
13507
|
set: $util.oneOfSetter(r)
|
|
13290
13508
|
}), i.create = function(e) {
|
|
13291
13509
|
return new i(e);
|
|
13292
13510
|
}, i.encode = function(e, n) {
|
|
13293
|
-
return n || (n = $Writer.create()), e.
|
|
13294
|
-
/* id 1, wireType
|
|
13295
|
-
|
|
13296
|
-
).
|
|
13511
|
+
return n || (n = $Writer.create()), e.exportRequest != null && Object.hasOwnProperty.call(e, "exportRequest") && $root.sesame.v1.jobs.ExportStartRequest.encode(e.exportRequest, n.uint32(
|
|
13512
|
+
/* id 1, wireType 2 =*/
|
|
13513
|
+
10
|
|
13514
|
+
).fork()).ldelim(), e.importRequest != null && Object.hasOwnProperty.call(e, "importRequest") && $root.sesame.v1.jobs.ImportStartRequest.encode(e.importRequest, n.uint32(
|
|
13297
13515
|
/* id 2, wireType 2 =*/
|
|
13298
13516
|
18
|
|
13299
|
-
).string(e.source), e.status != null && Object.hasOwnProperty.call(e, "status") && n.uint32(
|
|
13300
|
-
/* id 3, wireType 0 =*/
|
|
13301
|
-
24
|
|
13302
|
-
).int32(e.status), e.statusText != null && Object.hasOwnProperty.call(e, "statusText") && n.uint32(
|
|
13303
|
-
/* id 4, wireType 2 =*/
|
|
13304
|
-
34
|
|
13305
|
-
).string(e.statusText), e.error != null && Object.hasOwnProperty.call(e, "error") && n.uint32(
|
|
13306
|
-
/* id 5, wireType 2 =*/
|
|
13307
|
-
42
|
|
13308
|
-
).string(e.error), e.timingInfo != null && Object.hasOwnProperty.call(e, "timingInfo") && $root.sesame.v1.jobs.TimingInfo.encode(e.timingInfo, n.uint32(
|
|
13309
|
-
/* id 6, wireType 2 =*/
|
|
13310
|
-
50
|
|
13311
13517
|
).fork()).ldelim(), n;
|
|
13312
13518
|
}, i.encodeDelimited = function(e, n) {
|
|
13313
13519
|
return this.encode(e, n).ldelim();
|
|
13314
13520
|
}, i.decode = function(e, n, s) {
|
|
13315
13521
|
e instanceof $Reader || (e = $Reader.create(e));
|
|
13316
|
-
let a = n === void 0 ? e.len : e.pos + n, d = new $root.sesame.v1.jobs.
|
|
13522
|
+
let a = n === void 0 ? e.len : e.pos + n, d = new $root.sesame.v1.jobs.JobStartRequest();
|
|
13317
13523
|
for (; e.pos < a; ) {
|
|
13318
13524
|
let u = e.uint32();
|
|
13319
13525
|
if (u === s)
|
|
13320
13526
|
break;
|
|
13321
13527
|
switch (u >>> 3) {
|
|
13322
13528
|
case 1: {
|
|
13323
|
-
d.
|
|
13529
|
+
d.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.decode(e, e.uint32());
|
|
13324
13530
|
break;
|
|
13325
13531
|
}
|
|
13326
13532
|
case 2: {
|
|
13327
|
-
d.
|
|
13328
|
-
break;
|
|
13329
|
-
}
|
|
13330
|
-
case 3: {
|
|
13331
|
-
d.status = e.int32();
|
|
13332
|
-
break;
|
|
13333
|
-
}
|
|
13334
|
-
case 4: {
|
|
13335
|
-
d.statusText = e.string();
|
|
13336
|
-
break;
|
|
13337
|
-
}
|
|
13338
|
-
case 5: {
|
|
13339
|
-
d.error = e.string();
|
|
13340
|
-
break;
|
|
13341
|
-
}
|
|
13342
|
-
case 6: {
|
|
13343
|
-
d.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(e, e.uint32());
|
|
13533
|
+
d.importRequest = $root.sesame.v1.jobs.ImportStartRequest.decode(e, e.uint32());
|
|
13344
13534
|
break;
|
|
13345
13535
|
}
|
|
13346
13536
|
default:
|
|
@@ -13354,82 +13544,190 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13354
13544
|
}, i.verify = function(e) {
|
|
13355
13545
|
if (typeof e != "object" || e === null)
|
|
13356
13546
|
return "object expected";
|
|
13357
|
-
|
|
13358
|
-
|
|
13359
|
-
|
|
13360
|
-
|
|
13361
|
-
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
|
|
13365
|
-
|
|
13366
|
-
|
|
13367
|
-
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13547
|
+
let n = {};
|
|
13548
|
+
if (e.exportRequest != null && e.hasOwnProperty("exportRequest")) {
|
|
13549
|
+
n.config = 1;
|
|
13550
|
+
{
|
|
13551
|
+
let s = $root.sesame.v1.jobs.ExportStartRequest.verify(e.exportRequest);
|
|
13552
|
+
if (s)
|
|
13553
|
+
return "exportRequest." + s;
|
|
13554
|
+
}
|
|
13555
|
+
}
|
|
13556
|
+
if (e.importRequest != null && e.hasOwnProperty("importRequest")) {
|
|
13557
|
+
if (n.config === 1)
|
|
13558
|
+
return "config: multiple values";
|
|
13559
|
+
n.config = 1;
|
|
13560
|
+
{
|
|
13561
|
+
let s = $root.sesame.v1.jobs.ImportStartRequest.verify(e.importRequest);
|
|
13562
|
+
if (s)
|
|
13563
|
+
return "importRequest." + s;
|
|
13372
13564
|
}
|
|
13373
|
-
if (e.statusText != null && e.hasOwnProperty("statusText") && !$util.isString(e.statusText))
|
|
13374
|
-
return "statusText: string expected";
|
|
13375
|
-
if (e.error != null && e.hasOwnProperty("error") && !$util.isString(e.error))
|
|
13376
|
-
return "error: string expected";
|
|
13377
|
-
if (e.timingInfo != null && e.hasOwnProperty("timingInfo")) {
|
|
13378
|
-
let n = $root.sesame.v1.jobs.TimingInfo.verify(e.timingInfo);
|
|
13379
|
-
if (n)
|
|
13380
|
-
return "timingInfo." + n;
|
|
13381
13565
|
}
|
|
13382
13566
|
return null;
|
|
13383
13567
|
}, i.fromObject = function(e) {
|
|
13384
|
-
if (e instanceof $root.sesame.v1.jobs.
|
|
13568
|
+
if (e instanceof $root.sesame.v1.jobs.JobStartRequest)
|
|
13385
13569
|
return e;
|
|
13386
|
-
let n = new $root.sesame.v1.jobs.
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
break;
|
|
13392
|
-
}
|
|
13393
|
-
break;
|
|
13394
|
-
case "JOB_STATUS_UNSPECIFIED":
|
|
13395
|
-
case 0:
|
|
13396
|
-
n.status = 0;
|
|
13397
|
-
break;
|
|
13398
|
-
case "JOB_STATUS_PENDING":
|
|
13399
|
-
case 1:
|
|
13400
|
-
n.status = 1;
|
|
13401
|
-
break;
|
|
13402
|
-
case "JOB_STATUS_IN_PROGRESS":
|
|
13403
|
-
case 2:
|
|
13404
|
-
n.status = 2;
|
|
13405
|
-
break;
|
|
13406
|
-
case "JOB_STATUS_COMPLETE":
|
|
13407
|
-
case 3:
|
|
13408
|
-
n.status = 3;
|
|
13409
|
-
break;
|
|
13410
|
-
case "JOB_STATUS_ABORTED":
|
|
13411
|
-
case 4:
|
|
13412
|
-
n.status = 4;
|
|
13413
|
-
break;
|
|
13414
|
-
case "JOB_STATUS_ERROR":
|
|
13415
|
-
case 5:
|
|
13416
|
-
n.status = 5;
|
|
13417
|
-
break;
|
|
13570
|
+
let n = new $root.sesame.v1.jobs.JobStartRequest();
|
|
13571
|
+
if (e.exportRequest != null) {
|
|
13572
|
+
if (typeof e.exportRequest != "object")
|
|
13573
|
+
throw TypeError(".sesame.v1.jobs.JobStartRequest.exportRequest: object expected");
|
|
13574
|
+
n.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.fromObject(e.exportRequest);
|
|
13418
13575
|
}
|
|
13419
|
-
if (e.
|
|
13420
|
-
if (typeof e.
|
|
13421
|
-
throw TypeError(".sesame.v1.jobs.
|
|
13422
|
-
n.
|
|
13576
|
+
if (e.importRequest != null) {
|
|
13577
|
+
if (typeof e.importRequest != "object")
|
|
13578
|
+
throw TypeError(".sesame.v1.jobs.JobStartRequest.importRequest: object expected");
|
|
13579
|
+
n.importRequest = $root.sesame.v1.jobs.ImportStartRequest.fromObject(e.importRequest);
|
|
13423
13580
|
}
|
|
13424
13581
|
return n;
|
|
13425
13582
|
}, i.toObject = function(e, n) {
|
|
13426
13583
|
n || (n = {});
|
|
13427
13584
|
let s = {};
|
|
13428
|
-
return
|
|
13585
|
+
return e.exportRequest != null && e.hasOwnProperty("exportRequest") && (s.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.toObject(e.exportRequest, n), n.oneofs && (s.config = "exportRequest")), e.importRequest != null && e.hasOwnProperty("importRequest") && (s.importRequest = $root.sesame.v1.jobs.ImportStartRequest.toObject(e.importRequest, n), n.oneofs && (s.config = "importRequest")), s;
|
|
13429
13586
|
}, i.prototype.toJSON = function() {
|
|
13430
13587
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13431
13588
|
}, i.getTypeUrl = function(e) {
|
|
13432
|
-
return e === void 0 && (e = "type.googleapis.com"), e + "/sesame.v1.jobs.
|
|
13589
|
+
return e === void 0 && (e = "type.googleapis.com"), e + "/sesame.v1.jobs.JobStartRequest";
|
|
13590
|
+
}, i;
|
|
13591
|
+
}(), l.JobAbortRequest = function() {
|
|
13592
|
+
function i(r) {
|
|
13593
|
+
if (r)
|
|
13594
|
+
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
13595
|
+
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
13596
|
+
}
|
|
13597
|
+
return i.prototype.jobId = 0, i.create = function(t) {
|
|
13598
|
+
return new i(t);
|
|
13599
|
+
}, i.encode = function(t, e) {
|
|
13600
|
+
return e || (e = $Writer.create()), t.jobId != null && Object.hasOwnProperty.call(t, "jobId") && e.uint32(
|
|
13601
|
+
/* id 1, wireType 0 =*/
|
|
13602
|
+
8
|
|
13603
|
+
).uint32(t.jobId), e;
|
|
13604
|
+
}, i.encodeDelimited = function(t, e) {
|
|
13605
|
+
return this.encode(t, e).ldelim();
|
|
13606
|
+
}, i.decode = function(t, e, n) {
|
|
13607
|
+
t instanceof $Reader || (t = $Reader.create(t));
|
|
13608
|
+
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.JobAbortRequest();
|
|
13609
|
+
for (; t.pos < s; ) {
|
|
13610
|
+
let d = t.uint32();
|
|
13611
|
+
if (d === n)
|
|
13612
|
+
break;
|
|
13613
|
+
switch (d >>> 3) {
|
|
13614
|
+
case 1: {
|
|
13615
|
+
a.jobId = t.uint32();
|
|
13616
|
+
break;
|
|
13617
|
+
}
|
|
13618
|
+
default:
|
|
13619
|
+
t.skipType(d & 7);
|
|
13620
|
+
break;
|
|
13621
|
+
}
|
|
13622
|
+
}
|
|
13623
|
+
return a;
|
|
13624
|
+
}, i.decodeDelimited = function(t) {
|
|
13625
|
+
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
13626
|
+
}, i.verify = function(t) {
|
|
13627
|
+
return typeof t != "object" || t === null ? "object expected" : t.jobId != null && t.hasOwnProperty("jobId") && !$util.isInteger(t.jobId) ? "jobId: integer expected" : null;
|
|
13628
|
+
}, i.fromObject = function(t) {
|
|
13629
|
+
if (t instanceof $root.sesame.v1.jobs.JobAbortRequest)
|
|
13630
|
+
return t;
|
|
13631
|
+
let e = new $root.sesame.v1.jobs.JobAbortRequest();
|
|
13632
|
+
return t.jobId != null && (e.jobId = t.jobId >>> 0), e;
|
|
13633
|
+
}, i.toObject = function(t, e) {
|
|
13634
|
+
e || (e = {});
|
|
13635
|
+
let n = {};
|
|
13636
|
+
return e.defaults && (n.jobId = 0), t.jobId != null && t.hasOwnProperty("jobId") && (n.jobId = t.jobId), n;
|
|
13637
|
+
}, i.prototype.toJSON = function() {
|
|
13638
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13639
|
+
}, i.getTypeUrl = function(t) {
|
|
13640
|
+
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.JobAbortRequest";
|
|
13641
|
+
}, i;
|
|
13642
|
+
}(), l.JobStatusRequest = function() {
|
|
13643
|
+
function i(r) {
|
|
13644
|
+
if (r)
|
|
13645
|
+
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
13646
|
+
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
13647
|
+
}
|
|
13648
|
+
return i.prototype.jobId = 0, i.create = function(t) {
|
|
13649
|
+
return new i(t);
|
|
13650
|
+
}, i.encode = function(t, e) {
|
|
13651
|
+
return e || (e = $Writer.create()), t.jobId != null && Object.hasOwnProperty.call(t, "jobId") && e.uint32(
|
|
13652
|
+
/* id 1, wireType 0 =*/
|
|
13653
|
+
8
|
|
13654
|
+
).uint32(t.jobId), e;
|
|
13655
|
+
}, i.encodeDelimited = function(t, e) {
|
|
13656
|
+
return this.encode(t, e).ldelim();
|
|
13657
|
+
}, i.decode = function(t, e, n) {
|
|
13658
|
+
t instanceof $Reader || (t = $Reader.create(t));
|
|
13659
|
+
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.JobStatusRequest();
|
|
13660
|
+
for (; t.pos < s; ) {
|
|
13661
|
+
let d = t.uint32();
|
|
13662
|
+
if (d === n)
|
|
13663
|
+
break;
|
|
13664
|
+
switch (d >>> 3) {
|
|
13665
|
+
case 1: {
|
|
13666
|
+
a.jobId = t.uint32();
|
|
13667
|
+
break;
|
|
13668
|
+
}
|
|
13669
|
+
default:
|
|
13670
|
+
t.skipType(d & 7);
|
|
13671
|
+
break;
|
|
13672
|
+
}
|
|
13673
|
+
}
|
|
13674
|
+
return a;
|
|
13675
|
+
}, i.decodeDelimited = function(t) {
|
|
13676
|
+
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
13677
|
+
}, i.verify = function(t) {
|
|
13678
|
+
return typeof t != "object" || t === null ? "object expected" : t.jobId != null && t.hasOwnProperty("jobId") && !$util.isInteger(t.jobId) ? "jobId: integer expected" : null;
|
|
13679
|
+
}, i.fromObject = function(t) {
|
|
13680
|
+
if (t instanceof $root.sesame.v1.jobs.JobStatusRequest)
|
|
13681
|
+
return t;
|
|
13682
|
+
let e = new $root.sesame.v1.jobs.JobStatusRequest();
|
|
13683
|
+
return t.jobId != null && (e.jobId = t.jobId >>> 0), e;
|
|
13684
|
+
}, i.toObject = function(t, e) {
|
|
13685
|
+
e || (e = {});
|
|
13686
|
+
let n = {};
|
|
13687
|
+
return e.defaults && (n.jobId = 0), t.jobId != null && t.hasOwnProperty("jobId") && (n.jobId = t.jobId), n;
|
|
13688
|
+
}, i.prototype.toJSON = function() {
|
|
13689
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13690
|
+
}, i.getTypeUrl = function(t) {
|
|
13691
|
+
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.JobStatusRequest";
|
|
13692
|
+
}, i;
|
|
13693
|
+
}(), l.JobListRequest = function() {
|
|
13694
|
+
function i(r) {
|
|
13695
|
+
if (r)
|
|
13696
|
+
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
13697
|
+
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
13698
|
+
}
|
|
13699
|
+
return i.create = function(t) {
|
|
13700
|
+
return new i(t);
|
|
13701
|
+
}, i.encode = function(t, e) {
|
|
13702
|
+
return e || (e = $Writer.create()), e;
|
|
13703
|
+
}, i.encodeDelimited = function(t, e) {
|
|
13704
|
+
return this.encode(t, e).ldelim();
|
|
13705
|
+
}, i.decode = function(t, e, n) {
|
|
13706
|
+
t instanceof $Reader || (t = $Reader.create(t));
|
|
13707
|
+
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.JobListRequest();
|
|
13708
|
+
for (; t.pos < s; ) {
|
|
13709
|
+
let d = t.uint32();
|
|
13710
|
+
if (d === n)
|
|
13711
|
+
break;
|
|
13712
|
+
switch (d >>> 3) {
|
|
13713
|
+
default:
|
|
13714
|
+
t.skipType(d & 7);
|
|
13715
|
+
break;
|
|
13716
|
+
}
|
|
13717
|
+
}
|
|
13718
|
+
return a;
|
|
13719
|
+
}, i.decodeDelimited = function(t) {
|
|
13720
|
+
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
13721
|
+
}, i.verify = function(t) {
|
|
13722
|
+
return typeof t != "object" || t === null ? "object expected" : null;
|
|
13723
|
+
}, i.fromObject = function(t) {
|
|
13724
|
+
return t instanceof $root.sesame.v1.jobs.JobListRequest ? t : new $root.sesame.v1.jobs.JobListRequest();
|
|
13725
|
+
}, i.toObject = function() {
|
|
13726
|
+
return {};
|
|
13727
|
+
}, i.prototype.toJSON = function() {
|
|
13728
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13729
|
+
}, i.getTypeUrl = function(t) {
|
|
13730
|
+
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.JobListRequest";
|
|
13433
13731
|
}, i;
|
|
13434
13732
|
}(), l.ExportConfiguration = function() {
|
|
13435
13733
|
function i(r) {
|
|
@@ -13665,6 +13963,11 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13665
13963
|
case 4:
|
|
13666
13964
|
case 5:
|
|
13667
13965
|
case 6:
|
|
13966
|
+
case 7:
|
|
13967
|
+
case 64:
|
|
13968
|
+
case 65:
|
|
13969
|
+
case 66:
|
|
13970
|
+
case 67:
|
|
13668
13971
|
break;
|
|
13669
13972
|
}
|
|
13670
13973
|
if (t.width != null && t.hasOwnProperty("width") && !$util.isInteger(t.width))
|
|
@@ -13716,6 +14019,13 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13716
14019
|
case 2:
|
|
13717
14020
|
case 3:
|
|
13718
14021
|
case 4:
|
|
14022
|
+
case 5:
|
|
14023
|
+
case 6:
|
|
14024
|
+
case 7:
|
|
14025
|
+
case 64:
|
|
14026
|
+
case 65:
|
|
14027
|
+
case 66:
|
|
14028
|
+
case 67:
|
|
13719
14029
|
break;
|
|
13720
14030
|
}
|
|
13721
14031
|
if (t.audioBitrateKbps != null && t.hasOwnProperty("audioBitrateKbps") && !$util.isInteger(t.audioBitrateKbps))
|
|
@@ -13771,34 +14081,54 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13771
14081
|
break;
|
|
13772
14082
|
}
|
|
13773
14083
|
break;
|
|
13774
|
-
case "
|
|
14084
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
13775
14085
|
case 0:
|
|
13776
14086
|
e.videoCodec = 0;
|
|
13777
14087
|
break;
|
|
13778
|
-
case "
|
|
14088
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
13779
14089
|
case 1:
|
|
13780
14090
|
e.videoCodec = 1;
|
|
13781
14091
|
break;
|
|
13782
|
-
case "
|
|
14092
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
13783
14093
|
case 2:
|
|
13784
14094
|
e.videoCodec = 2;
|
|
13785
14095
|
break;
|
|
13786
|
-
case "
|
|
14096
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
13787
14097
|
case 3:
|
|
13788
14098
|
e.videoCodec = 3;
|
|
13789
14099
|
break;
|
|
13790
|
-
case "
|
|
14100
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
13791
14101
|
case 4:
|
|
13792
14102
|
e.videoCodec = 4;
|
|
13793
14103
|
break;
|
|
13794
|
-
case "
|
|
14104
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
13795
14105
|
case 5:
|
|
13796
14106
|
e.videoCodec = 5;
|
|
13797
14107
|
break;
|
|
13798
|
-
case "
|
|
14108
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
13799
14109
|
case 6:
|
|
13800
14110
|
e.videoCodec = 6;
|
|
13801
14111
|
break;
|
|
14112
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
14113
|
+
case 7:
|
|
14114
|
+
e.videoCodec = 7;
|
|
14115
|
+
break;
|
|
14116
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
14117
|
+
case 64:
|
|
14118
|
+
e.videoCodec = 64;
|
|
14119
|
+
break;
|
|
14120
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
14121
|
+
case 65:
|
|
14122
|
+
e.videoCodec = 65;
|
|
14123
|
+
break;
|
|
14124
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
14125
|
+
case 66:
|
|
14126
|
+
e.videoCodec = 66;
|
|
14127
|
+
break;
|
|
14128
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
14129
|
+
case 67:
|
|
14130
|
+
e.videoCodec = 67;
|
|
14131
|
+
break;
|
|
13802
14132
|
}
|
|
13803
14133
|
switch (t.width != null && (e.width = t.width >>> 0), t.height != null && (e.height = t.height >>> 0), t.fpsNum != null && (e.fpsNum = t.fpsNum >>> 0), t.fpsDen != null && (e.fpsDen = t.fpsDen >>> 0), t.rateControl) {
|
|
13804
14134
|
default:
|
|
@@ -13831,26 +14161,54 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13831
14161
|
break;
|
|
13832
14162
|
}
|
|
13833
14163
|
break;
|
|
13834
|
-
case "
|
|
14164
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
13835
14165
|
case 0:
|
|
13836
14166
|
e.audioCodec = 0;
|
|
13837
14167
|
break;
|
|
13838
|
-
case "
|
|
14168
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
13839
14169
|
case 1:
|
|
13840
14170
|
e.audioCodec = 1;
|
|
13841
14171
|
break;
|
|
13842
|
-
case "
|
|
14172
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
13843
14173
|
case 2:
|
|
13844
14174
|
e.audioCodec = 2;
|
|
13845
14175
|
break;
|
|
13846
|
-
case "
|
|
14176
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
13847
14177
|
case 3:
|
|
13848
14178
|
e.audioCodec = 3;
|
|
13849
14179
|
break;
|
|
13850
|
-
case "
|
|
14180
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
13851
14181
|
case 4:
|
|
13852
14182
|
e.audioCodec = 4;
|
|
13853
14183
|
break;
|
|
14184
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
14185
|
+
case 5:
|
|
14186
|
+
e.audioCodec = 5;
|
|
14187
|
+
break;
|
|
14188
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
14189
|
+
case 6:
|
|
14190
|
+
e.audioCodec = 6;
|
|
14191
|
+
break;
|
|
14192
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
14193
|
+
case 7:
|
|
14194
|
+
e.audioCodec = 7;
|
|
14195
|
+
break;
|
|
14196
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
14197
|
+
case 64:
|
|
14198
|
+
e.audioCodec = 64;
|
|
14199
|
+
break;
|
|
14200
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
14201
|
+
case 65:
|
|
14202
|
+
e.audioCodec = 65;
|
|
14203
|
+
break;
|
|
14204
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
14205
|
+
case 66:
|
|
14206
|
+
e.audioCodec = 66;
|
|
14207
|
+
break;
|
|
14208
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
14209
|
+
case 67:
|
|
14210
|
+
e.audioCodec = 67;
|
|
14211
|
+
break;
|
|
13854
14212
|
}
|
|
13855
14213
|
if (t.audioBitrateKbps != null && (e.audioBitrateKbps = t.audioBitrateKbps >>> 0), t.audioSampleRateHz != null && (e.audioSampleRateHz = t.audioSampleRateHz >>> 0), t.audioChannels != null && (e.audioChannels = t.audioChannels >>> 0), t.audioRouting) {
|
|
13856
14214
|
if (!Array.isArray(t.audioRouting))
|
|
@@ -13863,7 +14221,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13863
14221
|
}, i.toObject = function(t, e) {
|
|
13864
14222
|
e || (e = {});
|
|
13865
14223
|
let n = {};
|
|
13866
|
-
if ((e.arrays || e.defaults) && (n.audioRouting = []), e.defaults && (n.filename = "", n.container = e.enums === String ? "CONTAINER_FORMAT_UNSPECIFIED" : 0, n.videoCodec = e.enums === String ? "
|
|
14224
|
+
if ((e.arrays || e.defaults) && (n.audioRouting = []), e.defaults && (n.filename = "", n.container = e.enums === String ? "CONTAINER_FORMAT_UNSPECIFIED" : 0, n.videoCodec = e.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0, n.width = 0, n.height = 0, n.fpsNum = 0, n.fpsDen = 0, n.rateControl = e.enums === String ? "RATE_CONTROL_MODE_UNSPECIFIED" : 0, n.videoBitrateKbps = 0, n.maxVideoBitrateKbps = 0, n.gopSize = 0, n.maxBFrames = 0, n.profile = "", n.level = "", n.pixelFormat = "", n.colorPrimaries = "", n.colorTransfer = "", n.colorMatrix = "", n.fullRange = !1, n.audioCodec = e.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0, n.audioBitrateKbps = 0, n.audioSampleRateHz = 0, n.audioChannels = 0), t.filename != null && t.hasOwnProperty("filename") && (n.filename = t.filename), t.container != null && t.hasOwnProperty("container") && (n.container = e.enums === String ? $root.sesame.v1.jobs.ContainerFormat[t.container] === void 0 ? t.container : $root.sesame.v1.jobs.ContainerFormat[t.container] : t.container), t.videoCodec != null && t.hasOwnProperty("videoCodec") && (n.videoCodec = e.enums === String ? $root.sesame.v1.common.CodecType[t.videoCodec] === void 0 ? t.videoCodec : $root.sesame.v1.common.CodecType[t.videoCodec] : t.videoCodec), t.width != null && t.hasOwnProperty("width") && (n.width = t.width), t.height != null && t.hasOwnProperty("height") && (n.height = t.height), t.fpsNum != null && t.hasOwnProperty("fpsNum") && (n.fpsNum = t.fpsNum), t.fpsDen != null && t.hasOwnProperty("fpsDen") && (n.fpsDen = t.fpsDen), t.rateControl != null && t.hasOwnProperty("rateControl") && (n.rateControl = e.enums === String ? $root.sesame.v1.jobs.RateControlMode[t.rateControl] === void 0 ? t.rateControl : $root.sesame.v1.jobs.RateControlMode[t.rateControl] : t.rateControl), t.videoBitrateKbps != null && t.hasOwnProperty("videoBitrateKbps") && (n.videoBitrateKbps = t.videoBitrateKbps), t.maxVideoBitrateKbps != null && t.hasOwnProperty("maxVideoBitrateKbps") && (n.maxVideoBitrateKbps = t.maxVideoBitrateKbps), t.gopSize != null && t.hasOwnProperty("gopSize") && (n.gopSize = t.gopSize), t.maxBFrames != null && t.hasOwnProperty("maxBFrames") && (n.maxBFrames = t.maxBFrames), t.profile != null && t.hasOwnProperty("profile") && (n.profile = t.profile), t.level != null && t.hasOwnProperty("level") && (n.level = t.level), t.pixelFormat != null && t.hasOwnProperty("pixelFormat") && (n.pixelFormat = t.pixelFormat), t.colorPrimaries != null && t.hasOwnProperty("colorPrimaries") && (n.colorPrimaries = t.colorPrimaries), t.colorTransfer != null && t.hasOwnProperty("colorTransfer") && (n.colorTransfer = t.colorTransfer), t.colorMatrix != null && t.hasOwnProperty("colorMatrix") && (n.colorMatrix = t.colorMatrix), t.fullRange != null && t.hasOwnProperty("fullRange") && (n.fullRange = t.fullRange), t.audioCodec != null && t.hasOwnProperty("audioCodec") && (n.audioCodec = e.enums === String ? $root.sesame.v1.common.CodecType[t.audioCodec] === void 0 ? t.audioCodec : $root.sesame.v1.common.CodecType[t.audioCodec] : t.audioCodec), t.audioBitrateKbps != null && t.hasOwnProperty("audioBitrateKbps") && (n.audioBitrateKbps = t.audioBitrateKbps), t.audioSampleRateHz != null && t.hasOwnProperty("audioSampleRateHz") && (n.audioSampleRateHz = t.audioSampleRateHz), t.audioChannels != null && t.hasOwnProperty("audioChannels") && (n.audioChannels = t.audioChannels), t.audioRouting && t.audioRouting.length) {
|
|
13867
14225
|
n.audioRouting = [];
|
|
13868
14226
|
for (let s = 0; s < t.audioRouting.length; ++s)
|
|
13869
14227
|
n.audioRouting[s] = t.audioRouting[s];
|
|
@@ -13971,147 +14329,6 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
13971
14329
|
}, i.getTypeUrl = function(t) {
|
|
13972
14330
|
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.ExportStartRequest";
|
|
13973
14331
|
}, i;
|
|
13974
|
-
}(), l.ExportAbortRequest = function() {
|
|
13975
|
-
function i(r) {
|
|
13976
|
-
if (r)
|
|
13977
|
-
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
13978
|
-
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
13979
|
-
}
|
|
13980
|
-
return i.prototype.jobId = 0, i.create = function(t) {
|
|
13981
|
-
return new i(t);
|
|
13982
|
-
}, i.encode = function(t, e) {
|
|
13983
|
-
return e || (e = $Writer.create()), t.jobId != null && Object.hasOwnProperty.call(t, "jobId") && e.uint32(
|
|
13984
|
-
/* id 1, wireType 0 =*/
|
|
13985
|
-
8
|
|
13986
|
-
).uint32(t.jobId), e;
|
|
13987
|
-
}, i.encodeDelimited = function(t, e) {
|
|
13988
|
-
return this.encode(t, e).ldelim();
|
|
13989
|
-
}, i.decode = function(t, e, n) {
|
|
13990
|
-
t instanceof $Reader || (t = $Reader.create(t));
|
|
13991
|
-
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.ExportAbortRequest();
|
|
13992
|
-
for (; t.pos < s; ) {
|
|
13993
|
-
let d = t.uint32();
|
|
13994
|
-
if (d === n)
|
|
13995
|
-
break;
|
|
13996
|
-
switch (d >>> 3) {
|
|
13997
|
-
case 1: {
|
|
13998
|
-
a.jobId = t.uint32();
|
|
13999
|
-
break;
|
|
14000
|
-
}
|
|
14001
|
-
default:
|
|
14002
|
-
t.skipType(d & 7);
|
|
14003
|
-
break;
|
|
14004
|
-
}
|
|
14005
|
-
}
|
|
14006
|
-
return a;
|
|
14007
|
-
}, i.decodeDelimited = function(t) {
|
|
14008
|
-
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
14009
|
-
}, i.verify = function(t) {
|
|
14010
|
-
return typeof t != "object" || t === null ? "object expected" : t.jobId != null && t.hasOwnProperty("jobId") && !$util.isInteger(t.jobId) ? "jobId: integer expected" : null;
|
|
14011
|
-
}, i.fromObject = function(t) {
|
|
14012
|
-
if (t instanceof $root.sesame.v1.jobs.ExportAbortRequest)
|
|
14013
|
-
return t;
|
|
14014
|
-
let e = new $root.sesame.v1.jobs.ExportAbortRequest();
|
|
14015
|
-
return t.jobId != null && (e.jobId = t.jobId >>> 0), e;
|
|
14016
|
-
}, i.toObject = function(t, e) {
|
|
14017
|
-
e || (e = {});
|
|
14018
|
-
let n = {};
|
|
14019
|
-
return e.defaults && (n.jobId = 0), t.jobId != null && t.hasOwnProperty("jobId") && (n.jobId = t.jobId), n;
|
|
14020
|
-
}, i.prototype.toJSON = function() {
|
|
14021
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14022
|
-
}, i.getTypeUrl = function(t) {
|
|
14023
|
-
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.ExportAbortRequest";
|
|
14024
|
-
}, i;
|
|
14025
|
-
}(), l.ExportStatusRequest = function() {
|
|
14026
|
-
function i(r) {
|
|
14027
|
-
if (r)
|
|
14028
|
-
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
14029
|
-
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
14030
|
-
}
|
|
14031
|
-
return i.prototype.jobId = 0, i.create = function(t) {
|
|
14032
|
-
return new i(t);
|
|
14033
|
-
}, i.encode = function(t, e) {
|
|
14034
|
-
return e || (e = $Writer.create()), t.jobId != null && Object.hasOwnProperty.call(t, "jobId") && e.uint32(
|
|
14035
|
-
/* id 1, wireType 0 =*/
|
|
14036
|
-
8
|
|
14037
|
-
).uint32(t.jobId), e;
|
|
14038
|
-
}, i.encodeDelimited = function(t, e) {
|
|
14039
|
-
return this.encode(t, e).ldelim();
|
|
14040
|
-
}, i.decode = function(t, e, n) {
|
|
14041
|
-
t instanceof $Reader || (t = $Reader.create(t));
|
|
14042
|
-
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.ExportStatusRequest();
|
|
14043
|
-
for (; t.pos < s; ) {
|
|
14044
|
-
let d = t.uint32();
|
|
14045
|
-
if (d === n)
|
|
14046
|
-
break;
|
|
14047
|
-
switch (d >>> 3) {
|
|
14048
|
-
case 1: {
|
|
14049
|
-
a.jobId = t.uint32();
|
|
14050
|
-
break;
|
|
14051
|
-
}
|
|
14052
|
-
default:
|
|
14053
|
-
t.skipType(d & 7);
|
|
14054
|
-
break;
|
|
14055
|
-
}
|
|
14056
|
-
}
|
|
14057
|
-
return a;
|
|
14058
|
-
}, i.decodeDelimited = function(t) {
|
|
14059
|
-
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
14060
|
-
}, i.verify = function(t) {
|
|
14061
|
-
return typeof t != "object" || t === null ? "object expected" : t.jobId != null && t.hasOwnProperty("jobId") && !$util.isInteger(t.jobId) ? "jobId: integer expected" : null;
|
|
14062
|
-
}, i.fromObject = function(t) {
|
|
14063
|
-
if (t instanceof $root.sesame.v1.jobs.ExportStatusRequest)
|
|
14064
|
-
return t;
|
|
14065
|
-
let e = new $root.sesame.v1.jobs.ExportStatusRequest();
|
|
14066
|
-
return t.jobId != null && (e.jobId = t.jobId >>> 0), e;
|
|
14067
|
-
}, i.toObject = function(t, e) {
|
|
14068
|
-
e || (e = {});
|
|
14069
|
-
let n = {};
|
|
14070
|
-
return e.defaults && (n.jobId = 0), t.jobId != null && t.hasOwnProperty("jobId") && (n.jobId = t.jobId), n;
|
|
14071
|
-
}, i.prototype.toJSON = function() {
|
|
14072
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14073
|
-
}, i.getTypeUrl = function(t) {
|
|
14074
|
-
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.ExportStatusRequest";
|
|
14075
|
-
}, i;
|
|
14076
|
-
}(), l.ExportListRequest = function() {
|
|
14077
|
-
function i(r) {
|
|
14078
|
-
if (r)
|
|
14079
|
-
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
14080
|
-
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
14081
|
-
}
|
|
14082
|
-
return i.create = function(t) {
|
|
14083
|
-
return new i(t);
|
|
14084
|
-
}, i.encode = function(t, e) {
|
|
14085
|
-
return e || (e = $Writer.create()), e;
|
|
14086
|
-
}, i.encodeDelimited = function(t, e) {
|
|
14087
|
-
return this.encode(t, e).ldelim();
|
|
14088
|
-
}, i.decode = function(t, e, n) {
|
|
14089
|
-
t instanceof $Reader || (t = $Reader.create(t));
|
|
14090
|
-
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.ExportListRequest();
|
|
14091
|
-
for (; t.pos < s; ) {
|
|
14092
|
-
let d = t.uint32();
|
|
14093
|
-
if (d === n)
|
|
14094
|
-
break;
|
|
14095
|
-
switch (d >>> 3) {
|
|
14096
|
-
default:
|
|
14097
|
-
t.skipType(d & 7);
|
|
14098
|
-
break;
|
|
14099
|
-
}
|
|
14100
|
-
}
|
|
14101
|
-
return a;
|
|
14102
|
-
}, i.decodeDelimited = function(t) {
|
|
14103
|
-
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
14104
|
-
}, i.verify = function(t) {
|
|
14105
|
-
return typeof t != "object" || t === null ? "object expected" : null;
|
|
14106
|
-
}, i.fromObject = function(t) {
|
|
14107
|
-
return t instanceof $root.sesame.v1.jobs.ExportListRequest ? t : new $root.sesame.v1.jobs.ExportListRequest();
|
|
14108
|
-
}, i.toObject = function() {
|
|
14109
|
-
return {};
|
|
14110
|
-
}, i.prototype.toJSON = function() {
|
|
14111
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14112
|
-
}, i.getTypeUrl = function(t) {
|
|
14113
|
-
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.ExportListRequest";
|
|
14114
|
-
}, i;
|
|
14115
14332
|
}(), l.ImportConfiguration = function() {
|
|
14116
14333
|
function i(r) {
|
|
14117
14334
|
if (this.audioRouting = [], r)
|
|
@@ -14233,198 +14450,40 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
14233
14450
|
n.audioRouting = [];
|
|
14234
14451
|
for (let s = 0; s < t.audioRouting.length; ++s)
|
|
14235
14452
|
n.audioRouting[s] = t.audioRouting[s];
|
|
14236
|
-
}
|
|
14237
|
-
return t.dstRecorderId != null && t.hasOwnProperty("dstRecorderId") && (n.dstRecorderId = t.dstRecorderId), t.dstClipId != null && t.hasOwnProperty("dstClipId") && (typeof t.dstClipId == "number" ? n.dstClipId = e.longs === String ? String(t.dstClipId) : t.dstClipId : n.dstClipId = e.longs === String ? $util.Long.prototype.toString.call(t.dstClipId) : e.longs === Number ? new $util.LongBits(t.dstClipId.low >>> 0, t.dstClipId.high >>> 0).toNumber(!0) : t.dstClipId), t.dstClipName != null && t.hasOwnProperty("dstClipName") && (n.dstClipName = t.dstClipName), t.dstClipUserData != null && t.hasOwnProperty("dstClipUserData") && (n.dstClipUserData = t.dstClipUserData), n;
|
|
14238
|
-
}, i.prototype.toJSON = function() {
|
|
14239
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14240
|
-
}, i.getTypeUrl = function(t) {
|
|
14241
|
-
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.ImportConfiguration";
|
|
14242
|
-
}, i;
|
|
14243
|
-
}(), l.ImportStartRequest = function() {
|
|
14244
|
-
function i(r) {
|
|
14245
|
-
if (r)
|
|
14246
|
-
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
14247
|
-
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
14248
|
-
}
|
|
14249
|
-
return i.prototype.config = null, i.create = function(t) {
|
|
14250
|
-
return new i(t);
|
|
14251
|
-
}, i.encode = function(t, e) {
|
|
14252
|
-
return e || (e = $Writer.create()), t.config != null && Object.hasOwnProperty.call(t, "config") && $root.sesame.v1.jobs.ImportConfiguration.encode(t.config, e.uint32(
|
|
14253
|
-
/* id 1, wireType 2 =*/
|
|
14254
|
-
10
|
|
14255
|
-
).fork()).ldelim(), e;
|
|
14256
|
-
}, i.encodeDelimited = function(t, e) {
|
|
14257
|
-
return this.encode(t, e).ldelim();
|
|
14258
|
-
}, i.decode = function(t, e, n) {
|
|
14259
|
-
t instanceof $Reader || (t = $Reader.create(t));
|
|
14260
|
-
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
14261
|
-
for (; t.pos < s; ) {
|
|
14262
|
-
let d = t.uint32();
|
|
14263
|
-
if (d === n)
|
|
14264
|
-
break;
|
|
14265
|
-
switch (d >>> 3) {
|
|
14266
|
-
case 1: {
|
|
14267
|
-
a.config = $root.sesame.v1.jobs.ImportConfiguration.decode(t, t.uint32());
|
|
14268
|
-
break;
|
|
14269
|
-
}
|
|
14270
|
-
default:
|
|
14271
|
-
t.skipType(d & 7);
|
|
14272
|
-
break;
|
|
14273
|
-
}
|
|
14274
|
-
}
|
|
14275
|
-
return a;
|
|
14276
|
-
}, i.decodeDelimited = function(t) {
|
|
14277
|
-
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
14278
|
-
}, i.verify = function(t) {
|
|
14279
|
-
if (typeof t != "object" || t === null)
|
|
14280
|
-
return "object expected";
|
|
14281
|
-
if (t.config != null && t.hasOwnProperty("config")) {
|
|
14282
|
-
let e = $root.sesame.v1.jobs.ImportConfiguration.verify(t.config);
|
|
14283
|
-
if (e)
|
|
14284
|
-
return "config." + e;
|
|
14285
|
-
}
|
|
14286
|
-
return null;
|
|
14287
|
-
}, i.fromObject = function(t) {
|
|
14288
|
-
if (t instanceof $root.sesame.v1.jobs.ImportStartRequest)
|
|
14289
|
-
return t;
|
|
14290
|
-
let e = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
14291
|
-
if (t.config != null) {
|
|
14292
|
-
if (typeof t.config != "object")
|
|
14293
|
-
throw TypeError(".sesame.v1.jobs.ImportStartRequest.config: object expected");
|
|
14294
|
-
e.config = $root.sesame.v1.jobs.ImportConfiguration.fromObject(t.config);
|
|
14295
|
-
}
|
|
14296
|
-
return e;
|
|
14297
|
-
}, i.toObject = function(t, e) {
|
|
14298
|
-
e || (e = {});
|
|
14299
|
-
let n = {};
|
|
14300
|
-
return e.defaults && (n.config = null), t.config != null && t.hasOwnProperty("config") && (n.config = $root.sesame.v1.jobs.ImportConfiguration.toObject(t.config, e)), n;
|
|
14301
|
-
}, i.prototype.toJSON = function() {
|
|
14302
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14303
|
-
}, i.getTypeUrl = function(t) {
|
|
14304
|
-
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.ImportStartRequest";
|
|
14305
|
-
}, i;
|
|
14306
|
-
}(), l.ImportAbortRequest = function() {
|
|
14307
|
-
function i(r) {
|
|
14308
|
-
if (r)
|
|
14309
|
-
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
14310
|
-
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
14311
|
-
}
|
|
14312
|
-
return i.prototype.jobId = 0, i.create = function(t) {
|
|
14313
|
-
return new i(t);
|
|
14314
|
-
}, i.encode = function(t, e) {
|
|
14315
|
-
return e || (e = $Writer.create()), t.jobId != null && Object.hasOwnProperty.call(t, "jobId") && e.uint32(
|
|
14316
|
-
/* id 1, wireType 0 =*/
|
|
14317
|
-
8
|
|
14318
|
-
).uint32(t.jobId), e;
|
|
14319
|
-
}, i.encodeDelimited = function(t, e) {
|
|
14320
|
-
return this.encode(t, e).ldelim();
|
|
14321
|
-
}, i.decode = function(t, e, n) {
|
|
14322
|
-
t instanceof $Reader || (t = $Reader.create(t));
|
|
14323
|
-
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.ImportAbortRequest();
|
|
14324
|
-
for (; t.pos < s; ) {
|
|
14325
|
-
let d = t.uint32();
|
|
14326
|
-
if (d === n)
|
|
14327
|
-
break;
|
|
14328
|
-
switch (d >>> 3) {
|
|
14329
|
-
case 1: {
|
|
14330
|
-
a.jobId = t.uint32();
|
|
14331
|
-
break;
|
|
14332
|
-
}
|
|
14333
|
-
default:
|
|
14334
|
-
t.skipType(d & 7);
|
|
14335
|
-
break;
|
|
14336
|
-
}
|
|
14337
|
-
}
|
|
14338
|
-
return a;
|
|
14339
|
-
}, i.decodeDelimited = function(t) {
|
|
14340
|
-
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
14341
|
-
}, i.verify = function(t) {
|
|
14342
|
-
return typeof t != "object" || t === null ? "object expected" : t.jobId != null && t.hasOwnProperty("jobId") && !$util.isInteger(t.jobId) ? "jobId: integer expected" : null;
|
|
14343
|
-
}, i.fromObject = function(t) {
|
|
14344
|
-
if (t instanceof $root.sesame.v1.jobs.ImportAbortRequest)
|
|
14345
|
-
return t;
|
|
14346
|
-
let e = new $root.sesame.v1.jobs.ImportAbortRequest();
|
|
14347
|
-
return t.jobId != null && (e.jobId = t.jobId >>> 0), e;
|
|
14348
|
-
}, i.toObject = function(t, e) {
|
|
14349
|
-
e || (e = {});
|
|
14350
|
-
let n = {};
|
|
14351
|
-
return e.defaults && (n.jobId = 0), t.jobId != null && t.hasOwnProperty("jobId") && (n.jobId = t.jobId), n;
|
|
14352
|
-
}, i.prototype.toJSON = function() {
|
|
14353
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14354
|
-
}, i.getTypeUrl = function(t) {
|
|
14355
|
-
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.ImportAbortRequest";
|
|
14356
|
-
}, i;
|
|
14357
|
-
}(), l.ImportStatusRequest = function() {
|
|
14358
|
-
function i(r) {
|
|
14359
|
-
if (r)
|
|
14360
|
-
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
14361
|
-
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
14362
|
-
}
|
|
14363
|
-
return i.prototype.jobId = 0, i.create = function(t) {
|
|
14364
|
-
return new i(t);
|
|
14365
|
-
}, i.encode = function(t, e) {
|
|
14366
|
-
return e || (e = $Writer.create()), t.jobId != null && Object.hasOwnProperty.call(t, "jobId") && e.uint32(
|
|
14367
|
-
/* id 1, wireType 0 =*/
|
|
14368
|
-
8
|
|
14369
|
-
).uint32(t.jobId), e;
|
|
14370
|
-
}, i.encodeDelimited = function(t, e) {
|
|
14371
|
-
return this.encode(t, e).ldelim();
|
|
14372
|
-
}, i.decode = function(t, e, n) {
|
|
14373
|
-
t instanceof $Reader || (t = $Reader.create(t));
|
|
14374
|
-
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.ImportStatusRequest();
|
|
14375
|
-
for (; t.pos < s; ) {
|
|
14376
|
-
let d = t.uint32();
|
|
14377
|
-
if (d === n)
|
|
14378
|
-
break;
|
|
14379
|
-
switch (d >>> 3) {
|
|
14380
|
-
case 1: {
|
|
14381
|
-
a.jobId = t.uint32();
|
|
14382
|
-
break;
|
|
14383
|
-
}
|
|
14384
|
-
default:
|
|
14385
|
-
t.skipType(d & 7);
|
|
14386
|
-
break;
|
|
14387
|
-
}
|
|
14388
|
-
}
|
|
14389
|
-
return a;
|
|
14390
|
-
}, i.decodeDelimited = function(t) {
|
|
14391
|
-
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
14392
|
-
}, i.verify = function(t) {
|
|
14393
|
-
return typeof t != "object" || t === null ? "object expected" : t.jobId != null && t.hasOwnProperty("jobId") && !$util.isInteger(t.jobId) ? "jobId: integer expected" : null;
|
|
14394
|
-
}, i.fromObject = function(t) {
|
|
14395
|
-
if (t instanceof $root.sesame.v1.jobs.ImportStatusRequest)
|
|
14396
|
-
return t;
|
|
14397
|
-
let e = new $root.sesame.v1.jobs.ImportStatusRequest();
|
|
14398
|
-
return t.jobId != null && (e.jobId = t.jobId >>> 0), e;
|
|
14399
|
-
}, i.toObject = function(t, e) {
|
|
14400
|
-
e || (e = {});
|
|
14401
|
-
let n = {};
|
|
14402
|
-
return e.defaults && (n.jobId = 0), t.jobId != null && t.hasOwnProperty("jobId") && (n.jobId = t.jobId), n;
|
|
14453
|
+
}
|
|
14454
|
+
return t.dstRecorderId != null && t.hasOwnProperty("dstRecorderId") && (n.dstRecorderId = t.dstRecorderId), t.dstClipId != null && t.hasOwnProperty("dstClipId") && (typeof t.dstClipId == "number" ? n.dstClipId = e.longs === String ? String(t.dstClipId) : t.dstClipId : n.dstClipId = e.longs === String ? $util.Long.prototype.toString.call(t.dstClipId) : e.longs === Number ? new $util.LongBits(t.dstClipId.low >>> 0, t.dstClipId.high >>> 0).toNumber(!0) : t.dstClipId), t.dstClipName != null && t.hasOwnProperty("dstClipName") && (n.dstClipName = t.dstClipName), t.dstClipUserData != null && t.hasOwnProperty("dstClipUserData") && (n.dstClipUserData = t.dstClipUserData), n;
|
|
14403
14455
|
}, i.prototype.toJSON = function() {
|
|
14404
14456
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14405
14457
|
}, i.getTypeUrl = function(t) {
|
|
14406
|
-
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.
|
|
14458
|
+
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.ImportConfiguration";
|
|
14407
14459
|
}, i;
|
|
14408
|
-
}(), l.
|
|
14460
|
+
}(), l.ImportStartRequest = function() {
|
|
14409
14461
|
function i(r) {
|
|
14410
14462
|
if (r)
|
|
14411
14463
|
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
14412
14464
|
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
14413
14465
|
}
|
|
14414
|
-
return i.create = function(t) {
|
|
14466
|
+
return i.prototype.config = null, i.create = function(t) {
|
|
14415
14467
|
return new i(t);
|
|
14416
14468
|
}, i.encode = function(t, e) {
|
|
14417
|
-
return e || (e = $Writer.create()), e
|
|
14469
|
+
return e || (e = $Writer.create()), t.config != null && Object.hasOwnProperty.call(t, "config") && $root.sesame.v1.jobs.ImportConfiguration.encode(t.config, e.uint32(
|
|
14470
|
+
/* id 1, wireType 2 =*/
|
|
14471
|
+
10
|
|
14472
|
+
).fork()).ldelim(), e;
|
|
14418
14473
|
}, i.encodeDelimited = function(t, e) {
|
|
14419
14474
|
return this.encode(t, e).ldelim();
|
|
14420
14475
|
}, i.decode = function(t, e, n) {
|
|
14421
14476
|
t instanceof $Reader || (t = $Reader.create(t));
|
|
14422
|
-
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.
|
|
14477
|
+
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
14423
14478
|
for (; t.pos < s; ) {
|
|
14424
14479
|
let d = t.uint32();
|
|
14425
14480
|
if (d === n)
|
|
14426
14481
|
break;
|
|
14427
14482
|
switch (d >>> 3) {
|
|
14483
|
+
case 1: {
|
|
14484
|
+
a.config = $root.sesame.v1.jobs.ImportConfiguration.decode(t, t.uint32());
|
|
14485
|
+
break;
|
|
14486
|
+
}
|
|
14428
14487
|
default:
|
|
14429
14488
|
t.skipType(d & 7);
|
|
14430
14489
|
break;
|
|
@@ -14434,15 +14493,32 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
14434
14493
|
}, i.decodeDelimited = function(t) {
|
|
14435
14494
|
return t instanceof $Reader || (t = new $Reader(t)), this.decode(t, t.uint32());
|
|
14436
14495
|
}, i.verify = function(t) {
|
|
14437
|
-
|
|
14496
|
+
if (typeof t != "object" || t === null)
|
|
14497
|
+
return "object expected";
|
|
14498
|
+
if (t.config != null && t.hasOwnProperty("config")) {
|
|
14499
|
+
let e = $root.sesame.v1.jobs.ImportConfiguration.verify(t.config);
|
|
14500
|
+
if (e)
|
|
14501
|
+
return "config." + e;
|
|
14502
|
+
}
|
|
14503
|
+
return null;
|
|
14438
14504
|
}, i.fromObject = function(t) {
|
|
14439
|
-
|
|
14440
|
-
|
|
14441
|
-
|
|
14505
|
+
if (t instanceof $root.sesame.v1.jobs.ImportStartRequest)
|
|
14506
|
+
return t;
|
|
14507
|
+
let e = new $root.sesame.v1.jobs.ImportStartRequest();
|
|
14508
|
+
if (t.config != null) {
|
|
14509
|
+
if (typeof t.config != "object")
|
|
14510
|
+
throw TypeError(".sesame.v1.jobs.ImportStartRequest.config: object expected");
|
|
14511
|
+
e.config = $root.sesame.v1.jobs.ImportConfiguration.fromObject(t.config);
|
|
14512
|
+
}
|
|
14513
|
+
return e;
|
|
14514
|
+
}, i.toObject = function(t, e) {
|
|
14515
|
+
e || (e = {});
|
|
14516
|
+
let n = {};
|
|
14517
|
+
return e.defaults && (n.config = null), t.config != null && t.hasOwnProperty("config") && (n.config = $root.sesame.v1.jobs.ImportConfiguration.toObject(t.config, e)), n;
|
|
14442
14518
|
}, i.prototype.toJSON = function() {
|
|
14443
14519
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14444
14520
|
}, i.getTypeUrl = function(t) {
|
|
14445
|
-
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.
|
|
14521
|
+
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.jobs.ImportStartRequest";
|
|
14446
14522
|
}, i;
|
|
14447
14523
|
}(), l;
|
|
14448
14524
|
}(), o.rpc = function() {
|
|
@@ -14754,7 +14830,6 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
14754
14830
|
case 2:
|
|
14755
14831
|
case 3:
|
|
14756
14832
|
case 4:
|
|
14757
|
-
case 5:
|
|
14758
14833
|
case 6:
|
|
14759
14834
|
break;
|
|
14760
14835
|
}
|
|
@@ -14786,14 +14861,10 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
14786
14861
|
case 3:
|
|
14787
14862
|
e.topic = 3;
|
|
14788
14863
|
break;
|
|
14789
|
-
case "
|
|
14864
|
+
case "EVENT_TOPIC_JOB":
|
|
14790
14865
|
case 4:
|
|
14791
14866
|
e.topic = 4;
|
|
14792
14867
|
break;
|
|
14793
|
-
case "EVENT_TOPIC_CLIP_IMPORT":
|
|
14794
|
-
case 5:
|
|
14795
|
-
e.topic = 5;
|
|
14796
|
-
break;
|
|
14797
14868
|
case "EVENT_TOPIC_RECORDER":
|
|
14798
14869
|
case 6:
|
|
14799
14870
|
e.topic = 6;
|
|
@@ -14827,23 +14898,15 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
14827
14898
|
return this.rpcCall(r, $root.sesame.v1.common.Empty, $root.sesame.v1.status.Status, t, e);
|
|
14828
14899
|
}, "name", { value: "RequestStatus" }), Object.defineProperty(i.prototype.requestRecorderOperation = function r(t, e) {
|
|
14829
14900
|
return this.rpcCall(r, $root.sesame.v1.recorder.RecorderRequest, $root.sesame.v1.recorder.RecorderResponse, t, e);
|
|
14830
|
-
}, "name", { value: "RequestRecorderOperation" }), Object.defineProperty(i.prototype.
|
|
14831
|
-
return this.rpcCall(r, $root.sesame.v1.jobs.
|
|
14832
|
-
}, "name", { value: "
|
|
14833
|
-
return this.rpcCall(r, $root.sesame.v1.jobs.
|
|
14834
|
-
}, "name", { value: "
|
|
14835
|
-
return this.rpcCall(r, $root.sesame.v1.jobs.
|
|
14836
|
-
}, "name", { value: "
|
|
14837
|
-
return this.rpcCall(r, $root.sesame.v1.jobs.
|
|
14838
|
-
}, "name", { value: "
|
|
14839
|
-
return this.rpcCall(r, $root.sesame.v1.jobs.ImportStartRequest, $root.sesame.v1.jobs.JobStatusResponse, t, e);
|
|
14840
|
-
}, "name", { value: "RequestClipImportStart" }), Object.defineProperty(i.prototype.requestClipImportAbort = function r(t, e) {
|
|
14841
|
-
return this.rpcCall(r, $root.sesame.v1.jobs.ImportAbortRequest, $root.sesame.v1.jobs.JobStatusResponse, t, e);
|
|
14842
|
-
}, "name", { value: "RequestClipImportAbort" }), Object.defineProperty(i.prototype.requestClipImportStatus = function r(t, e) {
|
|
14843
|
-
return this.rpcCall(r, $root.sesame.v1.jobs.ImportStatusRequest, $root.sesame.v1.jobs.JobStatusResponse, t, e);
|
|
14844
|
-
}, "name", { value: "RequestClipImportStatus" }), Object.defineProperty(i.prototype.requestClipImportList = function r(t, e) {
|
|
14845
|
-
return this.rpcCall(r, $root.sesame.v1.jobs.ImportListRequest, $root.sesame.v1.jobs.JobListResponse, t, e);
|
|
14846
|
-
}, "name", { value: "RequestClipImportList" }), Object.defineProperty(i.prototype.requestKeyframe = function r(t, e) {
|
|
14901
|
+
}, "name", { value: "RequestRecorderOperation" }), Object.defineProperty(i.prototype.startJob = function r(t, e) {
|
|
14902
|
+
return this.rpcCall(r, $root.sesame.v1.jobs.JobStartRequest, $root.sesame.v1.jobs.Job, t, e);
|
|
14903
|
+
}, "name", { value: "StartJob" }), Object.defineProperty(i.prototype.abortJob = function r(t, e) {
|
|
14904
|
+
return this.rpcCall(r, $root.sesame.v1.jobs.JobAbortRequest, $root.sesame.v1.jobs.Job, t, e);
|
|
14905
|
+
}, "name", { value: "AbortJob" }), Object.defineProperty(i.prototype.getJobStatus = function r(t, e) {
|
|
14906
|
+
return this.rpcCall(r, $root.sesame.v1.jobs.JobStatusRequest, $root.sesame.v1.jobs.Job, t, e);
|
|
14907
|
+
}, "name", { value: "GetJobStatus" }), Object.defineProperty(i.prototype.listJobs = function r(t, e) {
|
|
14908
|
+
return this.rpcCall(r, $root.sesame.v1.jobs.JobListRequest, $root.sesame.v1.jobs.JobList, t, e);
|
|
14909
|
+
}, "name", { value: "ListJobs" }), Object.defineProperty(i.prototype.requestKeyframe = function r(t, e) {
|
|
14847
14910
|
return this.rpcCall(r, $root.sesame.v1.outputs.KeyframeRequest, $root.sesame.v1.common.Empty, t, e);
|
|
14848
14911
|
}, "name", { value: "RequestKeyframe" }), Object.defineProperty(i.prototype.requestIODeviceList = function r(t, e) {
|
|
14849
14912
|
return this.rpcCall(r, $root.sesame.v1.common.Empty, $root.sesame.v1.status.IODeviceListResponse, t, e);
|
|
@@ -14853,10 +14916,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
14853
14916
|
const l = {};
|
|
14854
14917
|
return l.FrameType = function() {
|
|
14855
14918
|
const i = {}, r = Object.create(i);
|
|
14856
|
-
return r[i[0] = "FRAME_TYPE_UNSPECIFIED"] = 0, r[i[1] = "FRAME_TYPE_RPC"] = 1, r[i[2] = "FRAME_TYPE_VIDEO"] = 2, r[i[3] = "FRAME_TYPE_AUDIO"] = 3, r[i[4] = "FRAME_TYPE_MUXED"] = 4, r[i[5] = "FRAME_TYPE_DECODER_DATA"] = 5, r;
|
|
14857
|
-
}(), l.CodecType = function() {
|
|
14858
|
-
const i = {}, r = Object.create(i);
|
|
14859
|
-
return r[i[0] = "CODEC_TYPE_UNSPECIFIED"] = 0, r[i[1] = "CODEC_TYPE_VIDEO_VP8"] = 1, r[i[2] = "CODEC_TYPE_VIDEO_VP9"] = 2, r[i[3] = "CODEC_TYPE_VIDEO_AVC"] = 3, r[i[4] = "CODEC_TYPE_VIDEO_HEVC"] = 4, r[i[5] = "CODEC_TYPE_VIDEO_AV1"] = 5, r[i[64] = "CODEC_TYPE_AUDIO_OPUS"] = 64, r[i[65] = "CODEC_TYPE_AUDIO_AAC"] = 65, r[i[66] = "CODEC_TYPE_AUDIO_PCM"] = 66, r;
|
|
14919
|
+
return r[i[0] = "FRAME_TYPE_UNSPECIFIED"] = 0, r[i[1] = "FRAME_TYPE_RPC"] = 1, r[i[2] = "FRAME_TYPE_VIDEO"] = 2, r[i[3] = "FRAME_TYPE_AUDIO"] = 3, r[i[4] = "FRAME_TYPE_MUXED"] = 4, r[i[5] = "FRAME_TYPE_DECODER_DATA"] = 5, r[i[6] = "FRAME_TYPE_DATA"] = 6, r;
|
|
14860
14920
|
}(), l.MediaCodecData = function() {
|
|
14861
14921
|
function i(r) {
|
|
14862
14922
|
if (r)
|
|
@@ -14968,9 +15028,12 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
14968
15028
|
case 3:
|
|
14969
15029
|
case 4:
|
|
14970
15030
|
case 5:
|
|
15031
|
+
case 6:
|
|
15032
|
+
case 7:
|
|
14971
15033
|
case 64:
|
|
14972
15034
|
case 65:
|
|
14973
15035
|
case 66:
|
|
15036
|
+
case 67:
|
|
14974
15037
|
break;
|
|
14975
15038
|
}
|
|
14976
15039
|
return t.sampleRate != null && t.hasOwnProperty("sampleRate") && !$util.isInteger(t.sampleRate) ? "sampleRate: integer expected" : t.timebaseNum != null && t.hasOwnProperty("timebaseNum") && !$util.isInteger(t.timebaseNum) ? "timebaseNum: integer expected" : t.timebaseDen != null && t.hasOwnProperty("timebaseDen") && !$util.isInteger(t.timebaseDen) ? "timebaseDen: integer expected" : t.codecProfile != null && t.hasOwnProperty("codecProfile") && !$util.isInteger(t.codecProfile) ? "codecProfile: integer expected" : t.codecLevel != null && t.hasOwnProperty("codecLevel") && !$util.isInteger(t.codecLevel) ? "codecLevel: integer expected" : t.width != null && t.hasOwnProperty("width") && !$util.isInteger(t.width) ? "width: integer expected" : t.height != null && t.hasOwnProperty("height") && !$util.isInteger(t.height) ? "height: integer expected" : t.channels != null && t.hasOwnProperty("channels") && !$util.isInteger(t.channels) ? "channels: integer expected" : t.bitDepth != null && t.hasOwnProperty("bitDepth") && !$util.isInteger(t.bitDepth) ? "bitDepth: integer expected" : null;
|
|
@@ -15009,6 +15072,14 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
15009
15072
|
case 5:
|
|
15010
15073
|
e.codecType = 5;
|
|
15011
15074
|
break;
|
|
15075
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
15076
|
+
case 6:
|
|
15077
|
+
e.codecType = 6;
|
|
15078
|
+
break;
|
|
15079
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
15080
|
+
case 7:
|
|
15081
|
+
e.codecType = 7;
|
|
15082
|
+
break;
|
|
15012
15083
|
case "CODEC_TYPE_AUDIO_OPUS":
|
|
15013
15084
|
case 64:
|
|
15014
15085
|
e.codecType = 64;
|
|
@@ -15021,79 +15092,62 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
15021
15092
|
case 66:
|
|
15022
15093
|
e.codecType = 66;
|
|
15023
15094
|
break;
|
|
15095
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
15096
|
+
case 67:
|
|
15097
|
+
e.codecType = 67;
|
|
15098
|
+
break;
|
|
15024
15099
|
}
|
|
15025
15100
|
return t.sampleRate != null && (e.sampleRate = t.sampleRate >>> 0), t.timebaseNum != null && (e.timebaseNum = t.timebaseNum >>> 0), t.timebaseDen != null && (e.timebaseDen = t.timebaseDen >>> 0), t.codecProfile != null && (e.codecProfile = t.codecProfile >>> 0), t.codecLevel != null && (e.codecLevel = t.codecLevel >>> 0), t.width != null && (e.width = t.width >>> 0), t.height != null && (e.height = t.height >>> 0), t.channels != null && (e.channels = t.channels >>> 0), t.bitDepth != null && (e.bitDepth = t.bitDepth >>> 0), e;
|
|
15026
15101
|
}, i.toObject = function(t, e) {
|
|
15027
15102
|
e || (e = {});
|
|
15028
15103
|
let n = {};
|
|
15029
|
-
return e.defaults && (n.codecType = e.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0, n.sampleRate = 0, n.timebaseNum = 0, n.timebaseDen = 0, n.codecProfile = 0, n.codecLevel = 0, n.width = 0, n.height = 0, n.channels = 0, n.bitDepth = 0), t.codecType != null && t.hasOwnProperty("codecType") && (n.codecType = e.enums === String ? $root.sesame.v1.
|
|
15104
|
+
return e.defaults && (n.codecType = e.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0, n.sampleRate = 0, n.timebaseNum = 0, n.timebaseDen = 0, n.codecProfile = 0, n.codecLevel = 0, n.width = 0, n.height = 0, n.channels = 0, n.bitDepth = 0), t.codecType != null && t.hasOwnProperty("codecType") && (n.codecType = e.enums === String ? $root.sesame.v1.common.CodecType[t.codecType] === void 0 ? t.codecType : $root.sesame.v1.common.CodecType[t.codecType] : t.codecType), t.sampleRate != null && t.hasOwnProperty("sampleRate") && (n.sampleRate = t.sampleRate), t.timebaseNum != null && t.hasOwnProperty("timebaseNum") && (n.timebaseNum = t.timebaseNum), t.timebaseDen != null && t.hasOwnProperty("timebaseDen") && (n.timebaseDen = t.timebaseDen), t.codecProfile != null && t.hasOwnProperty("codecProfile") && (n.codecProfile = t.codecProfile), t.codecLevel != null && t.hasOwnProperty("codecLevel") && (n.codecLevel = t.codecLevel), t.width != null && t.hasOwnProperty("width") && (n.width = t.width), t.height != null && t.hasOwnProperty("height") && (n.height = t.height), t.channels != null && t.hasOwnProperty("channels") && (n.channels = t.channels), t.bitDepth != null && t.hasOwnProperty("bitDepth") && (n.bitDepth = t.bitDepth), n;
|
|
15030
15105
|
}, i.prototype.toJSON = function() {
|
|
15031
15106
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15032
15107
|
}, i.getTypeUrl = function(t) {
|
|
15033
15108
|
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.wire.MediaCodecData";
|
|
15034
15109
|
}, i;
|
|
15035
|
-
}(), l.
|
|
15110
|
+
}(), l.MediaFrameData = function() {
|
|
15036
15111
|
function i(r) {
|
|
15037
15112
|
if (r)
|
|
15038
15113
|
for (let t = Object.keys(r), e = 0; e < t.length; ++e)
|
|
15039
15114
|
r[t[e]] != null && (this[t[e]] = r[t[e]]);
|
|
15040
15115
|
}
|
|
15041
|
-
return i.prototype.
|
|
15116
|
+
return i.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, !0) : 0, i.prototype.keyframe = !1, i.prototype.codecData = null, i.create = function(t) {
|
|
15042
15117
|
return new i(t);
|
|
15043
15118
|
}, i.encode = function(t, e) {
|
|
15044
|
-
return e || (e = $Writer.create()), t.
|
|
15119
|
+
return e || (e = $Writer.create()), t.pts != null && Object.hasOwnProperty.call(t, "pts") && e.uint32(
|
|
15045
15120
|
/* id 1, wireType 0 =*/
|
|
15046
15121
|
8
|
|
15047
|
-
).
|
|
15122
|
+
).uint64(t.pts), t.keyframe != null && Object.hasOwnProperty.call(t, "keyframe") && e.uint32(
|
|
15048
15123
|
/* id 2, wireType 0 =*/
|
|
15049
15124
|
16
|
|
15050
|
-
).uint64(t.pts), t.id != null && Object.hasOwnProperty.call(t, "id") && e.uint32(
|
|
15051
|
-
/* id 3, wireType 0 =*/
|
|
15052
|
-
24
|
|
15053
|
-
).uint64(t.id), t.keyframe != null && Object.hasOwnProperty.call(t, "keyframe") && e.uint32(
|
|
15054
|
-
/* id 4, wireType 0 =*/
|
|
15055
|
-
32
|
|
15056
15125
|
).bool(t.keyframe), t.codecData != null && Object.hasOwnProperty.call(t, "codecData") && $root.sesame.v1.wire.MediaCodecData.encode(t.codecData, e.uint32(
|
|
15057
|
-
/* id
|
|
15058
|
-
|
|
15059
|
-
).fork()).ldelim(),
|
|
15060
|
-
/* id 6, wireType 2 =*/
|
|
15061
|
-
50
|
|
15062
|
-
).string(t.routingMetadata), e;
|
|
15126
|
+
/* id 3, wireType 2 =*/
|
|
15127
|
+
26
|
|
15128
|
+
).fork()).ldelim(), e;
|
|
15063
15129
|
}, i.encodeDelimited = function(t, e) {
|
|
15064
15130
|
return this.encode(t, e).ldelim();
|
|
15065
15131
|
}, i.decode = function(t, e, n) {
|
|
15066
15132
|
t instanceof $Reader || (t = $Reader.create(t));
|
|
15067
|
-
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.wire.
|
|
15133
|
+
let s = e === void 0 ? t.len : t.pos + e, a = new $root.sesame.v1.wire.MediaFrameData();
|
|
15068
15134
|
for (; t.pos < s; ) {
|
|
15069
15135
|
let d = t.uint32();
|
|
15070
15136
|
if (d === n)
|
|
15071
15137
|
break;
|
|
15072
15138
|
switch (d >>> 3) {
|
|
15073
15139
|
case 1: {
|
|
15074
|
-
a.type = t.int32();
|
|
15075
|
-
break;
|
|
15076
|
-
}
|
|
15077
|
-
case 2: {
|
|
15078
15140
|
a.pts = t.uint64();
|
|
15079
15141
|
break;
|
|
15080
15142
|
}
|
|
15081
|
-
case
|
|
15082
|
-
a.id = t.uint64();
|
|
15083
|
-
break;
|
|
15084
|
-
}
|
|
15085
|
-
case 4: {
|
|
15143
|
+
case 2: {
|
|
15086
15144
|
a.keyframe = t.bool();
|
|
15087
15145
|
break;
|
|
15088
15146
|
}
|
|
15089
|
-
case
|
|
15147
|
+
case 3: {
|
|
15090
15148
|
a.codecData = $root.sesame.v1.wire.MediaCodecData.decode(t, t.uint32());
|
|
15091
15149
|
break;
|
|
15092
15150
|
}
|
|
15093
|
-
case 6: {
|
|
15094
|
-
a.routingMetadata = t.string();
|
|
15095
|
-
break;
|
|
15096
|
-
}
|
|
15097
15151
|
default:
|
|
15098
15152
|
t.skipType(d & 7);
|
|
15099
15153
|
break;
|
|
@@ -15105,22 +15159,8 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
15105
15159
|
}, i.verify = function(t) {
|
|
15106
15160
|
if (typeof t != "object" || t === null)
|
|
15107
15161
|
return "object expected";
|
|
15108
|
-
if (t.type != null && t.hasOwnProperty("type"))
|
|
15109
|
-
switch (t.type) {
|
|
15110
|
-
default:
|
|
15111
|
-
return "type: enum value expected";
|
|
15112
|
-
case 0:
|
|
15113
|
-
case 1:
|
|
15114
|
-
case 2:
|
|
15115
|
-
case 3:
|
|
15116
|
-
case 4:
|
|
15117
|
-
case 5:
|
|
15118
|
-
break;
|
|
15119
|
-
}
|
|
15120
15162
|
if (t.pts != null && t.hasOwnProperty("pts") && !$util.isInteger(t.pts) && !(t.pts && $util.isInteger(t.pts.low) && $util.isInteger(t.pts.high)))
|
|
15121
15163
|
return "pts: integer|Long expected";
|
|
15122
|
-
if (t.id != null && t.hasOwnProperty("id") && !$util.isInteger(t.id) && !(t.id && $util.isInteger(t.id.low) && $util.isInteger(t.id.high)))
|
|
15123
|
-
return "id: integer|Long expected";
|
|
15124
15164
|
if (t.keyframe != null && t.hasOwnProperty("keyframe") && typeof t.keyframe != "boolean")
|
|
15125
15165
|
return "keyframe: boolean expected";
|
|
15126
15166
|
if (t.codecData != null && t.hasOwnProperty("codecData")) {
|
|
@@ -15128,70 +15168,166 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
15128
15168
|
if (e)
|
|
15129
15169
|
return "codecData." + e;
|
|
15130
15170
|
}
|
|
15131
|
-
return
|
|
15171
|
+
return null;
|
|
15132
15172
|
}, i.fromObject = function(t) {
|
|
15133
|
-
if (t instanceof $root.sesame.v1.wire.
|
|
15173
|
+
if (t instanceof $root.sesame.v1.wire.MediaFrameData)
|
|
15134
15174
|
return t;
|
|
15135
|
-
let e = new $root.sesame.v1.wire.
|
|
15136
|
-
|
|
15175
|
+
let e = new $root.sesame.v1.wire.MediaFrameData();
|
|
15176
|
+
if (t.pts != null && ($util.Long ? (e.pts = $util.Long.fromValue(t.pts)).unsigned = !0 : typeof t.pts == "string" ? e.pts = parseInt(t.pts, 10) : typeof t.pts == "number" ? e.pts = t.pts : typeof t.pts == "object" && (e.pts = new $util.LongBits(t.pts.low >>> 0, t.pts.high >>> 0).toNumber(!0))), t.keyframe != null && (e.keyframe = !!t.keyframe), t.codecData != null) {
|
|
15177
|
+
if (typeof t.codecData != "object")
|
|
15178
|
+
throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
|
|
15179
|
+
e.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(t.codecData);
|
|
15180
|
+
}
|
|
15181
|
+
return e;
|
|
15182
|
+
}, i.toObject = function(t, e) {
|
|
15183
|
+
e || (e = {});
|
|
15184
|
+
let n = {};
|
|
15185
|
+
if (e.defaults) {
|
|
15186
|
+
if ($util.Long) {
|
|
15187
|
+
let s = new $util.Long(0, 0, !0);
|
|
15188
|
+
n.pts = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
15189
|
+
} else
|
|
15190
|
+
n.pts = e.longs === String ? "0" : 0;
|
|
15191
|
+
n.keyframe = !1, n.codecData = null;
|
|
15192
|
+
}
|
|
15193
|
+
return t.pts != null && t.hasOwnProperty("pts") && (typeof t.pts == "number" ? n.pts = e.longs === String ? String(t.pts) : t.pts : n.pts = e.longs === String ? $util.Long.prototype.toString.call(t.pts) : e.longs === Number ? new $util.LongBits(t.pts.low >>> 0, t.pts.high >>> 0).toNumber(!0) : t.pts), t.keyframe != null && t.hasOwnProperty("keyframe") && (n.keyframe = t.keyframe), t.codecData != null && t.hasOwnProperty("codecData") && (n.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(t.codecData, e)), n;
|
|
15194
|
+
}, i.prototype.toJSON = function() {
|
|
15195
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15196
|
+
}, i.getTypeUrl = function(t) {
|
|
15197
|
+
return t === void 0 && (t = "type.googleapis.com"), t + "/sesame.v1.wire.MediaFrameData";
|
|
15198
|
+
}, i;
|
|
15199
|
+
}(), l.FrameHeader = function() {
|
|
15200
|
+
function i(t) {
|
|
15201
|
+
if (t)
|
|
15202
|
+
for (let e = Object.keys(t), n = 0; n < e.length; ++n)
|
|
15203
|
+
t[e[n]] != null && (this[e[n]] = t[e[n]]);
|
|
15204
|
+
}
|
|
15205
|
+
i.prototype.type = 0, i.prototype.routingMetadata = "", i.prototype.media = null;
|
|
15206
|
+
let r;
|
|
15207
|
+
return Object.defineProperty(i.prototype, "typeData", {
|
|
15208
|
+
get: $util.oneOfGetter(r = ["media"]),
|
|
15209
|
+
set: $util.oneOfSetter(r)
|
|
15210
|
+
}), i.create = function(e) {
|
|
15211
|
+
return new i(e);
|
|
15212
|
+
}, i.encode = function(e, n) {
|
|
15213
|
+
return n || (n = $Writer.create()), e.type != null && Object.hasOwnProperty.call(e, "type") && n.uint32(
|
|
15214
|
+
/* id 1, wireType 0 =*/
|
|
15215
|
+
8
|
|
15216
|
+
).int32(e.type), e.routingMetadata != null && Object.hasOwnProperty.call(e, "routingMetadata") && n.uint32(
|
|
15217
|
+
/* id 6, wireType 2 =*/
|
|
15218
|
+
50
|
|
15219
|
+
).string(e.routingMetadata), e.media != null && Object.hasOwnProperty.call(e, "media") && $root.sesame.v1.wire.MediaFrameData.encode(e.media, n.uint32(
|
|
15220
|
+
/* id 7, wireType 2 =*/
|
|
15221
|
+
58
|
|
15222
|
+
).fork()).ldelim(), n;
|
|
15223
|
+
}, i.encodeDelimited = function(e, n) {
|
|
15224
|
+
return this.encode(e, n).ldelim();
|
|
15225
|
+
}, i.decode = function(e, n, s) {
|
|
15226
|
+
e instanceof $Reader || (e = $Reader.create(e));
|
|
15227
|
+
let a = n === void 0 ? e.len : e.pos + n, d = new $root.sesame.v1.wire.FrameHeader();
|
|
15228
|
+
for (; e.pos < a; ) {
|
|
15229
|
+
let u = e.uint32();
|
|
15230
|
+
if (u === s)
|
|
15231
|
+
break;
|
|
15232
|
+
switch (u >>> 3) {
|
|
15233
|
+
case 1: {
|
|
15234
|
+
d.type = e.int32();
|
|
15235
|
+
break;
|
|
15236
|
+
}
|
|
15237
|
+
case 6: {
|
|
15238
|
+
d.routingMetadata = e.string();
|
|
15239
|
+
break;
|
|
15240
|
+
}
|
|
15241
|
+
case 7: {
|
|
15242
|
+
d.media = $root.sesame.v1.wire.MediaFrameData.decode(e, e.uint32());
|
|
15243
|
+
break;
|
|
15244
|
+
}
|
|
15245
|
+
default:
|
|
15246
|
+
e.skipType(u & 7);
|
|
15247
|
+
break;
|
|
15248
|
+
}
|
|
15249
|
+
}
|
|
15250
|
+
return d;
|
|
15251
|
+
}, i.decodeDelimited = function(e) {
|
|
15252
|
+
return e instanceof $Reader || (e = new $Reader(e)), this.decode(e, e.uint32());
|
|
15253
|
+
}, i.verify = function(e) {
|
|
15254
|
+
if (typeof e != "object" || e === null)
|
|
15255
|
+
return "object expected";
|
|
15256
|
+
if (e.type != null && e.hasOwnProperty("type"))
|
|
15257
|
+
switch (e.type) {
|
|
15258
|
+
default:
|
|
15259
|
+
return "type: enum value expected";
|
|
15260
|
+
case 0:
|
|
15261
|
+
case 1:
|
|
15262
|
+
case 2:
|
|
15263
|
+
case 3:
|
|
15264
|
+
case 4:
|
|
15265
|
+
case 5:
|
|
15266
|
+
case 6:
|
|
15267
|
+
break;
|
|
15268
|
+
}
|
|
15269
|
+
if (e.routingMetadata != null && e.hasOwnProperty("routingMetadata") && !$util.isString(e.routingMetadata))
|
|
15270
|
+
return "routingMetadata: string expected";
|
|
15271
|
+
if (e.media != null && e.hasOwnProperty("media")) {
|
|
15272
|
+
let n = $root.sesame.v1.wire.MediaFrameData.verify(e.media);
|
|
15273
|
+
if (n)
|
|
15274
|
+
return "media." + n;
|
|
15275
|
+
}
|
|
15276
|
+
return null;
|
|
15277
|
+
}, i.fromObject = function(e) {
|
|
15278
|
+
if (e instanceof $root.sesame.v1.wire.FrameHeader)
|
|
15279
|
+
return e;
|
|
15280
|
+
let n = new $root.sesame.v1.wire.FrameHeader();
|
|
15281
|
+
switch (e.type) {
|
|
15137
15282
|
default:
|
|
15138
|
-
if (typeof
|
|
15139
|
-
|
|
15283
|
+
if (typeof e.type == "number") {
|
|
15284
|
+
n.type = e.type;
|
|
15140
15285
|
break;
|
|
15141
15286
|
}
|
|
15142
15287
|
break;
|
|
15143
15288
|
case "FRAME_TYPE_UNSPECIFIED":
|
|
15144
15289
|
case 0:
|
|
15145
|
-
|
|
15290
|
+
n.type = 0;
|
|
15146
15291
|
break;
|
|
15147
15292
|
case "FRAME_TYPE_RPC":
|
|
15148
15293
|
case 1:
|
|
15149
|
-
|
|
15294
|
+
n.type = 1;
|
|
15150
15295
|
break;
|
|
15151
15296
|
case "FRAME_TYPE_VIDEO":
|
|
15152
15297
|
case 2:
|
|
15153
|
-
|
|
15298
|
+
n.type = 2;
|
|
15154
15299
|
break;
|
|
15155
15300
|
case "FRAME_TYPE_AUDIO":
|
|
15156
15301
|
case 3:
|
|
15157
|
-
|
|
15302
|
+
n.type = 3;
|
|
15158
15303
|
break;
|
|
15159
15304
|
case "FRAME_TYPE_MUXED":
|
|
15160
15305
|
case 4:
|
|
15161
|
-
|
|
15306
|
+
n.type = 4;
|
|
15162
15307
|
break;
|
|
15163
15308
|
case "FRAME_TYPE_DECODER_DATA":
|
|
15164
15309
|
case 5:
|
|
15165
|
-
|
|
15310
|
+
n.type = 5;
|
|
15311
|
+
break;
|
|
15312
|
+
case "FRAME_TYPE_DATA":
|
|
15313
|
+
case 6:
|
|
15314
|
+
n.type = 6;
|
|
15166
15315
|
break;
|
|
15167
15316
|
}
|
|
15168
|
-
if (
|
|
15169
|
-
if (typeof
|
|
15170
|
-
throw TypeError(".sesame.v1.wire.FrameHeader.
|
|
15171
|
-
|
|
15172
|
-
}
|
|
15173
|
-
return t.routingMetadata != null && (e.routingMetadata = String(t.routingMetadata)), e;
|
|
15174
|
-
}, i.toObject = function(t, e) {
|
|
15175
|
-
e || (e = {});
|
|
15176
|
-
let n = {};
|
|
15177
|
-
if (e.defaults) {
|
|
15178
|
-
if (n.type = e.enums === String ? "FRAME_TYPE_UNSPECIFIED" : 0, $util.Long) {
|
|
15179
|
-
let s = new $util.Long(0, 0, !0);
|
|
15180
|
-
n.pts = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
15181
|
-
} else
|
|
15182
|
-
n.pts = e.longs === String ? "0" : 0;
|
|
15183
|
-
if ($util.Long) {
|
|
15184
|
-
let s = new $util.Long(0, 0, !0);
|
|
15185
|
-
n.id = e.longs === String ? s.toString() : e.longs === Number ? s.toNumber() : s;
|
|
15186
|
-
} else
|
|
15187
|
-
n.id = e.longs === String ? "0" : 0;
|
|
15188
|
-
n.keyframe = !1, n.codecData = null, n.routingMetadata = "";
|
|
15317
|
+
if (e.routingMetadata != null && (n.routingMetadata = String(e.routingMetadata)), e.media != null) {
|
|
15318
|
+
if (typeof e.media != "object")
|
|
15319
|
+
throw TypeError(".sesame.v1.wire.FrameHeader.media: object expected");
|
|
15320
|
+
n.media = $root.sesame.v1.wire.MediaFrameData.fromObject(e.media);
|
|
15189
15321
|
}
|
|
15190
|
-
return
|
|
15322
|
+
return n;
|
|
15323
|
+
}, i.toObject = function(e, n) {
|
|
15324
|
+
n || (n = {});
|
|
15325
|
+
let s = {};
|
|
15326
|
+
return n.defaults && (s.type = n.enums === String ? "FRAME_TYPE_UNSPECIFIED" : 0, s.routingMetadata = ""), e.type != null && e.hasOwnProperty("type") && (s.type = n.enums === String ? $root.sesame.v1.wire.FrameType[e.type] === void 0 ? e.type : $root.sesame.v1.wire.FrameType[e.type] : e.type), e.routingMetadata != null && e.hasOwnProperty("routingMetadata") && (s.routingMetadata = e.routingMetadata), e.media != null && e.hasOwnProperty("media") && (s.media = $root.sesame.v1.wire.MediaFrameData.toObject(e.media, n), n.oneofs && (s.typeData = "media")), s;
|
|
15191
15327
|
}, i.prototype.toJSON = function() {
|
|
15192
15328
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15193
|
-
}, i.getTypeUrl = function(
|
|
15194
|
-
return
|
|
15329
|
+
}, i.getTypeUrl = function(e) {
|
|
15330
|
+
return e === void 0 && (e = "type.googleapis.com"), e + "/sesame.v1.wire.FrameHeader";
|
|
15195
15331
|
}, i;
|
|
15196
15332
|
}(), l;
|
|
15197
15333
|
}(), o;
|
|
@@ -15269,11 +15405,29 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
15269
15405
|
this.eventHandler(r.event);
|
|
15270
15406
|
else
|
|
15271
15407
|
throw new Error("Unsupported RPC message payload");
|
|
15272
|
-
} catch {
|
|
15273
|
-
const t = new Error(
|
|
15408
|
+
} catch (r) {
|
|
15409
|
+
const t = new Error(`Got invalid message: ${r instanceof Error ? r.message : String(r)}`);
|
|
15274
15410
|
this.errorHandler(t);
|
|
15275
15411
|
}
|
|
15276
|
-
}, this.connection = U, this.connection.on("open", this.openHandler), this.connection.on("rpc", (i) => this.messageHandler(i)), this.connection.on("error", this.errorHandler), this.options = l, this.service = o.create(this.rpcImpl), this.eventTypes = l.eventTypes || {}, this.sendTimeout = l.sendTimeout || 5 * 1e3;
|
|
15412
|
+
}, this.connection = U, this.connection.on("open", this.openHandler), this.connection.on("rpc", (i) => this.messageHandler(i)), this.connection.on("error", this.errorHandler), this.options = l, this.service = this.wrapServicePromises(o.create(this.rpcImpl)), this.eventTypes = l.eventTypes || {}, this.sendTimeout = l.sendTimeout || 5 * 1e3;
|
|
15413
|
+
}
|
|
15414
|
+
/**
|
|
15415
|
+
* Wraps service method calls to attach a rejection handler on all returned
|
|
15416
|
+
* promises. This prevents unhandled promise rejections (e.g. from timeouts
|
|
15417
|
+
* while disconnected) from crashing the host process. Callers can still
|
|
15418
|
+
* catch errors normally via await / .catch().
|
|
15419
|
+
*/
|
|
15420
|
+
wrapServicePromises(U) {
|
|
15421
|
+
return new Proxy(U, {
|
|
15422
|
+
get(o, l) {
|
|
15423
|
+
const i = o[l];
|
|
15424
|
+
return typeof i != "function" ? i : function(...r) {
|
|
15425
|
+
const t = i.apply(o, r);
|
|
15426
|
+
return t != null && typeof t.catch == "function" && t.catch(() => {
|
|
15427
|
+
}), t;
|
|
15428
|
+
};
|
|
15429
|
+
}
|
|
15430
|
+
});
|
|
15277
15431
|
}
|
|
15278
15432
|
async flushMessageBuffer() {
|
|
15279
15433
|
const U = [];
|
|
@@ -15293,16 +15447,18 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
15293
15447
|
}
|
|
15294
15448
|
eventHandler(U) {
|
|
15295
15449
|
const o = U.topic ?? 0;
|
|
15296
|
-
if (o === sesame.v1.common.EventTopic.EVENT_TOPIC_UNSPECIFIED)
|
|
15297
|
-
|
|
15450
|
+
if (o === sesame.v1.common.EventTopic.EVENT_TOPIC_UNSPECIFIED) {
|
|
15451
|
+
log.warn(`Ignoring event with unspecified topic: ${U.topic}`);
|
|
15452
|
+
return;
|
|
15453
|
+
}
|
|
15298
15454
|
const l = this.eventTypes[o];
|
|
15299
15455
|
let i, r;
|
|
15300
15456
|
if (U.payload && U.payload.length > 0)
|
|
15301
15457
|
if (l)
|
|
15302
15458
|
try {
|
|
15303
15459
|
i = l.decode(U.payload), r = l.toObject(i, { longs: Number });
|
|
15304
|
-
} catch {
|
|
15305
|
-
const e = new Error(
|
|
15460
|
+
} catch (t) {
|
|
15461
|
+
const e = new Error(`Could not decode event payload: ${t instanceof Error ? t.message : String(t)}`);
|
|
15306
15462
|
this.errorHandler(e);
|
|
15307
15463
|
return;
|
|
15308
15464
|
}
|
|
@@ -15313,7 +15469,7 @@ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropD
|
|
|
15313
15469
|
}, import_events2 = __toESM(require_events()), FrameType = sesame.v1.wire.FrameType;
|
|
15314
15470
|
sesame.v1.wire.FrameHeader;
|
|
15315
15471
|
sesame.v1.wire.MediaCodecData;
|
|
15316
|
-
var CodecType = sesame.v1.
|
|
15472
|
+
var CodecType = sesame.v1.common.CodecType, PREFIX_SIZE = 4, WireProtocol = class {
|
|
15317
15473
|
/**
|
|
15318
15474
|
* Serialize a wire frame: 4-byte LE header_size + protobuf FrameHeader + payload.
|
|
15319
15475
|
*/
|
|
@@ -15397,11 +15553,17 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
15397
15553
|
this.active = !0, this._state === "disconnected" && this.setState(
|
|
15398
15554
|
"connecting"
|
|
15399
15555
|
/* Connecting */
|
|
15400
|
-
), this.socket = new WebSocket(this.url), this.socket.addEventListener("message", this.boundMessageHandler), this.socket.addEventListener("open", this.boundOpenHandler), this.socket.addEventListener("close", this.boundCloseHandler), this.socket.addEventListener("error", this.boundErrorHandler), this.socket.binaryType = "arraybuffer", await new Promise((U) => {
|
|
15401
|
-
const
|
|
15402
|
-
this.removeListener("open",
|
|
15556
|
+
), this.socket = new WebSocket(this.url), this.socket.addEventListener("message", this.boundMessageHandler), this.socket.addEventListener("open", this.boundOpenHandler), this.socket.addEventListener("close", this.boundCloseHandler), this.socket.addEventListener("error", this.boundErrorHandler), this.socket.binaryType = "arraybuffer", await new Promise((U, o) => {
|
|
15557
|
+
const l = () => {
|
|
15558
|
+
this.removeListener("open", i), this.removeListener("close", t), this.removeListener("error", r);
|
|
15559
|
+
}, i = () => {
|
|
15560
|
+
l(), U();
|
|
15561
|
+
}, r = (e) => {
|
|
15562
|
+
l(), o(e instanceof Error ? e : new Error("WebSocket connection error"));
|
|
15563
|
+
}, t = () => {
|
|
15564
|
+
this.isConnected() || (l(), o(new Error("WebSocket connection closed before opening")));
|
|
15403
15565
|
};
|
|
15404
|
-
this.on("open",
|
|
15566
|
+
this.on("open", i), this.on("close", t), this.on("error", r);
|
|
15405
15567
|
});
|
|
15406
15568
|
}
|
|
15407
15569
|
/**
|
|
@@ -15426,12 +15588,15 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
15426
15588
|
});
|
|
15427
15589
|
}
|
|
15428
15590
|
closeHandler() {
|
|
15429
|
-
this.emit("close"), this.socket && this.removeSocketListeners(this.socket), this.socket = void 0, this.active ? (this.setState(
|
|
15591
|
+
this.emit("close"), this.socket && this.removeSocketListeners(this.socket), this.socket = void 0, this.active ? this.autoReconnect ? (this.setState(
|
|
15430
15592
|
"reconnecting"
|
|
15431
15593
|
/* Reconnecting */
|
|
15432
15594
|
), setTimeout(() => {
|
|
15433
15595
|
this.retryHandler();
|
|
15434
|
-
}, defaultBackoff(++this.numRetries))) : this.setState(
|
|
15596
|
+
}, defaultBackoff(++this.numRetries))) : (this.active = !1, this.setState(
|
|
15597
|
+
"disconnected"
|
|
15598
|
+
/* Disconnected */
|
|
15599
|
+
)) : this.setState(
|
|
15435
15600
|
"disconnected"
|
|
15436
15601
|
/* Disconnected */
|
|
15437
15602
|
);
|
|
@@ -15499,18 +15664,10 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
15499
15664
|
async importClip(U) {
|
|
15500
15665
|
const o = sesame.v1.jobs.ImportStartRequest.create();
|
|
15501
15666
|
o.config = U;
|
|
15502
|
-
const l = await this.rpc.service.
|
|
15503
|
-
if (
|
|
15504
|
-
throw new Error(
|
|
15505
|
-
return
|
|
15506
|
-
}
|
|
15507
|
-
async getImportStatus() {
|
|
15508
|
-
const U = sesame.v1.jobs.ImportListRequest.create();
|
|
15509
|
-
return this.rpc.service.requestClipImportList(U);
|
|
15510
|
-
}
|
|
15511
|
-
async abortImport(U) {
|
|
15512
|
-
const o = { jobId: U };
|
|
15513
|
-
return this.rpc.service.requestClipImportAbort(o);
|
|
15667
|
+
const l = sesame.v1.jobs.JobStartRequest.create({ importRequest: o }), i = await this.rpc.service.startJob(l);
|
|
15668
|
+
if (i.error)
|
|
15669
|
+
throw new Error(i.error);
|
|
15670
|
+
return i;
|
|
15514
15671
|
}
|
|
15515
15672
|
async exportPlaylist(U, o) {
|
|
15516
15673
|
const l = sesame.v1.jobs.ExportStartRequest.create();
|
|
@@ -15518,32 +15675,35 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
15518
15675
|
throw new Error("Filename is required");
|
|
15519
15676
|
l.config = {
|
|
15520
15677
|
...o,
|
|
15521
|
-
|
|
15522
|
-
videoCodec: o.videoCodec ?? sesame.v1.common.CodecId.CODEC_ID_H264,
|
|
15678
|
+
videoCodec: o.videoCodec ?? sesame.v1.common.CodecType.CODEC_TYPE_VIDEO_AVC,
|
|
15523
15679
|
videoBitrateKbps: o.videoBitrateKbps ?? 1024,
|
|
15524
|
-
audioCodec: o.audioCodec ?? sesame.v1.
|
|
15680
|
+
audioCodec: o.audioCodec ?? sesame.v1.common.CodecType.CODEC_TYPE_AUDIO_AAC,
|
|
15525
15681
|
audioBitrateKbps: o.audioBitrateKbps ?? 128,
|
|
15526
15682
|
audioChannels: o.audioChannels ?? 4,
|
|
15527
15683
|
audioRouting: o.audioRouting ?? [0, 1, 2, 3]
|
|
15528
|
-
}, l.items = U.clips.map((
|
|
15529
|
-
|
|
15530
|
-
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15536
|
-
|
|
15537
|
-
|
|
15538
|
-
|
|
15539
|
-
}
|
|
15540
|
-
async
|
|
15541
|
-
const
|
|
15542
|
-
return this.rpc.service.
|
|
15543
|
-
}
|
|
15544
|
-
async
|
|
15684
|
+
}, l.items = U.clips.map((t) => ({
|
|
15685
|
+
...t,
|
|
15686
|
+
transitionTimeUs: t.transitionTimeUs ?? 0,
|
|
15687
|
+
transitionType: t.transitionType ?? sesame.v1.recorder.TransitionType.TRANSITION_TYPE_MIX,
|
|
15688
|
+
transitionFadeColor: t.transitionFadeColor ?? { x: 0, y: 0, z: 0, w: 0 },
|
|
15689
|
+
speed: t.speed ?? 1
|
|
15690
|
+
}));
|
|
15691
|
+
const i = sesame.v1.jobs.JobStartRequest.create({ exportRequest: l }), r = await this.rpc.service.startJob(i);
|
|
15692
|
+
if (r.error)
|
|
15693
|
+
throw new Error(r.error);
|
|
15694
|
+
return r;
|
|
15695
|
+
}
|
|
15696
|
+
async abortJob(U) {
|
|
15697
|
+
const o = { jobId: U };
|
|
15698
|
+
return this.rpc.service.abortJob(o);
|
|
15699
|
+
}
|
|
15700
|
+
async getJobStatus(U) {
|
|
15545
15701
|
const o = { jobId: U };
|
|
15546
|
-
return this.rpc.service.
|
|
15702
|
+
return this.rpc.service.getJobStatus(o);
|
|
15703
|
+
}
|
|
15704
|
+
async listJobs() {
|
|
15705
|
+
const U = {};
|
|
15706
|
+
return this.rpc.service.listJobs(U);
|
|
15547
15707
|
}
|
|
15548
15708
|
};
|
|
15549
15709
|
(class extends import_events3.EventEmitter {
|
|
@@ -15563,8 +15723,7 @@ var SesameConnection = class extends import_events2.EventEmitter {
|
|
|
15563
15723
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_ERROR]: sesame.v1.status.Event,
|
|
15564
15724
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_TRANSPORT]: sesame.v1.status.Event,
|
|
15565
15725
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_CALLBACK]: sesame.v1.status.Event,
|
|
15566
|
-
[sesame.v1.common.EventTopic.
|
|
15567
|
-
[sesame.v1.common.EventTopic.EVENT_TOPIC_CLIP_IMPORT]: sesame.v1.status.Event,
|
|
15726
|
+
[sesame.v1.common.EventTopic.EVENT_TOPIC_JOB]: sesame.v1.status.Event,
|
|
15568
15727
|
[sesame.v1.common.EventTopic.EVENT_TOPIC_RECORDER]: sesame.v1.status.Event
|
|
15569
15728
|
}
|
|
15570
15729
|
};
|
|
@@ -16266,87 +16425,87 @@ const qo = class qo extends BasePlayer {
|
|
|
16266
16425
|
* Handle incoming stream data
|
|
16267
16426
|
*/
|
|
16268
16427
|
async handleStreamData(l) {
|
|
16269
|
-
var s, a, d, u, F, S;
|
|
16428
|
+
var s, a, d, u, F, R, S, y, E, W, N, T, C, m, Q, p, f;
|
|
16270
16429
|
const i = l.data;
|
|
16271
16430
|
if (!i.valid || !i.header)
|
|
16272
16431
|
return;
|
|
16273
16432
|
const r = ((s = i.payload) == null ? void 0 : s.byteLength) || 0;
|
|
16274
16433
|
if (i.header.type === FrameType.FRAME_TYPE_AUDIO || l.streamType === "audio") {
|
|
16275
16434
|
this.audioBytesReceived += r;
|
|
16276
|
-
const
|
|
16277
|
-
if (
|
|
16435
|
+
const h = this.config.audioTrackName;
|
|
16436
|
+
if (h != null && l.trackName !== h && l.streamType !== "audio")
|
|
16278
16437
|
return;
|
|
16279
16438
|
await this.handleAudioData(i);
|
|
16280
16439
|
return;
|
|
16281
16440
|
}
|
|
16282
16441
|
this.videoBytesReceived += r;
|
|
16283
16442
|
const e = this.trackFilter ?? this.config.videoTrackName;
|
|
16284
|
-
if (e != null && l.trackName !== e || l.streamType !== "video" || !i.header.codecData)
|
|
16443
|
+
if (e != null && l.trackName !== e || l.streamType !== "video" || !((a = i.header.media) != null && a.codecData))
|
|
16285
16444
|
return;
|
|
16286
|
-
const n = !!i.header.keyframe;
|
|
16287
|
-
if (codecDataChanged(this.currentCodecData, i.header.codecData)) {
|
|
16445
|
+
const n = !!((d = i.header.media) != null && d.keyframe);
|
|
16446
|
+
if (codecDataChanged(this.currentCodecData, (u = i.header.media) == null ? void 0 : u.codecData)) {
|
|
16288
16447
|
if (!n) {
|
|
16289
16448
|
this.logger.debug("Waiting for keyframe (codec change)");
|
|
16290
16449
|
return;
|
|
16291
16450
|
}
|
|
16292
|
-
this.currentCodecData = i.header.codecData, this.isConfiguring = !0, this.pendingDuringConfig = [i], await this.configureDecoder(i.header.codecData), this.isConfiguring = !1, this.waitingForKeyframe = !0;
|
|
16293
|
-
const
|
|
16294
|
-
this.pendingDuringConfig = [], this.logger.info(`Processing ${
|
|
16295
|
-
for (const
|
|
16451
|
+
this.currentCodecData = (F = i.header.media) == null ? void 0 : F.codecData, this.isConfiguring = !0, this.pendingDuringConfig = [i], await this.configureDecoder((R = i.header.media) == null ? void 0 : R.codecData), this.isConfiguring = !1, this.waitingForKeyframe = !0;
|
|
16452
|
+
const h = this.pendingDuringConfig;
|
|
16453
|
+
this.pendingDuringConfig = [], this.logger.info(`Processing ${h.length} frames queued during configuration`);
|
|
16454
|
+
for (const B of h)
|
|
16296
16455
|
await this.handleStreamData({
|
|
16297
16456
|
trackName: l.trackName,
|
|
16298
16457
|
streamType: l.streamType,
|
|
16299
|
-
data:
|
|
16458
|
+
data: B
|
|
16300
16459
|
});
|
|
16301
16460
|
return;
|
|
16302
16461
|
}
|
|
16303
16462
|
if (this.isConfiguring) {
|
|
16304
|
-
this.logger.debug(`Queueing frame pts=${i.header.pts} during configuration`), this.pendingDuringConfig.push(i);
|
|
16463
|
+
this.logger.debug(`Queueing frame pts=${(S = i.header.media) == null ? void 0 : S.pts} during configuration`), this.pendingDuringConfig.push(i);
|
|
16305
16464
|
return;
|
|
16306
16465
|
}
|
|
16307
16466
|
if (!this.decoder || this.decoder.state !== "configured") {
|
|
16308
|
-
this.logger.warn(`Dropping frame pts=${i.header.pts}: decoder not ready (state=${((
|
|
16467
|
+
this.logger.warn(`Dropping frame pts=${(y = i.header.media) == null ? void 0 : y.pts}: decoder not ready (state=${((E = this.decoder) == null ? void 0 : E.state) ?? "null"})`);
|
|
16309
16468
|
return;
|
|
16310
16469
|
}
|
|
16311
16470
|
if (this.waitingForKeyframe) {
|
|
16312
16471
|
if (!n) {
|
|
16313
|
-
this.logger.debug(`Dropping frame pts=${i.header.pts}: waiting for keyframe`);
|
|
16314
|
-
const
|
|
16315
|
-
(!this.lastWaitingForKeyframeLog ||
|
|
16472
|
+
this.logger.debug(`Dropping frame pts=${(W = i.header.media) == null ? void 0 : W.pts}: waiting for keyframe`);
|
|
16473
|
+
const h = Date.now();
|
|
16474
|
+
(!this.lastWaitingForKeyframeLog || h - this.lastWaitingForKeyframeLog > 1e3) && (this.logger.info("Waiting for keyframe to resume playback..."), this.lastWaitingForKeyframeLog = h, (!this.lastKeyframeRequest || h - this.lastKeyframeRequest > 1e3) && (this.logger.info("Requesting keyframe..."), (T = (N = this.streamSource) == null ? void 0 : N.requestKeyframe) == null || T.call(N), this.lastKeyframeRequest = h));
|
|
16316
16475
|
return;
|
|
16317
16476
|
}
|
|
16318
16477
|
this.logger.debug("Keyframe received, resuming decode"), this.waitingForKeyframe = !1, this.lastWaitingForKeyframeLog = 0;
|
|
16319
16478
|
}
|
|
16320
16479
|
try {
|
|
16321
|
-
const
|
|
16322
|
-
if (this.arrivalTimes.set(
|
|
16323
|
-
const
|
|
16324
|
-
if (
|
|
16325
|
-
const
|
|
16326
|
-
this.estimatedFrameRate = Math.round(1e6 /
|
|
16480
|
+
const h = performance.now(), B = (m = (C = i.header.media) == null ? void 0 : C.codecData) != null && m.timebaseDen && ((p = (Q = i.header.media) == null ? void 0 : Q.codecData) != null && p.timebaseNum) ? { num: i.header.media.codecData.timebaseNum, den: i.header.media.codecData.timebaseDen } : { num: 1, den: 1e6 }, J = { num: 1, den: 1e6 }, V = rescaleTime(((f = i.header.media) == null ? void 0 : f.pts) ?? 0, B, J);
|
|
16481
|
+
if (this.arrivalTimes.set(V, h), this.keyframeStatus.set(V, n), this.lastVideoTimestampUs >= 0 && V > this.lastVideoTimestampUs) {
|
|
16482
|
+
const v = V - this.lastVideoTimestampUs;
|
|
16483
|
+
if (v > 5e3 && v < 1e6 && (this.fpsEstimateSamples.push(v), this.fpsEstimateSamples.length > qo.FPS_SAMPLE_COUNT && this.fpsEstimateSamples.shift(), this.fpsEstimateSamples.length >= 3)) {
|
|
16484
|
+
const b = this.fpsEstimateSamples.reduce((g, Z) => g + Z, 0) / this.fpsEstimateSamples.length;
|
|
16485
|
+
this.estimatedFrameRate = Math.round(1e6 / b);
|
|
16327
16486
|
}
|
|
16328
16487
|
}
|
|
16329
|
-
if (this.lastVideoTimestampUs =
|
|
16330
|
-
const
|
|
16331
|
-
for (let
|
|
16332
|
-
this.arrivalTimes.delete(
|
|
16488
|
+
if (this.lastVideoTimestampUs = V, this.arrivalTimes.size > 100) {
|
|
16489
|
+
const v = [...this.arrivalTimes.entries()];
|
|
16490
|
+
for (let b = 0; b < v.length - 100; b++)
|
|
16491
|
+
this.arrivalTimes.delete(v[b][0]), this.keyframeStatus.delete(v[b][0]);
|
|
16333
16492
|
}
|
|
16334
16493
|
this.decoder.decodeBinary(i);
|
|
16335
|
-
} catch (
|
|
16336
|
-
this.logger.error(`Decode error: ${
|
|
16494
|
+
} catch (h) {
|
|
16495
|
+
this.logger.error(`Decode error: ${h}`);
|
|
16337
16496
|
}
|
|
16338
16497
|
}
|
|
16339
16498
|
/**
|
|
16340
16499
|
* Handle incoming audio frame data
|
|
16341
16500
|
*/
|
|
16342
16501
|
async handleAudioData(l) {
|
|
16343
|
-
var r;
|
|
16502
|
+
var r, t, e, n, s, a, d, u, F, R;
|
|
16344
16503
|
if (!this.config.enableAudio)
|
|
16345
16504
|
return;
|
|
16346
16505
|
const i = this.audioCodecData ?? void 0;
|
|
16347
|
-
(r = l.header) != null &&
|
|
16506
|
+
(t = (r = l.header) == null ? void 0 : r.media) != null && t.codecData && codecDataChanged(i, l.header.media.codecData) && (this.audioCodecData = l.header.media.codecData, this.audioPlayer && (this.audioPlayer.dispose(), this.audioPlayer = null), this.audioContext || (this.audioContext = new AudioContext(), this.ownsAudioContext = !0), this.audioPlayer = new LiveAudioPlayer(this.audioContext, {
|
|
16348
16507
|
bufferDelayMs: this.config.bufferDelayMs ?? 100
|
|
16349
|
-
}), await this.audioPlayer.init(l.header.codecData), this.audioPlayer.start(), this.logger.info(`Audio player started: ${l.header.codecData.codecType}, ${l.header.codecData.sampleRate}Hz, ${l.header.codecData.channels}ch`)), this.audioPlayer && l.payload && l.header && this.audioPlayer.decode(l.payload, l.header.pts);
|
|
16508
|
+
}), await this.audioPlayer.init((e = l.header.media) == null ? void 0 : e.codecData), this.audioPlayer.start(), this.logger.info(`Audio player started: ${(s = (n = l.header.media) == null ? void 0 : n.codecData) == null ? void 0 : s.codecType}, ${(d = (a = l.header.media) == null ? void 0 : a.codecData) == null ? void 0 : d.sampleRate}Hz, ${(F = (u = l.header.media) == null ? void 0 : u.codecData) == null ? void 0 : F.channels}ch`)), this.audioPlayer && l.payload && l.header && this.audioPlayer.decode(l.payload, (R = l.header.media) == null ? void 0 : R.pts);
|
|
16350
16509
|
}
|
|
16351
16510
|
/**
|
|
16352
16511
|
* Configure the decoder for a specific codec
|
|
@@ -16369,7 +16528,7 @@ const qo = class qo extends BasePlayer {
|
|
|
16369
16528
|
this.useWasmDecoder ? await this.decoder.configure(l) : await this.decoder.configure(l, i), this.streamWidth = l.width || 0, this.streamHeight = l.height || 0, this.lastVideoTimestampUs = -1, this.fpsEstimateSamples = [], this.estimatedFrameRate = 30, this.emit("metadata", {
|
|
16370
16529
|
width: l.width,
|
|
16371
16530
|
height: l.height,
|
|
16372
|
-
codec: this.getCodecName(l.codecType || sesame.v1.
|
|
16531
|
+
codec: this.getCodecName(l.codecType || sesame.v1.common.CodecType.CODEC_TYPE_VIDEO_AVC)
|
|
16373
16532
|
});
|
|
16374
16533
|
} catch (r) {
|
|
16375
16534
|
this.logger.error(`Failed to configure decoder: ${r}`), this.setState("error"), this.emit("error", r instanceof Error ? r : new Error(String(r)));
|
|
@@ -16377,11 +16536,11 @@ const qo = class qo extends BasePlayer {
|
|
|
16377
16536
|
}
|
|
16378
16537
|
getCodecName(l) {
|
|
16379
16538
|
switch (l) {
|
|
16380
|
-
case sesame.v1.
|
|
16539
|
+
case sesame.v1.common.CodecType.CODEC_TYPE_VIDEO_AVC:
|
|
16381
16540
|
return "H.264";
|
|
16382
|
-
case sesame.v1.
|
|
16541
|
+
case sesame.v1.common.CodecType.CODEC_TYPE_VIDEO_HEVC:
|
|
16383
16542
|
return "HEVC";
|
|
16384
|
-
case sesame.v1.
|
|
16543
|
+
case sesame.v1.common.CodecType.CODEC_TYPE_VIDEO_AV1:
|
|
16385
16544
|
return "AV1";
|
|
16386
16545
|
default:
|
|
16387
16546
|
return "Unknown";
|
|
@@ -16421,21 +16580,21 @@ const qo = class qo extends BasePlayer {
|
|
|
16421
16580
|
*/
|
|
16422
16581
|
convertYUVToVideoFrame(l, i, r) {
|
|
16423
16582
|
try {
|
|
16424
|
-
const { y: t, u: e, v: n, width: s, height: a, chromaStride: d, chromaHeight: u } = l, F = i > 0 ? i : s,
|
|
16425
|
-
|
|
16426
|
-
const
|
|
16427
|
-
if (d ===
|
|
16428
|
-
|
|
16583
|
+
const { y: t, u: e, v: n, width: s, height: a, chromaStride: d, chromaHeight: u } = l, F = i > 0 ? i : s, R = r > 0 ? r : a, y = s * a, E = d * u, W = y + E * 2, N = new Uint8Array(W);
|
|
16584
|
+
N.set(t.subarray(0, y), 0);
|
|
16585
|
+
const T = s / 2, C = y;
|
|
16586
|
+
if (d === T)
|
|
16587
|
+
N.set(e.subarray(0, E), C);
|
|
16429
16588
|
else
|
|
16430
16589
|
for (let Q = 0; Q < u; Q++)
|
|
16431
|
-
|
|
16432
|
-
const
|
|
16433
|
-
if (d ===
|
|
16434
|
-
|
|
16590
|
+
N.set(e.subarray(Q * d, Q * d + T), C + Q * T);
|
|
16591
|
+
const m = C + T * u;
|
|
16592
|
+
if (d === T)
|
|
16593
|
+
N.set(n.subarray(0, E), m);
|
|
16435
16594
|
else
|
|
16436
16595
|
for (let Q = 0; Q < u; Q++)
|
|
16437
|
-
|
|
16438
|
-
return new VideoFrame(
|
|
16596
|
+
N.set(n.subarray(Q * d, Q * d + T), m + Q * T);
|
|
16597
|
+
return new VideoFrame(N, {
|
|
16439
16598
|
format: "I420",
|
|
16440
16599
|
codedWidth: s,
|
|
16441
16600
|
codedHeight: a,
|
|
@@ -16443,7 +16602,7 @@ const qo = class qo extends BasePlayer {
|
|
|
16443
16602
|
x: 0,
|
|
16444
16603
|
y: 0,
|
|
16445
16604
|
width: F,
|
|
16446
|
-
height:
|
|
16605
|
+
height: R
|
|
16447
16606
|
},
|
|
16448
16607
|
timestamp: l.timestamp,
|
|
16449
16608
|
duration: this.estimatedFrameRate > 0 ? 1e6 / this.estimatedFrameRate : 33333
|
|
@@ -16485,7 +16644,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16485
16644
|
const i = new dr(o.byteLength);
|
|
16486
16645
|
return new Uint8Array(i).set(new Uint8Array(o)), i.fileStart = l, i;
|
|
16487
16646
|
}
|
|
16488
|
-
}, P, lr,
|
|
16647
|
+
}, P, lr, k, DataStream = (k = class {
|
|
16489
16648
|
/**
|
|
16490
16649
|
* DataStream reads scalars, arrays and structs of data from an ArrayBuffer.
|
|
16491
16650
|
* It's like a file-like DataView on steroids.
|
|
@@ -16615,13 +16774,13 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16615
16774
|
readInt32Array(o, l) {
|
|
16616
16775
|
o = o === void 0 ? this.byteLength - this.position / 4 : o;
|
|
16617
16776
|
const i = new Int32Array(o);
|
|
16618
|
-
return
|
|
16777
|
+
return k.memcpy(
|
|
16619
16778
|
i.buffer,
|
|
16620
16779
|
0,
|
|
16621
16780
|
this.buffer,
|
|
16622
16781
|
this.byteOffset + this.position,
|
|
16623
16782
|
o * i.BYTES_PER_ELEMENT
|
|
16624
|
-
),
|
|
16783
|
+
), k.arrayToNative(i, l ?? this.endianness), this.position += i.byteLength, i;
|
|
16625
16784
|
}
|
|
16626
16785
|
/**
|
|
16627
16786
|
* Reads an Int16Array of desired length and endianness from the DataStream.
|
|
@@ -16633,13 +16792,13 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16633
16792
|
readInt16Array(o, l) {
|
|
16634
16793
|
o = o === void 0 ? this.byteLength - this.position / 2 : o;
|
|
16635
16794
|
const i = new Int16Array(o);
|
|
16636
|
-
return
|
|
16795
|
+
return k.memcpy(
|
|
16637
16796
|
i.buffer,
|
|
16638
16797
|
0,
|
|
16639
16798
|
this.buffer,
|
|
16640
16799
|
this.byteOffset + this.position,
|
|
16641
16800
|
o * i.BYTES_PER_ELEMENT
|
|
16642
|
-
),
|
|
16801
|
+
), k.arrayToNative(i, l ?? this.endianness), this.position += i.byteLength, i;
|
|
16643
16802
|
}
|
|
16644
16803
|
/**
|
|
16645
16804
|
* Reads an Int8Array of desired length from the DataStream.
|
|
@@ -16651,7 +16810,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16651
16810
|
readInt8Array(o) {
|
|
16652
16811
|
o = o === void 0 ? this.byteLength - this.position : o;
|
|
16653
16812
|
const l = new Int8Array(o);
|
|
16654
|
-
return
|
|
16813
|
+
return k.memcpy(
|
|
16655
16814
|
l.buffer,
|
|
16656
16815
|
0,
|
|
16657
16816
|
this.buffer,
|
|
@@ -16669,13 +16828,13 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16669
16828
|
readUint32Array(o, l) {
|
|
16670
16829
|
o = o === void 0 ? this.byteLength - this.position / 4 : o;
|
|
16671
16830
|
const i = new Uint32Array(o);
|
|
16672
|
-
return
|
|
16831
|
+
return k.memcpy(
|
|
16673
16832
|
i.buffer,
|
|
16674
16833
|
0,
|
|
16675
16834
|
this.buffer,
|
|
16676
16835
|
this.byteOffset + this.position,
|
|
16677
16836
|
o * i.BYTES_PER_ELEMENT
|
|
16678
|
-
),
|
|
16837
|
+
), k.arrayToNative(i, l ?? this.endianness), this.position += i.byteLength, i;
|
|
16679
16838
|
}
|
|
16680
16839
|
/**
|
|
16681
16840
|
* Reads a Uint16Array of desired length and endianness from the DataStream.
|
|
@@ -16687,13 +16846,13 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16687
16846
|
readUint16Array(o, l) {
|
|
16688
16847
|
o = o === void 0 ? this.byteLength - this.position / 2 : o;
|
|
16689
16848
|
const i = new Uint16Array(o);
|
|
16690
|
-
return
|
|
16849
|
+
return k.memcpy(
|
|
16691
16850
|
i.buffer,
|
|
16692
16851
|
0,
|
|
16693
16852
|
this.buffer,
|
|
16694
16853
|
this.byteOffset + this.position,
|
|
16695
16854
|
o * i.BYTES_PER_ELEMENT
|
|
16696
|
-
),
|
|
16855
|
+
), k.arrayToNative(i, l ?? this.endianness), this.position += i.byteLength, i;
|
|
16697
16856
|
}
|
|
16698
16857
|
/**
|
|
16699
16858
|
* Reads a Uint8Array of desired length from the DataStream.
|
|
@@ -16705,7 +16864,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16705
16864
|
readUint8Array(o) {
|
|
16706
16865
|
o = o === void 0 ? this.byteLength - this.position : o;
|
|
16707
16866
|
const l = new Uint8Array(o);
|
|
16708
|
-
return
|
|
16867
|
+
return k.memcpy(
|
|
16709
16868
|
l.buffer,
|
|
16710
16869
|
0,
|
|
16711
16870
|
this.buffer,
|
|
@@ -16723,13 +16882,13 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16723
16882
|
readFloat64Array(o, l) {
|
|
16724
16883
|
o = o === void 0 ? this.byteLength - this.position / 8 : o;
|
|
16725
16884
|
const i = new Float64Array(o);
|
|
16726
|
-
return
|
|
16885
|
+
return k.memcpy(
|
|
16727
16886
|
i.buffer,
|
|
16728
16887
|
0,
|
|
16729
16888
|
this.buffer,
|
|
16730
16889
|
this.byteOffset + this.position,
|
|
16731
16890
|
o * i.BYTES_PER_ELEMENT
|
|
16732
|
-
),
|
|
16891
|
+
), k.arrayToNative(i, l ?? this.endianness), this.position += i.byteLength, i;
|
|
16733
16892
|
}
|
|
16734
16893
|
/**
|
|
16735
16894
|
* Reads a Float32Array of desired length and endianness from the DataStream.
|
|
@@ -16741,13 +16900,13 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16741
16900
|
readFloat32Array(o, l) {
|
|
16742
16901
|
o = o === void 0 ? this.byteLength - this.position / 4 : o;
|
|
16743
16902
|
const i = new Float32Array(o);
|
|
16744
|
-
return
|
|
16903
|
+
return k.memcpy(
|
|
16745
16904
|
i.buffer,
|
|
16746
16905
|
0,
|
|
16747
16906
|
this.buffer,
|
|
16748
16907
|
this.byteOffset + this.position,
|
|
16749
16908
|
o * i.BYTES_PER_ELEMENT
|
|
16750
|
-
),
|
|
16909
|
+
), k.arrayToNative(i, l ?? this.endianness), this.position += i.byteLength, i;
|
|
16751
16910
|
}
|
|
16752
16911
|
/**
|
|
16753
16912
|
* Reads a 32-bit int from the DataStream with the desired endianness.
|
|
@@ -16874,7 +17033,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16874
17033
|
* @return The converted typed array.
|
|
16875
17034
|
*/
|
|
16876
17035
|
static arrayToNative(o, l) {
|
|
16877
|
-
return l ===
|
|
17036
|
+
return l === k.ENDIANNESS ? o : this.flipArrayEndianness(o);
|
|
16878
17037
|
}
|
|
16879
17038
|
/**
|
|
16880
17039
|
* Converts native endianness array to desired endianness in-place.
|
|
@@ -16885,7 +17044,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16885
17044
|
* @return The converted typed array.
|
|
16886
17045
|
*/
|
|
16887
17046
|
static nativeToEndian(o, l) {
|
|
16888
|
-
return l &&
|
|
17047
|
+
return l && k.ENDIANNESS === 2 ? o : this.flipArrayEndianness(o);
|
|
16889
17048
|
}
|
|
16890
17049
|
/**
|
|
16891
17050
|
* Flips typed array endianness in-place.
|
|
@@ -16985,7 +17144,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
16985
17144
|
*/
|
|
16986
17145
|
writeInt32Array(o, l) {
|
|
16987
17146
|
if (this._realloc(o.length * 4), o instanceof Int32Array && this.byteOffset + this.position % o.BYTES_PER_ELEMENT === 0)
|
|
16988
|
-
|
|
17147
|
+
k.memcpy(
|
|
16989
17148
|
this._buffer,
|
|
16990
17149
|
this.byteOffset + this.position,
|
|
16991
17150
|
o.buffer,
|
|
@@ -17005,7 +17164,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17005
17164
|
*/
|
|
17006
17165
|
writeInt16Array(o, l) {
|
|
17007
17166
|
if (this._realloc(o.length * 2), o instanceof Int16Array && this.byteOffset + this.position % o.BYTES_PER_ELEMENT === 0)
|
|
17008
|
-
|
|
17167
|
+
k.memcpy(
|
|
17009
17168
|
this._buffer,
|
|
17010
17169
|
this.byteOffset + this.position,
|
|
17011
17170
|
o.buffer,
|
|
@@ -17024,7 +17183,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17024
17183
|
*/
|
|
17025
17184
|
writeInt8Array(o) {
|
|
17026
17185
|
if (this._realloc(o.length * 1), o instanceof Int8Array && this.byteOffset + this.position % o.BYTES_PER_ELEMENT === 0)
|
|
17027
|
-
|
|
17186
|
+
k.memcpy(
|
|
17028
17187
|
this._buffer,
|
|
17029
17188
|
this.byteOffset + this.position,
|
|
17030
17189
|
o.buffer,
|
|
@@ -17044,7 +17203,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17044
17203
|
*/
|
|
17045
17204
|
writeUint32Array(o, l) {
|
|
17046
17205
|
if (this._realloc(o.length * 4), o instanceof Uint32Array && this.byteOffset + this.position % o.BYTES_PER_ELEMENT === 0)
|
|
17047
|
-
|
|
17206
|
+
k.memcpy(
|
|
17048
17207
|
this._buffer,
|
|
17049
17208
|
this.byteOffset + this.position,
|
|
17050
17209
|
o.buffer,
|
|
@@ -17064,7 +17223,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17064
17223
|
*/
|
|
17065
17224
|
writeUint16Array(o, l) {
|
|
17066
17225
|
if (this._realloc(o.length * 2), o instanceof Uint16Array && this.byteOffset + this.position % o.BYTES_PER_ELEMENT === 0)
|
|
17067
|
-
|
|
17226
|
+
k.memcpy(
|
|
17068
17227
|
this._buffer,
|
|
17069
17228
|
this.byteOffset + this.position,
|
|
17070
17229
|
o.buffer,
|
|
@@ -17083,7 +17242,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17083
17242
|
*/
|
|
17084
17243
|
writeUint8Array(o) {
|
|
17085
17244
|
if (this._realloc(o.length * 1), o instanceof Uint8Array && this.byteOffset + this.position % o.BYTES_PER_ELEMENT === 0)
|
|
17086
|
-
|
|
17245
|
+
k.memcpy(
|
|
17087
17246
|
this._buffer,
|
|
17088
17247
|
this.byteOffset + this.position,
|
|
17089
17248
|
o.buffer,
|
|
@@ -17103,7 +17262,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17103
17262
|
*/
|
|
17104
17263
|
writeFloat64Array(o, l) {
|
|
17105
17264
|
if (this._realloc(o.length * 8), o instanceof Float64Array && this.byteOffset + this.position % o.BYTES_PER_ELEMENT === 0)
|
|
17106
|
-
|
|
17265
|
+
k.memcpy(
|
|
17107
17266
|
this._buffer,
|
|
17108
17267
|
this.byteOffset + this.position,
|
|
17109
17268
|
o.buffer,
|
|
@@ -17123,7 +17282,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17123
17282
|
*/
|
|
17124
17283
|
writeFloat32Array(o, l) {
|
|
17125
17284
|
if (this._realloc(o.length * 4), o instanceof Float32Array && this.byteOffset + this.position % o.BYTES_PER_ELEMENT === 0)
|
|
17126
|
-
|
|
17285
|
+
k.memcpy(
|
|
17127
17286
|
this._buffer,
|
|
17128
17287
|
this.byteOffset + this.position,
|
|
17129
17288
|
o.buffer,
|
|
@@ -17804,14 +17963,14 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17804
17963
|
case "string":
|
|
17805
17964
|
if (d) {
|
|
17806
17965
|
i = new Array(d);
|
|
17807
|
-
for (let
|
|
17808
|
-
i[
|
|
17966
|
+
for (let R = 0; R < d; R++)
|
|
17967
|
+
i[R] = this.readType(s, l);
|
|
17809
17968
|
} else
|
|
17810
17969
|
for (i = []; !this.isEof(); ) {
|
|
17811
|
-
const
|
|
17812
|
-
if (!
|
|
17970
|
+
const R = this.readType(s, l);
|
|
17971
|
+
if (!R)
|
|
17813
17972
|
break;
|
|
17814
|
-
i.push(
|
|
17973
|
+
i.push(R);
|
|
17815
17974
|
}
|
|
17816
17975
|
break;
|
|
17817
17976
|
}
|
|
@@ -17859,7 +18018,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17859
18018
|
mapInt32Array(o, l) {
|
|
17860
18019
|
this._realloc(o * 4);
|
|
17861
18020
|
const i = new Int32Array(this._buffer, this.byteOffset + this.position, o);
|
|
17862
|
-
return
|
|
18021
|
+
return k.arrayToNative(i, l ?? this.endianness), this.position += o * 4, i;
|
|
17863
18022
|
}
|
|
17864
18023
|
/**
|
|
17865
18024
|
* Maps an Int16Array into the DataStream buffer, swizzling it to native
|
|
@@ -17877,7 +18036,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17877
18036
|
mapInt16Array(o, l) {
|
|
17878
18037
|
this._realloc(o * 2);
|
|
17879
18038
|
const i = new Int16Array(this._buffer, this.byteOffset + this.position, o);
|
|
17880
|
-
return
|
|
18039
|
+
return k.arrayToNative(i, l ?? this.endianness), this.position += o * 2, i;
|
|
17881
18040
|
}
|
|
17882
18041
|
/**
|
|
17883
18042
|
* Maps an Int8Array into the DataStream buffer.
|
|
@@ -17910,7 +18069,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17910
18069
|
mapUint32Array(o, l) {
|
|
17911
18070
|
this._realloc(o * 4);
|
|
17912
18071
|
const i = new Uint32Array(this._buffer, this.byteOffset + this.position, o);
|
|
17913
|
-
return
|
|
18072
|
+
return k.arrayToNative(i, l ?? this.endianness), this.position += o * 4, i;
|
|
17914
18073
|
}
|
|
17915
18074
|
/**
|
|
17916
18075
|
* Maps a Uint16Array into the DataStream buffer, swizzling it to native
|
|
@@ -17928,7 +18087,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17928
18087
|
mapUint16Array(o, l) {
|
|
17929
18088
|
this._realloc(o * 2);
|
|
17930
18089
|
const i = new Uint16Array(this._buffer, this.byteOffset + this.position, o);
|
|
17931
|
-
return
|
|
18090
|
+
return k.arrayToNative(i, l ?? this.endianness), this.position += o * 2, i;
|
|
17932
18091
|
}
|
|
17933
18092
|
/**
|
|
17934
18093
|
* Maps a Float64Array into the DataStream buffer, swizzling it to native
|
|
@@ -17946,7 +18105,7 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17946
18105
|
mapFloat64Array(o, l) {
|
|
17947
18106
|
this._realloc(o * 8);
|
|
17948
18107
|
const i = new Float64Array(this._buffer, this.byteOffset + this.position, o);
|
|
17949
|
-
return
|
|
18108
|
+
return k.arrayToNative(i, l ?? this.endianness), this.position += o * 8, i;
|
|
17950
18109
|
}
|
|
17951
18110
|
/**
|
|
17952
18111
|
* Maps a Float32Array into the DataStream buffer, swizzling it to native
|
|
@@ -17964,11 +18123,11 @@ var __defProp = Object.defineProperty, __export = (U, o) => {
|
|
|
17964
18123
|
mapFloat32Array(o, l) {
|
|
17965
18124
|
this._realloc(o * 4);
|
|
17966
18125
|
const i = new Float32Array(this._buffer, this.byteOffset + this.position, o);
|
|
17967
|
-
return
|
|
18126
|
+
return k.arrayToNative(i, l ?? this.endianness), this.position += o * 4, i;
|
|
17968
18127
|
}
|
|
17969
18128
|
}, P = new WeakSet(), lr = function(o) {
|
|
17970
18129
|
return Array.isArray(o) && o.length === 3 && o[0] === "[]";
|
|
17971
|
-
},
|
|
18130
|
+
}, k.ENDIANNESS = new Int8Array(new Int16Array([1]).buffer)[0] > 0 ? 2 : 1, k);
|
|
17972
18131
|
function fromCharCodeUint8(U) {
|
|
17973
18132
|
const o = [];
|
|
17974
18133
|
for (let l = 0; l < U.length; l++)
|
|
@@ -19166,7 +19325,7 @@ var ContainerBox = class extends Box {
|
|
|
19166
19325
|
o.writeUint16(this.nalu_arrays[l][i].data.length), o.writeUint8Array(this.nalu_arrays[l][i].data);
|
|
19167
19326
|
}
|
|
19168
19327
|
}
|
|
19169
|
-
}, wt.fourcc = "hvcC", wt),
|
|
19328
|
+
}, wt.fourcc = "hvcC", wt), gt, mdhdBox = (gt = class extends FullBox {
|
|
19170
19329
|
constructor() {
|
|
19171
19330
|
super(...arguments), this.box_name = "MediaHeaderBox";
|
|
19172
19331
|
}
|
|
@@ -19178,7 +19337,7 @@ var ContainerBox = class extends Box {
|
|
|
19178
19337
|
const l = this.modification_time > MAX_UINT32 || this.creation_time > MAX_UINT32 || this.duration > MAX_UINT32 || this.version === 1;
|
|
19179
19338
|
this.version = l ? 1 : 0, this.size = 4 * 4 + 2 * 2, this.size += l ? 3 * 4 : 0, this.flags = 0, this.writeHeader(o), l ? (o.writeUint64(this.creation_time), o.writeUint64(this.modification_time), o.writeUint32(this.timescale), o.writeUint64(this.duration)) : (o.writeUint32(this.creation_time), o.writeUint32(this.modification_time), o.writeUint32(this.timescale), o.writeUint32(this.duration)), o.writeUint16(this.language), o.writeUint16(0);
|
|
19180
19339
|
}
|
|
19181
|
-
},
|
|
19340
|
+
}, gt.fourcc = "mdhd", gt), xt, mehdBox = (xt = class extends FullBox {
|
|
19182
19341
|
constructor() {
|
|
19183
19342
|
super(...arguments), this.box_name = "MovieExtendsHeaderBox";
|
|
19184
19343
|
}
|
|
@@ -19190,7 +19349,7 @@ var ContainerBox = class extends Box {
|
|
|
19190
19349
|
const l = this.fragment_duration > MAX_UINT32 || this.version === 1;
|
|
19191
19350
|
this.version = l ? 1 : 0, this.size = 4, this.size += l ? 4 : 0, this.flags = 0, this.writeHeader(o), l ? o.writeUint64(this.fragment_duration) : o.writeUint32(this.fragment_duration);
|
|
19192
19351
|
}
|
|
19193
|
-
},
|
|
19352
|
+
}, xt.fourcc = "mehd", xt), It, infeBox = (It = class extends FullBox {
|
|
19194
19353
|
constructor() {
|
|
19195
19354
|
super(...arguments), this.box_name = "ItemInfoEntry";
|
|
19196
19355
|
}
|
|
@@ -19201,7 +19360,7 @@ var ContainerBox = class extends Box {
|
|
|
19201
19360
|
}
|
|
19202
19361
|
this.version >= 2 && (this.version === 2 ? this.item_ID = o.readUint16() : this.version === 3 && (this.item_ID = o.readUint32()), this.item_protection_index = o.readUint16(), this.item_type = o.readString(4), this.item_name = o.readCString(), this.item_type === "mime" ? (this.content_type = o.readCString(), this.content_encoding = o.readCString()) : this.item_type === "uri " && (this.item_uri_type = o.readCString()));
|
|
19203
19362
|
}
|
|
19204
|
-
},
|
|
19363
|
+
}, It.fourcc = "infe", It), Mt, iinfBox = (Mt = class extends FullBox {
|
|
19205
19364
|
constructor() {
|
|
19206
19365
|
super(...arguments), this.box_name = "ItemInfoBox";
|
|
19207
19366
|
}
|
|
@@ -19256,7 +19415,7 @@ var ContainerBox = class extends Box {
|
|
|
19256
19415
|
}
|
|
19257
19416
|
const a = [], d = o.readUint16();
|
|
19258
19417
|
for (let u = 0; u < d; u++) {
|
|
19259
|
-
let F = 0,
|
|
19418
|
+
let F = 0, R = 0, S = 0;
|
|
19260
19419
|
if (this.version === 1 || this.version === 2)
|
|
19261
19420
|
switch (this.index_size) {
|
|
19262
19421
|
case 0:
|
|
@@ -19273,31 +19432,31 @@ var ContainerBox = class extends Box {
|
|
|
19273
19432
|
}
|
|
19274
19433
|
switch (this.offset_size) {
|
|
19275
19434
|
case 0:
|
|
19276
|
-
|
|
19435
|
+
R = 0;
|
|
19277
19436
|
break;
|
|
19278
19437
|
case 4:
|
|
19279
|
-
|
|
19438
|
+
R = o.readUint32();
|
|
19280
19439
|
break;
|
|
19281
19440
|
case 8:
|
|
19282
|
-
|
|
19441
|
+
R = o.readUint64();
|
|
19283
19442
|
break;
|
|
19284
19443
|
default:
|
|
19285
19444
|
throw new Error("Error reading extent index");
|
|
19286
19445
|
}
|
|
19287
19446
|
switch (this.length_size) {
|
|
19288
19447
|
case 0:
|
|
19289
|
-
|
|
19448
|
+
S = 0;
|
|
19290
19449
|
break;
|
|
19291
19450
|
case 4:
|
|
19292
|
-
|
|
19451
|
+
S = o.readUint32();
|
|
19293
19452
|
break;
|
|
19294
19453
|
case 8:
|
|
19295
|
-
|
|
19454
|
+
S = o.readUint64();
|
|
19296
19455
|
break;
|
|
19297
19456
|
default:
|
|
19298
19457
|
throw new Error("Error reading extent index");
|
|
19299
19458
|
}
|
|
19300
|
-
a.push({ extent_index: F, extent_length:
|
|
19459
|
+
a.push({ extent_index: F, extent_length: S, extent_offset: R });
|
|
19301
19460
|
}
|
|
19302
19461
|
this.items.push({
|
|
19303
19462
|
base_offset: n,
|
|
@@ -19759,13 +19918,13 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
19759
19918
|
}, Oe.fourcc = "mha2", Oe), Ze, mhm1SampleEntry = (Ze = class extends AudioSampleEntry {
|
|
19760
19919
|
}, Ze.fourcc = "mhm1", Ze), De, mhm2SampleEntry = (De = class extends AudioSampleEntry {
|
|
19761
19920
|
}, De.fourcc = "mhm2", De), we, fLaCSampleEntry = (we = class extends AudioSampleEntry {
|
|
19762
|
-
}, we.fourcc = "fLaC", we),
|
|
19763
|
-
},
|
|
19764
|
-
},
|
|
19921
|
+
}, we.fourcc = "fLaC", we), ge, encvSampleEntry = (ge = class extends VisualSampleEntry {
|
|
19922
|
+
}, ge.fourcc = "encv", ge), xe, encaSampleEntry = (xe = class extends AudioSampleEntry {
|
|
19923
|
+
}, xe.fourcc = "enca", xe), Ie, encuSampleEntry = (Ie = class extends SubtitleSampleEntry {
|
|
19765
19924
|
constructor() {
|
|
19766
19925
|
super(...arguments), this.subBoxNames = ["sinf"], this.sinfs = [];
|
|
19767
19926
|
}
|
|
19768
|
-
},
|
|
19927
|
+
}, Ie.fourcc = "encu", Ie), Me, encsSampleEntry = (Me = class extends SystemSampleEntry {
|
|
19769
19928
|
constructor() {
|
|
19770
19929
|
super(...arguments), this.subBoxNames = ["sinf"], this.sinfs = [];
|
|
19771
19930
|
}
|
|
@@ -20145,7 +20304,7 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
20145
20304
|
constructor(U, o, l) {
|
|
20146
20305
|
this.grouping_type = U, this.grouping_type_parameter = o, this.sbgp = l, this.last_sample_in_run = -1, this.entry_index = -1;
|
|
20147
20306
|
}
|
|
20148
|
-
}, ISOFile = class
|
|
20307
|
+
}, ISOFile = class w {
|
|
20149
20308
|
constructor(o, l = !0) {
|
|
20150
20309
|
this.boxes = [], this.mdats = [], this.moofs = [], this.isProgressive = !1, this.moovStartFound = !1, this.moovStartSent = !1, this.readySent = !1, this.sampleListBuilt = !1, this.fragmentedTracks = [], this.extractedTracks = [], this.isFragmentationInitialized = !1, this.sampleProcessingStarted = !1, this.nextMoofNumber = 0, this.itemListBuilt = !1, this.sidxSent = !1, this.items = [], this.entity_groups = [], this.itemsDataSize = 0, this.lastMoofIndex = 0, this.samplesDataSize = 0, this.lastBoxStartPosition = 0, this.nextParsePosition = 0, this.discardMdatData = !0, this.discardMdatData = l, o ? (this.stream = o, this.parse()) : this.stream = new MultiBufferStream(), this.stream.isofile = this;
|
|
20151
20310
|
}
|
|
@@ -20403,11 +20562,11 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
20403
20562
|
i.state.accumulatedSize += t.size;
|
|
20404
20563
|
const e = r.nextSample + 1, n = e - i.state.lastFragmentSampleNumber > i.nb_samples_per_fragment, s = e - i.state.lastSegmentSampleNumber > i.nb_samples;
|
|
20405
20564
|
let a = n || e % i.nb_samples_per_fragment === 0, d = s || e % i.nb_samples === 0, u = i.state.accumulatedSize >= i.size_per_segment;
|
|
20406
|
-
const F = !i.rapAlignement || t.is_sync,
|
|
20407
|
-
if (
|
|
20565
|
+
const F = !i.rapAlignement || t.is_sync, R = o || r.nextSample + 1 >= r.samples.length;
|
|
20566
|
+
if (R && !F && Log.warn(
|
|
20408
20567
|
"ISOFile",
|
|
20409
20568
|
"Flushing track #" + i.id + " at sample #" + r.nextSample + " which is not a RAP, this may lead to playback issues"
|
|
20410
|
-
), a = a && F, d = d && F, u = u && F, a || u ||
|
|
20569
|
+
), a = a && F, d = d && F, u = u && F, a || u || R) {
|
|
20411
20570
|
n ? Log.warn(
|
|
20412
20571
|
"ISOFile",
|
|
20413
20572
|
"Fragment on track #" + i.id + " is overdue, creating it with samples [" + i.state.lastFragmentSampleNumber + ", " + r.nextSample + "]"
|
|
@@ -20415,20 +20574,20 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
20415
20574
|
"ISOFile",
|
|
20416
20575
|
"Creating media fragment on track #" + i.id + " for samples [" + i.state.lastFragmentSampleNumber + ", " + r.nextSample + "]"
|
|
20417
20576
|
);
|
|
20418
|
-
const
|
|
20577
|
+
const S = this.createFragment(
|
|
20419
20578
|
i.id,
|
|
20420
20579
|
i.state.lastFragmentSampleNumber,
|
|
20421
20580
|
r.nextSample,
|
|
20422
20581
|
i.segmentStream
|
|
20423
20582
|
);
|
|
20424
|
-
if (
|
|
20425
|
-
i.segmentStream =
|
|
20583
|
+
if (S)
|
|
20584
|
+
i.segmentStream = S, i.state.lastFragmentSampleNumber = r.nextSample + 1;
|
|
20426
20585
|
else {
|
|
20427
20586
|
l.add(i.id);
|
|
20428
20587
|
continue;
|
|
20429
20588
|
}
|
|
20430
20589
|
}
|
|
20431
|
-
(d || u ||
|
|
20590
|
+
(d || u || R) && (s ? Log.warn(
|
|
20432
20591
|
"ISOFile",
|
|
20433
20592
|
"Segment on track #" + i.id + " is overdue, sending it with samples [" + Math.max(0, r.nextSample - i.nb_samples) + ", " + (r.nextSample - 1) + "]"
|
|
20434
20593
|
) : Log.info(
|
|
@@ -20674,7 +20833,7 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
20674
20833
|
id: r.tkhd.track_id,
|
|
20675
20834
|
user: this.fragmentedTracks[t].user
|
|
20676
20835
|
})),
|
|
20677
|
-
buffer:
|
|
20836
|
+
buffer: w.writeInitializationSegment(
|
|
20678
20837
|
this.ftyp,
|
|
20679
20838
|
o,
|
|
20680
20839
|
(i = (l = this.moov) == null ? void 0 : l.mvex) == null ? void 0 : i.mehd.fragment_duration
|
|
@@ -20763,18 +20922,18 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
20763
20922
|
buildTrakSampleLists(o) {
|
|
20764
20923
|
let l, i, r, t, e, n;
|
|
20765
20924
|
o.samples = [], o.samples_duration = 0, o.samples_size = 0;
|
|
20766
|
-
const s = o.mdia.minf.stbl.stco || o.mdia.minf.stbl.co64, a = o.mdia.minf.stbl.stsc, d = o.mdia.minf.stbl.stsz || o.mdia.minf.stbl.stz2, u = o.mdia.minf.stbl.stts, F = o.mdia.minf.stbl.ctts,
|
|
20767
|
-
let
|
|
20768
|
-
if (
|
|
20925
|
+
const s = o.mdia.minf.stbl.stco || o.mdia.minf.stbl.co64, a = o.mdia.minf.stbl.stsc, d = o.mdia.minf.stbl.stsz || o.mdia.minf.stbl.stz2, u = o.mdia.minf.stbl.stts, F = o.mdia.minf.stbl.ctts, R = o.mdia.minf.stbl.stss, S = o.mdia.minf.stbl.stsd, y = o.mdia.minf.stbl.subs, E = o.mdia.minf.stbl.stdp, W = o.mdia.minf.stbl.sbgps, N = o.mdia.minf.stbl.sgpds;
|
|
20926
|
+
let T = -1, C = -1, m = -1, Q = -1, p = 0, f = 0, h = 0;
|
|
20927
|
+
if (w.initSampleGroups(o, void 0, W, N), !(typeof d > "u")) {
|
|
20769
20928
|
for (l = 0; l < d.sample_sizes.length; l++) {
|
|
20770
|
-
const
|
|
20929
|
+
const B = {
|
|
20771
20930
|
number: l,
|
|
20772
20931
|
track_id: o.tkhd.track_id,
|
|
20773
20932
|
timescale: o.mdia.mdhd.timescale,
|
|
20774
20933
|
alreadyRead: 0,
|
|
20775
20934
|
size: d.sample_sizes[l]
|
|
20776
20935
|
};
|
|
20777
|
-
o.samples[l] =
|
|
20936
|
+
o.samples[l] = B, o.samples_size += B.size, l === 0 ? (r = 1, i = 0, B.chunk_index = r, B.chunk_run_index = i, n = a.samples_per_chunk[i], e = 0, i + 1 < a.first_chunk.length ? t = a.first_chunk[i + 1] - 1 : t = 1 / 0) : l < n ? (B.chunk_index = r, B.chunk_run_index = i) : (r++, B.chunk_index = r, e = 0, r <= t || (i++, i + 1 < a.first_chunk.length ? t = a.first_chunk[i + 1] - 1 : t = 1 / 0), B.chunk_run_index = i, n += a.samples_per_chunk[i]), B.description_index = a.sample_description_index[B.chunk_run_index] - 1, B.description = S.entries[B.description_index], B.offset = s.chunk_offsets[B.chunk_index - 1] + e, e += B.size, l > T && (C++, T < 0 && (T = 0), T += u.sample_counts[C]), l > 0 ? (o.samples[l - 1].duration = u.sample_deltas[C], o.samples_duration += o.samples[l - 1].duration, B.dts = o.samples[l - 1].dts + o.samples[l - 1].duration) : B.dts = 0, F ? (l >= m && (Q++, m < 0 && (m = 0), m += F.sample_counts[Q]), B.cts = o.samples[l].dts + F.sample_offsets[Q]) : B.cts = B.dts, R ? (l === R.sample_numbers[p] - 1 ? (B.is_sync = !0, p++) : (B.is_sync = !1, B.degradation_priority = 0), y && y.entries[f].sample_delta + h === l + 1 && (B.subsamples = y.entries[f].subsamples, h += y.entries[f].sample_delta, f++)) : B.is_sync = !0, w.process_sdtp(o.mdia.minf.stbl.sdtp, B, B.number), E ? B.degradation_priority = E.priority[l] : B.degradation_priority = 0, y && y.entries[f].sample_delta + h === l && (B.subsamples = y.entries[f].subsamples, h += y.entries[f].sample_delta), (W.length > 0 || N.length > 0) && w.setSampleGroupProperties(o, B, l, o.sample_groups_info);
|
|
20778
20937
|
}
|
|
20779
20938
|
l > 0 && (o.samples[l - 1].duration = Math.max(o.mdia.mdhd.duration - o.samples[l - 1].dts, 0), o.samples_duration += o.samples[l - 1].duration);
|
|
20780
20939
|
}
|
|
@@ -20792,52 +20951,52 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
20792
20951
|
const n = e;
|
|
20793
20952
|
for (let s = 0; s < n.trafs.length; s++) {
|
|
20794
20953
|
const a = n.trafs[s], d = this.getTrackById(a.tfhd.track_id), u = this.getTrexById(a.tfhd.track_id);
|
|
20795
|
-
a.tfhd.flags & TFHD_FLAG_SAMPLE_DESC ? o = a.tfhd.default_sample_description_index : o = u ? u.default_sample_description_index : 1, a.tfhd.flags & TFHD_FLAG_SAMPLE_DUR ? l = a.tfhd.default_sample_duration : l = u ? u.default_sample_duration : 0, a.tfhd.flags & TFHD_FLAG_SAMPLE_SIZE ? i = a.tfhd.default_sample_size : i = u ? u.default_sample_size : 0, a.tfhd.flags & TFHD_FLAG_SAMPLE_FLAGS ? r = a.tfhd.default_sample_flags : r = u ? u.default_sample_flags : 0, a.sample_number = 0, a.sbgps.length > 0 &&
|
|
20954
|
+
a.tfhd.flags & TFHD_FLAG_SAMPLE_DESC ? o = a.tfhd.default_sample_description_index : o = u ? u.default_sample_description_index : 1, a.tfhd.flags & TFHD_FLAG_SAMPLE_DUR ? l = a.tfhd.default_sample_duration : l = u ? u.default_sample_duration : 0, a.tfhd.flags & TFHD_FLAG_SAMPLE_SIZE ? i = a.tfhd.default_sample_size : i = u ? u.default_sample_size : 0, a.tfhd.flags & TFHD_FLAG_SAMPLE_FLAGS ? r = a.tfhd.default_sample_flags : r = u ? u.default_sample_flags : 0, a.sample_number = 0, a.sbgps.length > 0 && w.initSampleGroups(d, a, a.sbgps, d.mdia.minf.stbl.sgpds, a.sgpds);
|
|
20796
20955
|
for (let F = 0; F < a.truns.length; F++) {
|
|
20797
|
-
const
|
|
20798
|
-
for (let
|
|
20956
|
+
const R = a.truns[F];
|
|
20957
|
+
for (let S = 0; S < R.sample_count; S++) {
|
|
20799
20958
|
const y = o - 1;
|
|
20800
|
-
let
|
|
20801
|
-
|
|
20959
|
+
let E = r;
|
|
20960
|
+
R.flags & TRUN_FLAGS_FLAGS ? E = R.sample_flags[S] : S === 0 && R.flags & TRUN_FLAGS_FIRST_FLAG && (E = R.first_sample_flags);
|
|
20802
20961
|
let W = i;
|
|
20803
|
-
|
|
20804
|
-
let
|
|
20805
|
-
|
|
20806
|
-
let
|
|
20807
|
-
d.first_traf_merged ||
|
|
20808
|
-
let C =
|
|
20809
|
-
|
|
20810
|
-
const
|
|
20962
|
+
R.flags & TRUN_FLAGS_SIZE && (W = R.sample_size[S]), d.samples_size += W;
|
|
20963
|
+
let N = l;
|
|
20964
|
+
R.flags & TRUN_FLAGS_DURATION && (N = R.sample_duration[S]), d.samples_duration += N;
|
|
20965
|
+
let T;
|
|
20966
|
+
d.first_traf_merged || S > 0 ? T = d.samples[d.samples.length - 1].dts + d.samples[d.samples.length - 1].duration : (a.tfdt ? T = a.tfdt.baseMediaDecodeTime : T = 0, d.first_traf_merged = !0);
|
|
20967
|
+
let C = T;
|
|
20968
|
+
R.flags & TRUN_FLAGS_CTS_OFFSET && (C = T + R.sample_composition_time_offset[S]);
|
|
20969
|
+
const m = !!(a.tfhd.flags & TFHD_FLAG_BASE_DATA_OFFSET), Q = !!(a.tfhd.flags & TFHD_FLAG_DEFAULT_BASE_IS_MOOF), p = !!(R.flags & TRUN_FLAGS_DATA_OFFSET);
|
|
20811
20970
|
let f = 0;
|
|
20812
|
-
|
|
20813
|
-
let
|
|
20814
|
-
F === 0 &&
|
|
20815
|
-
const
|
|
20971
|
+
m ? f = a.tfhd.base_data_offset : Q || F === 0 ? f = n.start : f = t;
|
|
20972
|
+
let h;
|
|
20973
|
+
F === 0 && S === 0 ? p ? h = f + R.data_offset : h = f : h = t, t = h + W;
|
|
20974
|
+
const B = a.sample_number;
|
|
20816
20975
|
a.sample_number++;
|
|
20817
|
-
const
|
|
20976
|
+
const J = {
|
|
20818
20977
|
cts: C,
|
|
20819
20978
|
description_index: y,
|
|
20820
20979
|
description: d.mdia.minf.stbl.stsd.entries[y],
|
|
20821
|
-
dts:
|
|
20822
|
-
duration:
|
|
20980
|
+
dts: T,
|
|
20981
|
+
duration: N,
|
|
20823
20982
|
moof_number: this.lastMoofIndex,
|
|
20824
|
-
number_in_traf:
|
|
20983
|
+
number_in_traf: B,
|
|
20825
20984
|
number: d.samples.length,
|
|
20826
|
-
offset:
|
|
20985
|
+
offset: h,
|
|
20827
20986
|
size: W,
|
|
20828
20987
|
timescale: d.mdia.mdhd.timescale,
|
|
20829
20988
|
track_id: d.tkhd.track_id,
|
|
20830
|
-
is_sync: !(
|
|
20831
|
-
is_leading:
|
|
20832
|
-
depends_on:
|
|
20833
|
-
is_depended_on:
|
|
20834
|
-
has_redundancy:
|
|
20835
|
-
degradation_priority:
|
|
20989
|
+
is_sync: !(E >> 16 & 1),
|
|
20990
|
+
is_leading: E >> 26 & 3,
|
|
20991
|
+
depends_on: E >> 24 & 3,
|
|
20992
|
+
is_depended_on: E >> 22 & 3,
|
|
20993
|
+
has_redundancy: E >> 20 & 3,
|
|
20994
|
+
degradation_priority: E & 65535
|
|
20836
20995
|
};
|
|
20837
|
-
a.first_sample_index = d.samples.length, d.samples.push(
|
|
20996
|
+
a.first_sample_index = d.samples.length, d.samples.push(J), (a.sbgps.length > 0 || a.sgpds.length > 0 || d.mdia.minf.stbl.sbgps.length > 0 || d.mdia.minf.stbl.sgpds.length > 0) && w.setSampleGroupProperties(
|
|
20838
20997
|
d,
|
|
20839
|
-
|
|
20840
|
-
|
|
20998
|
+
J,
|
|
20999
|
+
J.number_in_traf,
|
|
20841
21000
|
a.sample_groups_info
|
|
20842
21001
|
);
|
|
20843
21002
|
}
|
|
@@ -20845,10 +21004,10 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
20845
21004
|
if (a.subs) {
|
|
20846
21005
|
d.has_fragment_subsamples = !0;
|
|
20847
21006
|
let F = a.first_sample_index;
|
|
20848
|
-
for (let
|
|
20849
|
-
F += a.subs.entries[
|
|
20850
|
-
const
|
|
20851
|
-
|
|
21007
|
+
for (let R = 0; R < a.subs.entries.length; R++) {
|
|
21008
|
+
F += a.subs.entries[R].sample_delta;
|
|
21009
|
+
const S = d.samples[F - 1];
|
|
21010
|
+
S.subsamples = a.subs.entries[R].subsamples;
|
|
20852
21011
|
}
|
|
20853
21012
|
}
|
|
20854
21013
|
}
|
|
@@ -21143,7 +21302,7 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
21143
21302
|
let l;
|
|
21144
21303
|
if (o ? l = this.getItem(o) : l = this.getPrimaryItem(), !l)
|
|
21145
21304
|
return;
|
|
21146
|
-
const i = new
|
|
21305
|
+
const i = new w();
|
|
21147
21306
|
i.discardMdatData = !1;
|
|
21148
21307
|
const r = {
|
|
21149
21308
|
type: l.type,
|
|
@@ -21261,20 +21420,20 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
21261
21420
|
), l.description_boxes && l.description_boxes.forEach(function(Q) {
|
|
21262
21421
|
u.addBox.call(u, Q);
|
|
21263
21422
|
});
|
|
21264
|
-
const
|
|
21265
|
-
|
|
21423
|
+
const R = a.addBox(new dinfBox()).addBox(new drefBox()), S = new urlBox();
|
|
21424
|
+
S.flags = 1, R.addEntry(S);
|
|
21266
21425
|
const y = a.addBox(new stblBox());
|
|
21267
21426
|
y.addBox(new stsdBox()).addEntry(u);
|
|
21268
21427
|
const W = y.addBox(new sttsBox());
|
|
21269
21428
|
W.sample_counts = [], W.sample_deltas = [];
|
|
21270
|
-
const
|
|
21271
|
-
|
|
21272
|
-
const
|
|
21273
|
-
|
|
21429
|
+
const N = y.addBox(new stscBox());
|
|
21430
|
+
N.first_chunk = [], N.samples_per_chunk = [], N.sample_description_index = [];
|
|
21431
|
+
const T = y.addBox(new stcoBox());
|
|
21432
|
+
T.chunk_offsets = [];
|
|
21274
21433
|
const C = y.addBox(new stszBox());
|
|
21275
21434
|
C.sample_sizes = [];
|
|
21276
|
-
const
|
|
21277
|
-
return
|
|
21435
|
+
const m = this.moov.mvex.addBox(new trexBox());
|
|
21436
|
+
return m.track_id = l.id, m.default_sample_description_index = l.default_sample_description_index || 1, m.default_sample_duration = l.default_sample_duration || 0, m.default_sample_size = l.default_sample_size || 0, m.default_sample_flags = l.default_sample_flags || 0, this.buildTrakSampleLists(i), l.id;
|
|
21278
21437
|
}
|
|
21279
21438
|
/** @bundle isofile-advanced-creation.js */
|
|
21280
21439
|
addSample(o, l, {
|
|
@@ -21288,18 +21447,18 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
21288
21447
|
is_depended_on: d = 0,
|
|
21289
21448
|
has_redundancy: u = 0,
|
|
21290
21449
|
degradation_priority: F = 0,
|
|
21291
|
-
subsamples:
|
|
21292
|
-
offset:
|
|
21450
|
+
subsamples: R,
|
|
21451
|
+
offset: S = 0
|
|
21293
21452
|
} = {}) {
|
|
21294
21453
|
const y = this.getTrackById(o);
|
|
21295
21454
|
if (y === void 0)
|
|
21296
21455
|
return;
|
|
21297
|
-
const
|
|
21456
|
+
const E = i ? i - 1 : 0, W = {
|
|
21298
21457
|
number: y.samples.length,
|
|
21299
21458
|
track_id: y.tkhd.track_id,
|
|
21300
21459
|
timescale: y.mdia.mdhd.timescale,
|
|
21301
|
-
description_index:
|
|
21302
|
-
description: y.mdia.minf.stbl.stsd.entries[
|
|
21460
|
+
description_index: E,
|
|
21461
|
+
description: y.mdia.minf.stbl.stsd.entries[E],
|
|
21303
21462
|
data: l,
|
|
21304
21463
|
size: l.byteLength,
|
|
21305
21464
|
alreadyRead: l.byteLength,
|
|
@@ -21312,14 +21471,14 @@ var avcCSampleEntryBase = class extends VisualSampleEntry {
|
|
|
21312
21471
|
is_depended_on: d,
|
|
21313
21472
|
has_redundancy: u,
|
|
21314
21473
|
degradation_priority: F,
|
|
21315
|
-
offset:
|
|
21316
|
-
subsamples:
|
|
21474
|
+
offset: S,
|
|
21475
|
+
subsamples: R
|
|
21317
21476
|
};
|
|
21318
21477
|
y.samples.push(W), y.samples_size += W.size, y.samples_duration += W.duration, y.first_dts === void 0 && (y.first_dts = e), this.processSamples();
|
|
21319
|
-
const
|
|
21320
|
-
|
|
21321
|
-
const
|
|
21322
|
-
return
|
|
21478
|
+
const N = this.addBox(this.createMoof([W]));
|
|
21479
|
+
N.computeSize(), N.trafs[0].truns[0].data_offset = N.size + 8;
|
|
21480
|
+
const T = this.addBox(new mdatBox());
|
|
21481
|
+
return T.data = new Uint8Array(l), W;
|
|
21323
21482
|
}
|
|
21324
21483
|
/** @bundle isofile-advanced-creation.js */
|
|
21325
21484
|
createMoof(o) {
|
|
@@ -21996,14 +22155,14 @@ var Qi, a1lxBox = (Qi = class extends Box {
|
|
|
21996
22155
|
parse(o) {
|
|
21997
22156
|
this.time = o.readUint32();
|
|
21998
22157
|
}
|
|
21999
|
-
}, wi.fourcc = "dmax", wi),
|
|
22158
|
+
}, wi.fourcc = "dmax", wi), gi, dmedBox = (gi = class extends Box {
|
|
22000
22159
|
constructor() {
|
|
22001
22160
|
super(...arguments), this.box_name = "hintmediaBytesSent";
|
|
22002
22161
|
}
|
|
22003
22162
|
parse(o) {
|
|
22004
22163
|
this.bytessent = o.readUint64();
|
|
22005
22164
|
}
|
|
22006
|
-
},
|
|
22165
|
+
}, gi.fourcc = "dmed", gi), xi, dOpsBox = (xi = class extends Box {
|
|
22007
22166
|
constructor() {
|
|
22008
22167
|
super(...arguments), this.box_name = "OpusSpecificBox";
|
|
22009
22168
|
}
|
|
@@ -22021,14 +22180,14 @@ var Qi, a1lxBox = (Qi = class extends Box {
|
|
|
22021
22180
|
o.writeUint8(this.ChannelMapping[l]);
|
|
22022
22181
|
}
|
|
22023
22182
|
}
|
|
22024
|
-
},
|
|
22183
|
+
}, xi.fourcc = "dOps", xi), Ii, drepBox = (Ii = class extends Box {
|
|
22025
22184
|
constructor() {
|
|
22026
22185
|
super(...arguments), this.box_name = "hintrepeatedBytesSent";
|
|
22027
22186
|
}
|
|
22028
22187
|
parse(o) {
|
|
22029
22188
|
this.bytessent = o.readUint64();
|
|
22030
22189
|
}
|
|
22031
|
-
},
|
|
22190
|
+
}, Ii.fourcc = "drep", Ii), Mi, elstBox = (Mi = class extends FullBox {
|
|
22032
22191
|
constructor() {
|
|
22033
22192
|
super(...arguments), this.box_name = "EditListBox";
|
|
22034
22193
|
}
|
|
@@ -22478,14 +22637,14 @@ function parseItifData(U, o) {
|
|
|
22478
22637
|
return l.getFloat32(0, !1);
|
|
22479
22638
|
Log.warn("DataBox", "Unsupported or unimplemented itif data type: " + U);
|
|
22480
22639
|
}
|
|
22481
|
-
var
|
|
22640
|
+
var _, dataBox = (_ = class extends Box {
|
|
22482
22641
|
constructor() {
|
|
22483
22642
|
super(...arguments), this.box_name = "DataBox";
|
|
22484
22643
|
}
|
|
22485
22644
|
parse(o) {
|
|
22486
22645
|
this.valueType = o.readUint32(), this.country = o.readUint16(), this.country > 255 && (o.seek(o.getPosition() - 2), this.countryString = o.readString(2)), this.language = o.readUint16(), this.language > 255 && (o.seek(o.getPosition() - 2), this.parseLanguage(o)), this.raw = o.readUint8Array(this.size - this.hdr_size - 8), this.value = parseItifData(this.valueType, this.raw);
|
|
22487
22646
|
}
|
|
22488
|
-
},
|
|
22647
|
+
}, _.fourcc = "data", _.Types = {
|
|
22489
22648
|
RESERVED: 0,
|
|
22490
22649
|
UTF8: 1,
|
|
22491
22650
|
UTF16: 2,
|
|
@@ -22512,7 +22671,7 @@ var M, dataBox = (M = class extends Box {
|
|
|
22512
22671
|
BE_UNSIGNED_INT32: 77,
|
|
22513
22672
|
BE_UNSIGNED_INT64: 78,
|
|
22514
22673
|
BE_FLOAT64_AFFINE_TRANSFORM: 79
|
|
22515
|
-
},
|
|
22674
|
+
}, _), Dn, enofBox = (Dn = class extends FullBox {
|
|
22516
22675
|
constructor() {
|
|
22517
22676
|
super(...arguments), this.box_name = "TrackEncodedPixelsDimensionsBox";
|
|
22518
22677
|
}
|
|
@@ -22531,7 +22690,7 @@ var M, dataBox = (M = class extends Box {
|
|
|
22531
22690
|
t.code === OK && (this.list[r] = t.box), l -= i;
|
|
22532
22691
|
}
|
|
22533
22692
|
}
|
|
22534
|
-
}, wn.fourcc = "ilst", wn),
|
|
22693
|
+
}, wn.fourcc = "ilst", wn), gn, keysBox = (gn = class extends FullBox {
|
|
22535
22694
|
constructor() {
|
|
22536
22695
|
super(...arguments), this.box_name = "KeysBox";
|
|
22537
22696
|
}
|
|
@@ -22542,18 +22701,18 @@ var M, dataBox = (M = class extends Box {
|
|
|
22542
22701
|
this.keys[l + 1] = o.readString(i - 4);
|
|
22543
22702
|
}
|
|
22544
22703
|
}
|
|
22545
|
-
},
|
|
22704
|
+
}, gn.fourcc = "keys", gn), xn, profBox = (xn = class extends FullBox {
|
|
22546
22705
|
constructor() {
|
|
22547
22706
|
super(...arguments), this.box_name = "TrackProductionApertureDimensionsBox";
|
|
22548
22707
|
}
|
|
22549
22708
|
parse(o) {
|
|
22550
22709
|
this.parseFullHeader(o), this.width = o.readUint32(), this.height = o.readUint32();
|
|
22551
22710
|
}
|
|
22552
|
-
},
|
|
22711
|
+
}, xn.fourcc = "prof", xn), In, taptBox = (In = class extends ContainerBox {
|
|
22553
22712
|
constructor() {
|
|
22554
22713
|
super(...arguments), this.box_name = "TrackApertureModeDimensionsBox", this.clefs = [], this.profs = [], this.enofs = [], this.subBoxNames = ["clef", "prof", "enof"];
|
|
22555
22714
|
}
|
|
22556
|
-
},
|
|
22715
|
+
}, In.fourcc = "tapt", In), Mn, waveBox = (Mn = class extends ContainerBox {
|
|
22557
22716
|
constructor() {
|
|
22558
22717
|
super(...arguments), this.box_name = "siDecompressionParamBox";
|
|
22559
22718
|
}
|
|
@@ -23095,22 +23254,22 @@ var M, dataBox = (M = class extends Box {
|
|
|
23095
23254
|
parse(o) {
|
|
23096
23255
|
Log.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
|
|
23097
23256
|
}
|
|
23098
|
-
}, wo.grouping_type = "scnm", wo),
|
|
23257
|
+
}, wo.grouping_type = "scnm", wo), go, seigSampleGroupEntry = (go = class extends SampleGroupEntry {
|
|
23099
23258
|
parse(o) {
|
|
23100
23259
|
this.reserved = o.readUint8();
|
|
23101
23260
|
const l = o.readUint8();
|
|
23102
23261
|
this.crypt_byte_block = l >> 4, this.skip_byte_block = l & 15, this.isProtected = o.readUint8(), this.Per_Sample_IV_Size = o.readUint8(), this.KID = parseHex16(o), this.constant_IV_size = 0, this.constant_IV = 0, this.isProtected === 1 && this.Per_Sample_IV_Size === 0 && (this.constant_IV_size = o.readUint8(), this.constant_IV = o.readUint8Array(this.constant_IV_size));
|
|
23103
23262
|
}
|
|
23104
|
-
},
|
|
23263
|
+
}, go.grouping_type = "seig", go), xo, stsaSampleGroupEntry = (xo = class extends SampleGroupEntry {
|
|
23105
23264
|
parse(o) {
|
|
23106
23265
|
Log.warn("BoxParser", "Sample Group type: " + this.grouping_type + " not fully parsed");
|
|
23107
23266
|
}
|
|
23108
|
-
},
|
|
23267
|
+
}, xo.grouping_type = "stsa", xo), Io, syncSampleGroupEntry = (Io = class extends SampleGroupEntry {
|
|
23109
23268
|
parse(o) {
|
|
23110
23269
|
const l = o.readUint8();
|
|
23111
23270
|
this.NAL_unit_type = l & 63;
|
|
23112
23271
|
}
|
|
23113
|
-
},
|
|
23272
|
+
}, Io.grouping_type = "sync", Io), Mo, teleSampleGroupEntry = (Mo = class extends SampleGroupEntry {
|
|
23114
23273
|
parse(o) {
|
|
23115
23274
|
const l = o.readUint8();
|
|
23116
23275
|
this.level_independently_decodable = l >> 7;
|
|
@@ -23249,55 +23408,55 @@ class MP4FileSource {
|
|
|
23249
23408
|
return new Promise((t, e) => {
|
|
23250
23409
|
let n = !1;
|
|
23251
23410
|
const s = this.mp4File.onSamples;
|
|
23252
|
-
this.mp4File.onSamples = (u, F,
|
|
23253
|
-
!n && u === this.videoTrackId &&
|
|
23411
|
+
this.mp4File.onSamples = (u, F, R) => {
|
|
23412
|
+
!n && u === this.videoTrackId && R.length > 0 && (n = !0), s == null || s.call(this.mp4File, u, F, R);
|
|
23254
23413
|
};
|
|
23255
23414
|
const a = this.mp4File.onReady;
|
|
23256
23415
|
this.mp4File.onReady = (u) => {
|
|
23257
23416
|
a == null || a.call(this.mp4File, u), this.fileInfo && !r && (r = !0);
|
|
23258
23417
|
}, (async () => {
|
|
23259
|
-
var u, F,
|
|
23418
|
+
var u, F, R, S, y, E, W, N, T, C;
|
|
23260
23419
|
try {
|
|
23261
|
-
const
|
|
23420
|
+
const m = await fetch(o, {
|
|
23262
23421
|
headers: { Range: `bytes=0-${l - 1}` }
|
|
23263
23422
|
});
|
|
23264
|
-
if (!
|
|
23265
|
-
throw new Error(`Failed to fetch: ${
|
|
23266
|
-
if (
|
|
23423
|
+
if (!m.ok && m.status !== 206)
|
|
23424
|
+
throw new Error(`Failed to fetch: ${m.status} ${m.statusText}`);
|
|
23425
|
+
if (m.status === 200) {
|
|
23267
23426
|
this.isProgressiveLoading = !1;
|
|
23268
|
-
const f = await
|
|
23427
|
+
const f = await m.arrayBuffer();
|
|
23269
23428
|
this.fileSize = f.byteLength, this.loadedBytes = f.byteLength;
|
|
23270
|
-
const
|
|
23271
|
-
|
|
23429
|
+
const h = f;
|
|
23430
|
+
h.fileStart = 0, (u = this.mp4File) == null || u.appendBuffer(h), (F = this.mp4File) == null || F.flush(), this.fileInfo ? t(this.fileInfo) : e(new Error("File loaded but no video track found"));
|
|
23272
23431
|
return;
|
|
23273
23432
|
}
|
|
23274
23433
|
if (this.isProgressiveLoading = !0, !this.fileSize) {
|
|
23275
|
-
const f =
|
|
23434
|
+
const f = m.headers.get("Content-Range");
|
|
23276
23435
|
if (f) {
|
|
23277
|
-
const
|
|
23278
|
-
|
|
23436
|
+
const h = f.match(/bytes \d+-\d+\/(\d+)/);
|
|
23437
|
+
h && (this.fileSize = parseInt(h[1], 10));
|
|
23279
23438
|
}
|
|
23280
23439
|
}
|
|
23281
|
-
const Q = await
|
|
23282
|
-
if (p.fileStart = 0, i = Q.byteLength, this.loadedBytes = i, (
|
|
23283
|
-
i < this.fileSize ? this.continueLoadingInBackground(o, i, l) : (
|
|
23440
|
+
const Q = await m.arrayBuffer(), p = Q;
|
|
23441
|
+
if (p.fileStart = 0, i = Q.byteLength, this.loadedBytes = i, (S = (R = this.events).onProgress) == null || S.call(R, this.loadedBytes, this.fileSize), (y = this.mp4File) == null || y.appendBuffer(p), r && n) {
|
|
23442
|
+
i < this.fileSize ? this.continueLoadingInBackground(o, i, l) : (E = this.mp4File) == null || E.flush(), t(this.fileInfo);
|
|
23284
23443
|
return;
|
|
23285
23444
|
}
|
|
23286
23445
|
for (; i < this.fileSize && (!r || !n); ) {
|
|
23287
|
-
const f = Math.min(i + l - 1, this.fileSize - 1),
|
|
23446
|
+
const f = Math.min(i + l - 1, this.fileSize - 1), h = await fetch(o, {
|
|
23288
23447
|
headers: { Range: `bytes=${i}-${f}` }
|
|
23289
23448
|
});
|
|
23290
|
-
if (!
|
|
23291
|
-
throw new Error(`Failed to fetch chunk: ${
|
|
23292
|
-
const
|
|
23293
|
-
if (
|
|
23449
|
+
if (!h.ok && h.status !== 206)
|
|
23450
|
+
throw new Error(`Failed to fetch chunk: ${h.status} ${h.statusText}`);
|
|
23451
|
+
const B = await h.arrayBuffer(), J = B;
|
|
23452
|
+
if (J.fileStart = i, i += B.byteLength, this.loadedBytes = i, (N = (W = this.events).onProgress) == null || N.call(W, this.loadedBytes, this.fileSize), (T = this.mp4File) == null || T.appendBuffer(J), r && n) {
|
|
23294
23453
|
this.continueLoadingInBackground(o, i, l), t(this.fileInfo);
|
|
23295
23454
|
return;
|
|
23296
23455
|
}
|
|
23297
23456
|
}
|
|
23298
23457
|
i >= this.fileSize && ((C = this.mp4File) == null || C.flush(), this.fileInfo ? t(this.fileInfo) : e(new Error("File loaded but no video track found")));
|
|
23299
|
-
} catch (
|
|
23300
|
-
e(
|
|
23458
|
+
} catch (m) {
|
|
23459
|
+
e(m);
|
|
23301
23460
|
}
|
|
23302
23461
|
})();
|
|
23303
23462
|
});
|
|
@@ -23311,21 +23470,21 @@ class MP4FileSource {
|
|
|
23311
23470
|
let r = l;
|
|
23312
23471
|
try {
|
|
23313
23472
|
for (; r < this.fileSize; ) {
|
|
23314
|
-
const
|
|
23473
|
+
const R = Math.min(r + i - 1, this.fileSize - 1), S = await fetch(o, {
|
|
23315
23474
|
headers: {
|
|
23316
|
-
Range: `bytes=${r}-${
|
|
23475
|
+
Range: `bytes=${r}-${R}`
|
|
23317
23476
|
}
|
|
23318
23477
|
});
|
|
23319
|
-
if (!
|
|
23320
|
-
(e = (t = this.events).onError) == null || e.call(t, new Error(`Failed to fetch chunk: ${
|
|
23478
|
+
if (!S.ok && S.status !== 206) {
|
|
23479
|
+
(e = (t = this.events).onError) == null || e.call(t, new Error(`Failed to fetch chunk: ${S.status}`));
|
|
23321
23480
|
break;
|
|
23322
23481
|
}
|
|
23323
|
-
const y = await
|
|
23324
|
-
|
|
23482
|
+
const y = await S.arrayBuffer(), E = y;
|
|
23483
|
+
E.fileStart = r, r += y.byteLength, this.loadedBytes = r, (s = (n = this.events).onProgress) == null || s.call(n, this.loadedBytes, this.fileSize), (a = this.mp4File) == null || a.appendBuffer(E);
|
|
23325
23484
|
}
|
|
23326
23485
|
(d = this.mp4File) == null || d.flush();
|
|
23327
|
-
} catch (
|
|
23328
|
-
(F = (u = this.events).onError) == null || F.call(u,
|
|
23486
|
+
} catch (R) {
|
|
23487
|
+
(F = (u = this.events).onError) == null || F.call(u, R);
|
|
23329
23488
|
}
|
|
23330
23489
|
})();
|
|
23331
23490
|
}
|
|
@@ -23402,44 +23561,44 @@ class MP4FileSource {
|
|
|
23402
23561
|
* Handle file ready event
|
|
23403
23562
|
*/
|
|
23404
23563
|
handleFileReady(o) {
|
|
23405
|
-
var l, i, r, t, e, n, s, a, d, u, F,
|
|
23564
|
+
var l, i, r, t, e, n, s, a, d, u, F, R, S, y, E, W, N, T, C, m, Q, p, f, h, B, J, V, v, b, g;
|
|
23406
23565
|
if (o.videoTracks.length > 0) {
|
|
23407
23566
|
this.videoTrack = o.videoTracks[0], this.videoTrackId = this.videoTrack.id, this.totalVideoSamples = this.videoTrack.nb_samples;
|
|
23408
|
-
const
|
|
23409
|
-
if (
|
|
23410
|
-
const
|
|
23411
|
-
if (
|
|
23412
|
-
const
|
|
23413
|
-
|
|
23567
|
+
const Z = (l = this.mp4File) == null ? void 0 : l.getTrackById(this.videoTrackId);
|
|
23568
|
+
if (Z) {
|
|
23569
|
+
const M = (n = (e = (t = (r = (i = Z.mdia) == null ? void 0 : i.minf) == null ? void 0 : r.stbl) == null ? void 0 : t.stsd) == null ? void 0 : e.entries) == null ? void 0 : n[0];
|
|
23570
|
+
if (M) {
|
|
23571
|
+
const O = M.avcC, D = M.hvcC;
|
|
23572
|
+
O ? this.videoDescription = this.serializeAvcC(O) : D && (this.videoDescription = this.serializeHvcC(D));
|
|
23414
23573
|
}
|
|
23415
23574
|
}
|
|
23416
23575
|
}
|
|
23417
23576
|
if (o.audioTracks.length > 0) {
|
|
23418
23577
|
this.audioTrack = o.audioTracks[0], this.audioTrackId = this.audioTrack.id, this.totalAudioSamples = this.audioTrack.nb_samples;
|
|
23419
|
-
const
|
|
23420
|
-
if (
|
|
23421
|
-
const
|
|
23422
|
-
if (
|
|
23423
|
-
const
|
|
23424
|
-
if (
|
|
23425
|
-
let
|
|
23426
|
-
if ((
|
|
23427
|
-
|
|
23428
|
-
else if ((
|
|
23429
|
-
|
|
23430
|
-
else if ((Q =
|
|
23431
|
-
for (const er of
|
|
23578
|
+
const Z = (s = this.mp4File) == null ? void 0 : s.getTrackById(this.audioTrackId);
|
|
23579
|
+
if (Z) {
|
|
23580
|
+
const M = (R = (F = (u = (d = (a = Z.mdia) == null ? void 0 : a.minf) == null ? void 0 : d.stbl) == null ? void 0 : u.stsd) == null ? void 0 : F.entries) == null ? void 0 : R[0];
|
|
23581
|
+
if (M) {
|
|
23582
|
+
const O = M.esds;
|
|
23583
|
+
if (O) {
|
|
23584
|
+
let D = null;
|
|
23585
|
+
if ((N = (W = (E = (y = (S = O.esd) == null ? void 0 : S.descs) == null ? void 0 : y[0]) == null ? void 0 : E.descs) == null ? void 0 : W[0]) != null && N.data)
|
|
23586
|
+
D = O.esd.descs[0].descs[0].data;
|
|
23587
|
+
else if ((m = (C = (T = O.esd) == null ? void 0 : T.descs) == null ? void 0 : C[0]) != null && m.data)
|
|
23588
|
+
D = O.esd.descs[0].data;
|
|
23589
|
+
else if ((Q = O.esd) != null && Q.descs)
|
|
23590
|
+
for (const er of O.esd.descs) {
|
|
23432
23591
|
if (er.tag === 4 && er.descs) {
|
|
23433
23592
|
for (const ir of er.descs)
|
|
23434
23593
|
if (ir.tag === 5 && ir.data) {
|
|
23435
|
-
|
|
23594
|
+
D = ir.data;
|
|
23436
23595
|
break;
|
|
23437
23596
|
}
|
|
23438
23597
|
}
|
|
23439
|
-
if (
|
|
23598
|
+
if (D)
|
|
23440
23599
|
break;
|
|
23441
23600
|
}
|
|
23442
|
-
|
|
23601
|
+
D && (this.audioDescription = D);
|
|
23443
23602
|
}
|
|
23444
23603
|
}
|
|
23445
23604
|
}
|
|
@@ -23451,13 +23610,13 @@ class MP4FileSource {
|
|
|
23451
23610
|
this.fileInfo = {
|
|
23452
23611
|
duration: this.videoTrack.duration / this.videoTrack.timescale,
|
|
23453
23612
|
timescale: this.videoTrack.timescale,
|
|
23454
|
-
width: ((
|
|
23455
|
-
height: ((
|
|
23613
|
+
width: ((h = this.videoTrack.video) == null ? void 0 : h.width) ?? 0,
|
|
23614
|
+
height: ((B = this.videoTrack.video) == null ? void 0 : B.height) ?? 0,
|
|
23456
23615
|
videoCodec: this.videoTrack.codec,
|
|
23457
23616
|
frameRate: this.videoTrack.nb_samples / (this.videoTrack.duration / this.videoTrack.timescale),
|
|
23458
23617
|
bitrate: this.videoTrack.bitrate,
|
|
23459
|
-
isMoovAtStart: ((
|
|
23460
|
-
}, this.audioTrack && (this.fileInfo.audioCodec = this.audioTrack.codec, this.fileInfo.audioChannels = (
|
|
23618
|
+
isMoovAtStart: ((J = this.mp4File) == null ? void 0 : J.isProgressive) ?? void 0
|
|
23619
|
+
}, this.audioTrack && (this.fileInfo.audioCodec = this.audioTrack.codec, this.fileInfo.audioChannels = (V = this.audioTrack.audio) == null ? void 0 : V.channel_count, this.fileInfo.audioSampleRate = (v = this.audioTrack.audio) == null ? void 0 : v.sample_rate), this.requestSamples(), (g = (b = this.events).onReady) == null || g.call(b, this.fileInfo);
|
|
23461
23620
|
}
|
|
23462
23621
|
/**
|
|
23463
23622
|
* Request samples to be extracted
|
|
@@ -25168,23 +25327,25 @@ class MediaCapture {
|
|
|
25168
25327
|
var e, n, s, a;
|
|
25169
25328
|
const i = o.type === "video", r = {
|
|
25170
25329
|
type: i ? sesame.v1.wire.FrameType.FRAME_TYPE_VIDEO : sesame.v1.wire.FrameType.FRAME_TYPE_AUDIO,
|
|
25171
|
-
|
|
25172
|
-
|
|
25173
|
-
|
|
25174
|
-
|
|
25175
|
-
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25330
|
+
media: {
|
|
25331
|
+
pts: BigInt(o.timestamp),
|
|
25332
|
+
keyframe: o.keyframe,
|
|
25333
|
+
codecData: {
|
|
25334
|
+
codecType: i ? CodecType.CODEC_TYPE_VIDEO_VP9 : CodecType.CODEC_TYPE_AUDIO_OPUS,
|
|
25335
|
+
codecProfile: 0,
|
|
25336
|
+
codecLevel: 0,
|
|
25337
|
+
width: ((e = this.videoMetadata) == null ? void 0 : e.width) || 0,
|
|
25338
|
+
height: ((n = this.videoMetadata) == null ? void 0 : n.height) || 0,
|
|
25339
|
+
channels: ((s = this.audioMetadata) == null ? void 0 : s.channels) || 0,
|
|
25340
|
+
sampleRate: ((a = this.audioMetadata) == null ? void 0 : a.sampleRate) || 0,
|
|
25341
|
+
bitDepth: 8,
|
|
25342
|
+
timebaseNum: 1,
|
|
25343
|
+
timebaseDen: 1e6
|
|
25344
|
+
}
|
|
25345
|
+
},
|
|
25346
|
+
routingMetadata: this.config.topic ? JSON.stringify({ metadata: this.config.topic }) : ""
|
|
25186
25347
|
};
|
|
25187
|
-
!i && this.config.audioTimestampOffset && (r.pts += BigInt(this.config.audioTimestampOffset)), this.config.topic && (r.routingMetadata = JSON.stringify({ metadata: this.config.topic }));
|
|
25348
|
+
!i && this.config.audioTimestampOffset && (r.media.pts += BigInt(this.config.audioTimestampOffset)), this.config.topic && (r.routingMetadata = JSON.stringify({ metadata: this.config.topic }));
|
|
25188
25349
|
const t = WireProtocol.serialize(r, l);
|
|
25189
25350
|
if (!t)
|
|
25190
25351
|
throw new Error("Failed to serialize packet");
|