@stinkycomputing/sesame-api-client 1.4.1-alpha.9 → 1.4.1-beta.2
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/README.md +59 -137
- package/dist/index.browser.mjs +1002 -401
- package/dist/index.browser.mjs.map +4 -4
- package/dist/index.cjs +1006 -403
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1002 -401
- package/dist/index.mjs.map +4 -4
- package/dist/proto/api.d.ts +348 -0
- package/dist/proto/api.js +1135 -17
- package/dist/rpc-client.d.ts.map +1 -1
- package/dist/sesame-api-client.d.ts +5 -6
- package/dist/sesame-api-client.d.ts.map +1 -1
- package/dist/sesame-connection.d.ts +11 -2
- package/dist/sesame-connection.d.ts.map +1 -1
- package/dist/sesame-wire-protocol.d.ts +29 -0
- package/dist/sesame-wire-protocol.d.ts.map +1 -0
- package/dist/status-api.d.ts +0 -1
- package/dist/status-api.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/proto/api.js
CHANGED
|
@@ -23328,15 +23328,22 @@ export const sesame = $root.sesame = (() => {
|
|
|
23328
23328
|
* @interface ITransportEvent
|
|
23329
23329
|
* @property {string|null} [sourceId] TransportEvent sourceId
|
|
23330
23330
|
* @property {string|null} [userId] TransportEvent userId
|
|
23331
|
+
* @property {string|null} [uri] TransportEvent uri
|
|
23331
23332
|
* @property {sesame.v1.sources.SourceTransportState|null} [state] TransportEvent state
|
|
23332
23333
|
* @property {number|Long|null} [durationUs] TransportEvent durationUs
|
|
23333
23334
|
* @property {number|Long|null} [positionUs] TransportEvent positionUs
|
|
23334
23335
|
* @property {number|Long|null} [materialPositionUs] TransportEvent materialPositionUs
|
|
23336
|
+
* @property {number|Long|null} [userTimeMs] TransportEvent userTimeMs
|
|
23337
|
+
* @property {number|null} [speed] TransportEvent speed
|
|
23335
23338
|
* @property {string|null} [userPlaylistId] TransportEvent userPlaylistId
|
|
23336
23339
|
* @property {number|null} [playlistIndex] TransportEvent playlistIndex
|
|
23337
23340
|
* @property {number|null} [playlistLength] TransportEvent playlistLength
|
|
23338
23341
|
* @property {number|Long|null} [clipId] TransportEvent clipId
|
|
23339
23342
|
* @property {number|Long|null} [clipPositionUs] TransportEvent clipPositionUs
|
|
23343
|
+
* @property {number|Long|null} [clipDurationUs] TransportEvent clipDurationUs
|
|
23344
|
+
* @property {number|null} [preroll] TransportEvent preroll
|
|
23345
|
+
* @property {number|null} [postroll] TransportEvent postroll
|
|
23346
|
+
* @property {string|null} [metadata] TransportEvent metadata
|
|
23340
23347
|
*/
|
|
23341
23348
|
|
|
23342
23349
|
/**
|
|
@@ -23370,6 +23377,14 @@ export const sesame = $root.sesame = (() => {
|
|
|
23370
23377
|
*/
|
|
23371
23378
|
TransportEvent.prototype.userId = "";
|
|
23372
23379
|
|
|
23380
|
+
/**
|
|
23381
|
+
* TransportEvent uri.
|
|
23382
|
+
* @member {string} uri
|
|
23383
|
+
* @memberof sesame.v1.status.TransportEvent
|
|
23384
|
+
* @instance
|
|
23385
|
+
*/
|
|
23386
|
+
TransportEvent.prototype.uri = "";
|
|
23387
|
+
|
|
23373
23388
|
/**
|
|
23374
23389
|
* TransportEvent state.
|
|
23375
23390
|
* @member {sesame.v1.sources.SourceTransportState} state
|
|
@@ -23402,6 +23417,22 @@ export const sesame = $root.sesame = (() => {
|
|
|
23402
23417
|
*/
|
|
23403
23418
|
TransportEvent.prototype.materialPositionUs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
23404
23419
|
|
|
23420
|
+
/**
|
|
23421
|
+
* TransportEvent userTimeMs.
|
|
23422
|
+
* @member {number|Long} userTimeMs
|
|
23423
|
+
* @memberof sesame.v1.status.TransportEvent
|
|
23424
|
+
* @instance
|
|
23425
|
+
*/
|
|
23426
|
+
TransportEvent.prototype.userTimeMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
23427
|
+
|
|
23428
|
+
/**
|
|
23429
|
+
* TransportEvent speed.
|
|
23430
|
+
* @member {number} speed
|
|
23431
|
+
* @memberof sesame.v1.status.TransportEvent
|
|
23432
|
+
* @instance
|
|
23433
|
+
*/
|
|
23434
|
+
TransportEvent.prototype.speed = 0;
|
|
23435
|
+
|
|
23405
23436
|
/**
|
|
23406
23437
|
* TransportEvent userPlaylistId.
|
|
23407
23438
|
* @member {string} userPlaylistId
|
|
@@ -23442,6 +23473,38 @@ export const sesame = $root.sesame = (() => {
|
|
|
23442
23473
|
*/
|
|
23443
23474
|
TransportEvent.prototype.clipPositionUs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
23444
23475
|
|
|
23476
|
+
/**
|
|
23477
|
+
* TransportEvent clipDurationUs.
|
|
23478
|
+
* @member {number|Long} clipDurationUs
|
|
23479
|
+
* @memberof sesame.v1.status.TransportEvent
|
|
23480
|
+
* @instance
|
|
23481
|
+
*/
|
|
23482
|
+
TransportEvent.prototype.clipDurationUs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
23483
|
+
|
|
23484
|
+
/**
|
|
23485
|
+
* TransportEvent preroll.
|
|
23486
|
+
* @member {number} preroll
|
|
23487
|
+
* @memberof sesame.v1.status.TransportEvent
|
|
23488
|
+
* @instance
|
|
23489
|
+
*/
|
|
23490
|
+
TransportEvent.prototype.preroll = 0;
|
|
23491
|
+
|
|
23492
|
+
/**
|
|
23493
|
+
* TransportEvent postroll.
|
|
23494
|
+
* @member {number} postroll
|
|
23495
|
+
* @memberof sesame.v1.status.TransportEvent
|
|
23496
|
+
* @instance
|
|
23497
|
+
*/
|
|
23498
|
+
TransportEvent.prototype.postroll = 0;
|
|
23499
|
+
|
|
23500
|
+
/**
|
|
23501
|
+
* TransportEvent metadata.
|
|
23502
|
+
* @member {string} metadata
|
|
23503
|
+
* @memberof sesame.v1.status.TransportEvent
|
|
23504
|
+
* @instance
|
|
23505
|
+
*/
|
|
23506
|
+
TransportEvent.prototype.metadata = "";
|
|
23507
|
+
|
|
23445
23508
|
/**
|
|
23446
23509
|
* Creates a new TransportEvent instance using the specified properties.
|
|
23447
23510
|
* @function create
|
|
@@ -23470,24 +23533,38 @@ export const sesame = $root.sesame = (() => {
|
|
|
23470
23533
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceId);
|
|
23471
23534
|
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
23472
23535
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
23536
|
+
if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
|
|
23537
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri);
|
|
23473
23538
|
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
23474
|
-
writer.uint32(/* id
|
|
23539
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state);
|
|
23475
23540
|
if (message.durationUs != null && Object.hasOwnProperty.call(message, "durationUs"))
|
|
23476
|
-
writer.uint32(/* id
|
|
23541
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int64(message.durationUs);
|
|
23477
23542
|
if (message.positionUs != null && Object.hasOwnProperty.call(message, "positionUs"))
|
|
23478
|
-
writer.uint32(/* id
|
|
23543
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int64(message.positionUs);
|
|
23479
23544
|
if (message.materialPositionUs != null && Object.hasOwnProperty.call(message, "materialPositionUs"))
|
|
23480
|
-
writer.uint32(/* id
|
|
23545
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int64(message.materialPositionUs);
|
|
23546
|
+
if (message.userTimeMs != null && Object.hasOwnProperty.call(message, "userTimeMs"))
|
|
23547
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int64(message.userTimeMs);
|
|
23548
|
+
if (message.speed != null && Object.hasOwnProperty.call(message, "speed"))
|
|
23549
|
+
writer.uint32(/* id 9, wireType 5 =*/77).float(message.speed);
|
|
23481
23550
|
if (message.userPlaylistId != null && Object.hasOwnProperty.call(message, "userPlaylistId"))
|
|
23482
|
-
writer.uint32(/* id
|
|
23551
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.userPlaylistId);
|
|
23483
23552
|
if (message.playlistIndex != null && Object.hasOwnProperty.call(message, "playlistIndex"))
|
|
23484
|
-
writer.uint32(/* id
|
|
23553
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.playlistIndex);
|
|
23485
23554
|
if (message.playlistLength != null && Object.hasOwnProperty.call(message, "playlistLength"))
|
|
23486
|
-
writer.uint32(/* id
|
|
23555
|
+
writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.playlistLength);
|
|
23487
23556
|
if (message.clipId != null && Object.hasOwnProperty.call(message, "clipId"))
|
|
23488
|
-
writer.uint32(/* id
|
|
23557
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.clipId);
|
|
23489
23558
|
if (message.clipPositionUs != null && Object.hasOwnProperty.call(message, "clipPositionUs"))
|
|
23490
|
-
writer.uint32(/* id
|
|
23559
|
+
writer.uint32(/* id 14, wireType 0 =*/112).int64(message.clipPositionUs);
|
|
23560
|
+
if (message.clipDurationUs != null && Object.hasOwnProperty.call(message, "clipDurationUs"))
|
|
23561
|
+
writer.uint32(/* id 15, wireType 0 =*/120).int64(message.clipDurationUs);
|
|
23562
|
+
if (message.preroll != null && Object.hasOwnProperty.call(message, "preroll"))
|
|
23563
|
+
writer.uint32(/* id 16, wireType 0 =*/128).uint32(message.preroll);
|
|
23564
|
+
if (message.postroll != null && Object.hasOwnProperty.call(message, "postroll"))
|
|
23565
|
+
writer.uint32(/* id 17, wireType 0 =*/136).uint32(message.postroll);
|
|
23566
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
23567
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.metadata);
|
|
23491
23568
|
return writer;
|
|
23492
23569
|
};
|
|
23493
23570
|
|
|
@@ -23533,41 +23610,69 @@ export const sesame = $root.sesame = (() => {
|
|
|
23533
23610
|
break;
|
|
23534
23611
|
}
|
|
23535
23612
|
case 3: {
|
|
23536
|
-
message.
|
|
23613
|
+
message.uri = reader.string();
|
|
23537
23614
|
break;
|
|
23538
23615
|
}
|
|
23539
23616
|
case 4: {
|
|
23540
|
-
message.
|
|
23617
|
+
message.state = reader.int32();
|
|
23541
23618
|
break;
|
|
23542
23619
|
}
|
|
23543
23620
|
case 5: {
|
|
23544
|
-
message.
|
|
23621
|
+
message.durationUs = reader.int64();
|
|
23545
23622
|
break;
|
|
23546
23623
|
}
|
|
23547
23624
|
case 6: {
|
|
23548
|
-
message.
|
|
23625
|
+
message.positionUs = reader.int64();
|
|
23549
23626
|
break;
|
|
23550
23627
|
}
|
|
23551
23628
|
case 7: {
|
|
23552
|
-
message.
|
|
23629
|
+
message.materialPositionUs = reader.int64();
|
|
23553
23630
|
break;
|
|
23554
23631
|
}
|
|
23555
23632
|
case 8: {
|
|
23556
|
-
message.
|
|
23633
|
+
message.userTimeMs = reader.int64();
|
|
23557
23634
|
break;
|
|
23558
23635
|
}
|
|
23559
23636
|
case 9: {
|
|
23560
|
-
message.
|
|
23637
|
+
message.speed = reader.float();
|
|
23561
23638
|
break;
|
|
23562
23639
|
}
|
|
23563
23640
|
case 10: {
|
|
23564
|
-
message.
|
|
23641
|
+
message.userPlaylistId = reader.string();
|
|
23565
23642
|
break;
|
|
23566
23643
|
}
|
|
23567
23644
|
case 11: {
|
|
23645
|
+
message.playlistIndex = reader.uint32();
|
|
23646
|
+
break;
|
|
23647
|
+
}
|
|
23648
|
+
case 12: {
|
|
23649
|
+
message.playlistLength = reader.uint32();
|
|
23650
|
+
break;
|
|
23651
|
+
}
|
|
23652
|
+
case 13: {
|
|
23653
|
+
message.clipId = reader.uint64();
|
|
23654
|
+
break;
|
|
23655
|
+
}
|
|
23656
|
+
case 14: {
|
|
23568
23657
|
message.clipPositionUs = reader.int64();
|
|
23569
23658
|
break;
|
|
23570
23659
|
}
|
|
23660
|
+
case 15: {
|
|
23661
|
+
message.clipDurationUs = reader.int64();
|
|
23662
|
+
break;
|
|
23663
|
+
}
|
|
23664
|
+
case 16: {
|
|
23665
|
+
message.preroll = reader.uint32();
|
|
23666
|
+
break;
|
|
23667
|
+
}
|
|
23668
|
+
case 17: {
|
|
23669
|
+
message.postroll = reader.uint32();
|
|
23670
|
+
break;
|
|
23671
|
+
}
|
|
23672
|
+
case 18: {
|
|
23673
|
+
message.metadata = reader.string();
|
|
23674
|
+
break;
|
|
23675
|
+
}
|
|
23571
23676
|
default:
|
|
23572
23677
|
reader.skipType(tag & 7);
|
|
23573
23678
|
break;
|
|
@@ -23609,6 +23714,9 @@ export const sesame = $root.sesame = (() => {
|
|
|
23609
23714
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
23610
23715
|
if (!$util.isString(message.userId))
|
|
23611
23716
|
return "userId: string expected";
|
|
23717
|
+
if (message.uri != null && message.hasOwnProperty("uri"))
|
|
23718
|
+
if (!$util.isString(message.uri))
|
|
23719
|
+
return "uri: string expected";
|
|
23612
23720
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
23613
23721
|
switch (message.state) {
|
|
23614
23722
|
default:
|
|
@@ -23629,6 +23737,12 @@ export const sesame = $root.sesame = (() => {
|
|
|
23629
23737
|
if (message.materialPositionUs != null && message.hasOwnProperty("materialPositionUs"))
|
|
23630
23738
|
if (!$util.isInteger(message.materialPositionUs) && !(message.materialPositionUs && $util.isInteger(message.materialPositionUs.low) && $util.isInteger(message.materialPositionUs.high)))
|
|
23631
23739
|
return "materialPositionUs: integer|Long expected";
|
|
23740
|
+
if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs"))
|
|
23741
|
+
if (!$util.isInteger(message.userTimeMs) && !(message.userTimeMs && $util.isInteger(message.userTimeMs.low) && $util.isInteger(message.userTimeMs.high)))
|
|
23742
|
+
return "userTimeMs: integer|Long expected";
|
|
23743
|
+
if (message.speed != null && message.hasOwnProperty("speed"))
|
|
23744
|
+
if (typeof message.speed !== "number")
|
|
23745
|
+
return "speed: number expected";
|
|
23632
23746
|
if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId"))
|
|
23633
23747
|
if (!$util.isString(message.userPlaylistId))
|
|
23634
23748
|
return "userPlaylistId: string expected";
|
|
@@ -23644,6 +23758,18 @@ export const sesame = $root.sesame = (() => {
|
|
|
23644
23758
|
if (message.clipPositionUs != null && message.hasOwnProperty("clipPositionUs"))
|
|
23645
23759
|
if (!$util.isInteger(message.clipPositionUs) && !(message.clipPositionUs && $util.isInteger(message.clipPositionUs.low) && $util.isInteger(message.clipPositionUs.high)))
|
|
23646
23760
|
return "clipPositionUs: integer|Long expected";
|
|
23761
|
+
if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs"))
|
|
23762
|
+
if (!$util.isInteger(message.clipDurationUs) && !(message.clipDurationUs && $util.isInteger(message.clipDurationUs.low) && $util.isInteger(message.clipDurationUs.high)))
|
|
23763
|
+
return "clipDurationUs: integer|Long expected";
|
|
23764
|
+
if (message.preroll != null && message.hasOwnProperty("preroll"))
|
|
23765
|
+
if (!$util.isInteger(message.preroll))
|
|
23766
|
+
return "preroll: integer expected";
|
|
23767
|
+
if (message.postroll != null && message.hasOwnProperty("postroll"))
|
|
23768
|
+
if (!$util.isInteger(message.postroll))
|
|
23769
|
+
return "postroll: integer expected";
|
|
23770
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
23771
|
+
if (!$util.isString(message.metadata))
|
|
23772
|
+
return "metadata: string expected";
|
|
23647
23773
|
return null;
|
|
23648
23774
|
};
|
|
23649
23775
|
|
|
@@ -23663,6 +23789,8 @@ export const sesame = $root.sesame = (() => {
|
|
|
23663
23789
|
message.sourceId = String(object.sourceId);
|
|
23664
23790
|
if (object.userId != null)
|
|
23665
23791
|
message.userId = String(object.userId);
|
|
23792
|
+
if (object.uri != null)
|
|
23793
|
+
message.uri = String(object.uri);
|
|
23666
23794
|
switch (object.state) {
|
|
23667
23795
|
default:
|
|
23668
23796
|
if (typeof object.state === "number") {
|
|
@@ -23718,6 +23846,17 @@ export const sesame = $root.sesame = (() => {
|
|
|
23718
23846
|
message.materialPositionUs = object.materialPositionUs;
|
|
23719
23847
|
else if (typeof object.materialPositionUs === "object")
|
|
23720
23848
|
message.materialPositionUs = new $util.LongBits(object.materialPositionUs.low >>> 0, object.materialPositionUs.high >>> 0).toNumber();
|
|
23849
|
+
if (object.userTimeMs != null)
|
|
23850
|
+
if ($util.Long)
|
|
23851
|
+
(message.userTimeMs = $util.Long.fromValue(object.userTimeMs)).unsigned = false;
|
|
23852
|
+
else if (typeof object.userTimeMs === "string")
|
|
23853
|
+
message.userTimeMs = parseInt(object.userTimeMs, 10);
|
|
23854
|
+
else if (typeof object.userTimeMs === "number")
|
|
23855
|
+
message.userTimeMs = object.userTimeMs;
|
|
23856
|
+
else if (typeof object.userTimeMs === "object")
|
|
23857
|
+
message.userTimeMs = new $util.LongBits(object.userTimeMs.low >>> 0, object.userTimeMs.high >>> 0).toNumber();
|
|
23858
|
+
if (object.speed != null)
|
|
23859
|
+
message.speed = Number(object.speed);
|
|
23721
23860
|
if (object.userPlaylistId != null)
|
|
23722
23861
|
message.userPlaylistId = String(object.userPlaylistId);
|
|
23723
23862
|
if (object.playlistIndex != null)
|
|
@@ -23742,6 +23881,21 @@ export const sesame = $root.sesame = (() => {
|
|
|
23742
23881
|
message.clipPositionUs = object.clipPositionUs;
|
|
23743
23882
|
else if (typeof object.clipPositionUs === "object")
|
|
23744
23883
|
message.clipPositionUs = new $util.LongBits(object.clipPositionUs.low >>> 0, object.clipPositionUs.high >>> 0).toNumber();
|
|
23884
|
+
if (object.clipDurationUs != null)
|
|
23885
|
+
if ($util.Long)
|
|
23886
|
+
(message.clipDurationUs = $util.Long.fromValue(object.clipDurationUs)).unsigned = false;
|
|
23887
|
+
else if (typeof object.clipDurationUs === "string")
|
|
23888
|
+
message.clipDurationUs = parseInt(object.clipDurationUs, 10);
|
|
23889
|
+
else if (typeof object.clipDurationUs === "number")
|
|
23890
|
+
message.clipDurationUs = object.clipDurationUs;
|
|
23891
|
+
else if (typeof object.clipDurationUs === "object")
|
|
23892
|
+
message.clipDurationUs = new $util.LongBits(object.clipDurationUs.low >>> 0, object.clipDurationUs.high >>> 0).toNumber();
|
|
23893
|
+
if (object.preroll != null)
|
|
23894
|
+
message.preroll = object.preroll >>> 0;
|
|
23895
|
+
if (object.postroll != null)
|
|
23896
|
+
message.postroll = object.postroll >>> 0;
|
|
23897
|
+
if (object.metadata != null)
|
|
23898
|
+
message.metadata = String(object.metadata);
|
|
23745
23899
|
return message;
|
|
23746
23900
|
};
|
|
23747
23901
|
|
|
@@ -23761,6 +23915,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
23761
23915
|
if (options.defaults) {
|
|
23762
23916
|
object.sourceId = "";
|
|
23763
23917
|
object.userId = "";
|
|
23918
|
+
object.uri = "";
|
|
23764
23919
|
object.state = options.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0;
|
|
23765
23920
|
if ($util.Long) {
|
|
23766
23921
|
let long = new $util.Long(0, 0, false);
|
|
@@ -23777,6 +23932,12 @@ export const sesame = $root.sesame = (() => {
|
|
|
23777
23932
|
object.materialPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
23778
23933
|
} else
|
|
23779
23934
|
object.materialPositionUs = options.longs === String ? "0" : 0;
|
|
23935
|
+
if ($util.Long) {
|
|
23936
|
+
let long = new $util.Long(0, 0, false);
|
|
23937
|
+
object.userTimeMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
23938
|
+
} else
|
|
23939
|
+
object.userTimeMs = options.longs === String ? "0" : 0;
|
|
23940
|
+
object.speed = 0;
|
|
23780
23941
|
object.userPlaylistId = "";
|
|
23781
23942
|
object.playlistIndex = 0;
|
|
23782
23943
|
object.playlistLength = 0;
|
|
@@ -23790,11 +23951,21 @@ export const sesame = $root.sesame = (() => {
|
|
|
23790
23951
|
object.clipPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
23791
23952
|
} else
|
|
23792
23953
|
object.clipPositionUs = options.longs === String ? "0" : 0;
|
|
23954
|
+
if ($util.Long) {
|
|
23955
|
+
let long = new $util.Long(0, 0, false);
|
|
23956
|
+
object.clipDurationUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
23957
|
+
} else
|
|
23958
|
+
object.clipDurationUs = options.longs === String ? "0" : 0;
|
|
23959
|
+
object.preroll = 0;
|
|
23960
|
+
object.postroll = 0;
|
|
23961
|
+
object.metadata = "";
|
|
23793
23962
|
}
|
|
23794
23963
|
if (message.sourceId != null && message.hasOwnProperty("sourceId"))
|
|
23795
23964
|
object.sourceId = message.sourceId;
|
|
23796
23965
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
23797
23966
|
object.userId = message.userId;
|
|
23967
|
+
if (message.uri != null && message.hasOwnProperty("uri"))
|
|
23968
|
+
object.uri = message.uri;
|
|
23798
23969
|
if (message.state != null && message.hasOwnProperty("state"))
|
|
23799
23970
|
object.state = options.enums === String ? $root.sesame.v1.sources.SourceTransportState[message.state] === undefined ? message.state : $root.sesame.v1.sources.SourceTransportState[message.state] : message.state;
|
|
23800
23971
|
if (message.durationUs != null && message.hasOwnProperty("durationUs"))
|
|
@@ -23812,6 +23983,13 @@ export const sesame = $root.sesame = (() => {
|
|
|
23812
23983
|
object.materialPositionUs = options.longs === String ? String(message.materialPositionUs) : message.materialPositionUs;
|
|
23813
23984
|
else
|
|
23814
23985
|
object.materialPositionUs = options.longs === String ? $util.Long.prototype.toString.call(message.materialPositionUs) : options.longs === Number ? new $util.LongBits(message.materialPositionUs.low >>> 0, message.materialPositionUs.high >>> 0).toNumber() : message.materialPositionUs;
|
|
23986
|
+
if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs"))
|
|
23987
|
+
if (typeof message.userTimeMs === "number")
|
|
23988
|
+
object.userTimeMs = options.longs === String ? String(message.userTimeMs) : message.userTimeMs;
|
|
23989
|
+
else
|
|
23990
|
+
object.userTimeMs = options.longs === String ? $util.Long.prototype.toString.call(message.userTimeMs) : options.longs === Number ? new $util.LongBits(message.userTimeMs.low >>> 0, message.userTimeMs.high >>> 0).toNumber() : message.userTimeMs;
|
|
23991
|
+
if (message.speed != null && message.hasOwnProperty("speed"))
|
|
23992
|
+
object.speed = options.json && !isFinite(message.speed) ? String(message.speed) : message.speed;
|
|
23815
23993
|
if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId"))
|
|
23816
23994
|
object.userPlaylistId = message.userPlaylistId;
|
|
23817
23995
|
if (message.playlistIndex != null && message.hasOwnProperty("playlistIndex"))
|
|
@@ -23828,6 +24006,17 @@ export const sesame = $root.sesame = (() => {
|
|
|
23828
24006
|
object.clipPositionUs = options.longs === String ? String(message.clipPositionUs) : message.clipPositionUs;
|
|
23829
24007
|
else
|
|
23830
24008
|
object.clipPositionUs = options.longs === String ? $util.Long.prototype.toString.call(message.clipPositionUs) : options.longs === Number ? new $util.LongBits(message.clipPositionUs.low >>> 0, message.clipPositionUs.high >>> 0).toNumber() : message.clipPositionUs;
|
|
24009
|
+
if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs"))
|
|
24010
|
+
if (typeof message.clipDurationUs === "number")
|
|
24011
|
+
object.clipDurationUs = options.longs === String ? String(message.clipDurationUs) : message.clipDurationUs;
|
|
24012
|
+
else
|
|
24013
|
+
object.clipDurationUs = options.longs === String ? $util.Long.prototype.toString.call(message.clipDurationUs) : options.longs === Number ? new $util.LongBits(message.clipDurationUs.low >>> 0, message.clipDurationUs.high >>> 0).toNumber() : message.clipDurationUs;
|
|
24014
|
+
if (message.preroll != null && message.hasOwnProperty("preroll"))
|
|
24015
|
+
object.preroll = message.preroll;
|
|
24016
|
+
if (message.postroll != null && message.hasOwnProperty("postroll"))
|
|
24017
|
+
object.postroll = message.postroll;
|
|
24018
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
24019
|
+
object.metadata = message.metadata;
|
|
23831
24020
|
return object;
|
|
23832
24021
|
};
|
|
23833
24022
|
|
|
@@ -37261,6 +37450,935 @@ export const sesame = $root.sesame = (() => {
|
|
|
37261
37450
|
return rpc;
|
|
37262
37451
|
})();
|
|
37263
37452
|
|
|
37453
|
+
v1.wire = (function() {
|
|
37454
|
+
|
|
37455
|
+
/**
|
|
37456
|
+
* Namespace wire.
|
|
37457
|
+
* @memberof sesame.v1
|
|
37458
|
+
* @namespace
|
|
37459
|
+
*/
|
|
37460
|
+
const wire = {};
|
|
37461
|
+
|
|
37462
|
+
/**
|
|
37463
|
+
* FrameType enum.
|
|
37464
|
+
* @name sesame.v1.wire.FrameType
|
|
37465
|
+
* @enum {number}
|
|
37466
|
+
* @property {number} FRAME_TYPE_UNSPECIFIED=0 FRAME_TYPE_UNSPECIFIED value
|
|
37467
|
+
* @property {number} FRAME_TYPE_RPC=1 FRAME_TYPE_RPC value
|
|
37468
|
+
* @property {number} FRAME_TYPE_VIDEO=2 FRAME_TYPE_VIDEO value
|
|
37469
|
+
* @property {number} FRAME_TYPE_AUDIO=3 FRAME_TYPE_AUDIO value
|
|
37470
|
+
* @property {number} FRAME_TYPE_MUXED=4 FRAME_TYPE_MUXED value
|
|
37471
|
+
* @property {number} FRAME_TYPE_DECODER_DATA=5 FRAME_TYPE_DECODER_DATA value
|
|
37472
|
+
* @property {number} FRAME_TYPE_DATA=6 FRAME_TYPE_DATA value
|
|
37473
|
+
*/
|
|
37474
|
+
wire.FrameType = (function() {
|
|
37475
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
37476
|
+
values[valuesById[0] = "FRAME_TYPE_UNSPECIFIED"] = 0;
|
|
37477
|
+
values[valuesById[1] = "FRAME_TYPE_RPC"] = 1;
|
|
37478
|
+
values[valuesById[2] = "FRAME_TYPE_VIDEO"] = 2;
|
|
37479
|
+
values[valuesById[3] = "FRAME_TYPE_AUDIO"] = 3;
|
|
37480
|
+
values[valuesById[4] = "FRAME_TYPE_MUXED"] = 4;
|
|
37481
|
+
values[valuesById[5] = "FRAME_TYPE_DECODER_DATA"] = 5;
|
|
37482
|
+
values[valuesById[6] = "FRAME_TYPE_DATA"] = 6;
|
|
37483
|
+
return values;
|
|
37484
|
+
})();
|
|
37485
|
+
|
|
37486
|
+
/**
|
|
37487
|
+
* CodecType enum.
|
|
37488
|
+
* @name sesame.v1.wire.CodecType
|
|
37489
|
+
* @enum {number}
|
|
37490
|
+
* @property {number} CODEC_TYPE_UNSPECIFIED=0 CODEC_TYPE_UNSPECIFIED value
|
|
37491
|
+
* @property {number} CODEC_TYPE_VIDEO_VP8=1 CODEC_TYPE_VIDEO_VP8 value
|
|
37492
|
+
* @property {number} CODEC_TYPE_VIDEO_VP9=2 CODEC_TYPE_VIDEO_VP9 value
|
|
37493
|
+
* @property {number} CODEC_TYPE_VIDEO_AVC=3 CODEC_TYPE_VIDEO_AVC value
|
|
37494
|
+
* @property {number} CODEC_TYPE_VIDEO_HEVC=4 CODEC_TYPE_VIDEO_HEVC value
|
|
37495
|
+
* @property {number} CODEC_TYPE_VIDEO_AV1=5 CODEC_TYPE_VIDEO_AV1 value
|
|
37496
|
+
* @property {number} CODEC_TYPE_AUDIO_OPUS=64 CODEC_TYPE_AUDIO_OPUS value
|
|
37497
|
+
* @property {number} CODEC_TYPE_AUDIO_AAC=65 CODEC_TYPE_AUDIO_AAC value
|
|
37498
|
+
* @property {number} CODEC_TYPE_AUDIO_PCM=66 CODEC_TYPE_AUDIO_PCM value
|
|
37499
|
+
*/
|
|
37500
|
+
wire.CodecType = (function() {
|
|
37501
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
37502
|
+
values[valuesById[0] = "CODEC_TYPE_UNSPECIFIED"] = 0;
|
|
37503
|
+
values[valuesById[1] = "CODEC_TYPE_VIDEO_VP8"] = 1;
|
|
37504
|
+
values[valuesById[2] = "CODEC_TYPE_VIDEO_VP9"] = 2;
|
|
37505
|
+
values[valuesById[3] = "CODEC_TYPE_VIDEO_AVC"] = 3;
|
|
37506
|
+
values[valuesById[4] = "CODEC_TYPE_VIDEO_HEVC"] = 4;
|
|
37507
|
+
values[valuesById[5] = "CODEC_TYPE_VIDEO_AV1"] = 5;
|
|
37508
|
+
values[valuesById[64] = "CODEC_TYPE_AUDIO_OPUS"] = 64;
|
|
37509
|
+
values[valuesById[65] = "CODEC_TYPE_AUDIO_AAC"] = 65;
|
|
37510
|
+
values[valuesById[66] = "CODEC_TYPE_AUDIO_PCM"] = 66;
|
|
37511
|
+
return values;
|
|
37512
|
+
})();
|
|
37513
|
+
|
|
37514
|
+
wire.MediaCodecData = (function() {
|
|
37515
|
+
|
|
37516
|
+
/**
|
|
37517
|
+
* Properties of a MediaCodecData.
|
|
37518
|
+
* @memberof sesame.v1.wire
|
|
37519
|
+
* @interface IMediaCodecData
|
|
37520
|
+
* @property {sesame.v1.wire.CodecType|null} [codecType] MediaCodecData codecType
|
|
37521
|
+
* @property {number|null} [sampleRate] MediaCodecData sampleRate
|
|
37522
|
+
* @property {number|null} [timebaseNum] MediaCodecData timebaseNum
|
|
37523
|
+
* @property {number|null} [timebaseDen] MediaCodecData timebaseDen
|
|
37524
|
+
* @property {number|null} [codecProfile] MediaCodecData codecProfile
|
|
37525
|
+
* @property {number|null} [codecLevel] MediaCodecData codecLevel
|
|
37526
|
+
* @property {number|null} [width] MediaCodecData width
|
|
37527
|
+
* @property {number|null} [height] MediaCodecData height
|
|
37528
|
+
* @property {number|null} [channels] MediaCodecData channels
|
|
37529
|
+
* @property {number|null} [bitDepth] MediaCodecData bitDepth
|
|
37530
|
+
*/
|
|
37531
|
+
|
|
37532
|
+
/**
|
|
37533
|
+
* Constructs a new MediaCodecData.
|
|
37534
|
+
* @memberof sesame.v1.wire
|
|
37535
|
+
* @classdesc Represents a MediaCodecData.
|
|
37536
|
+
* @implements IMediaCodecData
|
|
37537
|
+
* @constructor
|
|
37538
|
+
* @param {sesame.v1.wire.IMediaCodecData=} [properties] Properties to set
|
|
37539
|
+
*/
|
|
37540
|
+
function MediaCodecData(properties) {
|
|
37541
|
+
if (properties)
|
|
37542
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
37543
|
+
if (properties[keys[i]] != null)
|
|
37544
|
+
this[keys[i]] = properties[keys[i]];
|
|
37545
|
+
}
|
|
37546
|
+
|
|
37547
|
+
/**
|
|
37548
|
+
* MediaCodecData codecType.
|
|
37549
|
+
* @member {sesame.v1.wire.CodecType} codecType
|
|
37550
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37551
|
+
* @instance
|
|
37552
|
+
*/
|
|
37553
|
+
MediaCodecData.prototype.codecType = 0;
|
|
37554
|
+
|
|
37555
|
+
/**
|
|
37556
|
+
* MediaCodecData sampleRate.
|
|
37557
|
+
* @member {number} sampleRate
|
|
37558
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37559
|
+
* @instance
|
|
37560
|
+
*/
|
|
37561
|
+
MediaCodecData.prototype.sampleRate = 0;
|
|
37562
|
+
|
|
37563
|
+
/**
|
|
37564
|
+
* MediaCodecData timebaseNum.
|
|
37565
|
+
* @member {number} timebaseNum
|
|
37566
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37567
|
+
* @instance
|
|
37568
|
+
*/
|
|
37569
|
+
MediaCodecData.prototype.timebaseNum = 0;
|
|
37570
|
+
|
|
37571
|
+
/**
|
|
37572
|
+
* MediaCodecData timebaseDen.
|
|
37573
|
+
* @member {number} timebaseDen
|
|
37574
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37575
|
+
* @instance
|
|
37576
|
+
*/
|
|
37577
|
+
MediaCodecData.prototype.timebaseDen = 0;
|
|
37578
|
+
|
|
37579
|
+
/**
|
|
37580
|
+
* MediaCodecData codecProfile.
|
|
37581
|
+
* @member {number} codecProfile
|
|
37582
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37583
|
+
* @instance
|
|
37584
|
+
*/
|
|
37585
|
+
MediaCodecData.prototype.codecProfile = 0;
|
|
37586
|
+
|
|
37587
|
+
/**
|
|
37588
|
+
* MediaCodecData codecLevel.
|
|
37589
|
+
* @member {number} codecLevel
|
|
37590
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37591
|
+
* @instance
|
|
37592
|
+
*/
|
|
37593
|
+
MediaCodecData.prototype.codecLevel = 0;
|
|
37594
|
+
|
|
37595
|
+
/**
|
|
37596
|
+
* MediaCodecData width.
|
|
37597
|
+
* @member {number} width
|
|
37598
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37599
|
+
* @instance
|
|
37600
|
+
*/
|
|
37601
|
+
MediaCodecData.prototype.width = 0;
|
|
37602
|
+
|
|
37603
|
+
/**
|
|
37604
|
+
* MediaCodecData height.
|
|
37605
|
+
* @member {number} height
|
|
37606
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37607
|
+
* @instance
|
|
37608
|
+
*/
|
|
37609
|
+
MediaCodecData.prototype.height = 0;
|
|
37610
|
+
|
|
37611
|
+
/**
|
|
37612
|
+
* MediaCodecData channels.
|
|
37613
|
+
* @member {number} channels
|
|
37614
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37615
|
+
* @instance
|
|
37616
|
+
*/
|
|
37617
|
+
MediaCodecData.prototype.channels = 0;
|
|
37618
|
+
|
|
37619
|
+
/**
|
|
37620
|
+
* MediaCodecData bitDepth.
|
|
37621
|
+
* @member {number} bitDepth
|
|
37622
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37623
|
+
* @instance
|
|
37624
|
+
*/
|
|
37625
|
+
MediaCodecData.prototype.bitDepth = 0;
|
|
37626
|
+
|
|
37627
|
+
/**
|
|
37628
|
+
* Creates a new MediaCodecData instance using the specified properties.
|
|
37629
|
+
* @function create
|
|
37630
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37631
|
+
* @static
|
|
37632
|
+
* @param {sesame.v1.wire.IMediaCodecData=} [properties] Properties to set
|
|
37633
|
+
* @returns {sesame.v1.wire.MediaCodecData} MediaCodecData instance
|
|
37634
|
+
*/
|
|
37635
|
+
MediaCodecData.create = function create(properties) {
|
|
37636
|
+
return new MediaCodecData(properties);
|
|
37637
|
+
};
|
|
37638
|
+
|
|
37639
|
+
/**
|
|
37640
|
+
* Encodes the specified MediaCodecData message. Does not implicitly {@link sesame.v1.wire.MediaCodecData.verify|verify} messages.
|
|
37641
|
+
* @function encode
|
|
37642
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37643
|
+
* @static
|
|
37644
|
+
* @param {sesame.v1.wire.IMediaCodecData} message MediaCodecData message or plain object to encode
|
|
37645
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
37646
|
+
* @returns {$protobuf.Writer} Writer
|
|
37647
|
+
*/
|
|
37648
|
+
MediaCodecData.encode = function encode(message, writer) {
|
|
37649
|
+
if (!writer)
|
|
37650
|
+
writer = $Writer.create();
|
|
37651
|
+
if (message.codecType != null && Object.hasOwnProperty.call(message, "codecType"))
|
|
37652
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.codecType);
|
|
37653
|
+
if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate"))
|
|
37654
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.sampleRate);
|
|
37655
|
+
if (message.timebaseNum != null && Object.hasOwnProperty.call(message, "timebaseNum"))
|
|
37656
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.timebaseNum);
|
|
37657
|
+
if (message.timebaseDen != null && Object.hasOwnProperty.call(message, "timebaseDen"))
|
|
37658
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.timebaseDen);
|
|
37659
|
+
if (message.codecProfile != null && Object.hasOwnProperty.call(message, "codecProfile"))
|
|
37660
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.codecProfile);
|
|
37661
|
+
if (message.codecLevel != null && Object.hasOwnProperty.call(message, "codecLevel"))
|
|
37662
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.codecLevel);
|
|
37663
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
37664
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.width);
|
|
37665
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
37666
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.height);
|
|
37667
|
+
if (message.channels != null && Object.hasOwnProperty.call(message, "channels"))
|
|
37668
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.channels);
|
|
37669
|
+
if (message.bitDepth != null && Object.hasOwnProperty.call(message, "bitDepth"))
|
|
37670
|
+
writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.bitDepth);
|
|
37671
|
+
return writer;
|
|
37672
|
+
};
|
|
37673
|
+
|
|
37674
|
+
/**
|
|
37675
|
+
* Encodes the specified MediaCodecData message, length delimited. Does not implicitly {@link sesame.v1.wire.MediaCodecData.verify|verify} messages.
|
|
37676
|
+
* @function encodeDelimited
|
|
37677
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37678
|
+
* @static
|
|
37679
|
+
* @param {sesame.v1.wire.IMediaCodecData} message MediaCodecData message or plain object to encode
|
|
37680
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
37681
|
+
* @returns {$protobuf.Writer} Writer
|
|
37682
|
+
*/
|
|
37683
|
+
MediaCodecData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
37684
|
+
return this.encode(message, writer).ldelim();
|
|
37685
|
+
};
|
|
37686
|
+
|
|
37687
|
+
/**
|
|
37688
|
+
* Decodes a MediaCodecData message from the specified reader or buffer.
|
|
37689
|
+
* @function decode
|
|
37690
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37691
|
+
* @static
|
|
37692
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
37693
|
+
* @param {number} [length] Message length if known beforehand
|
|
37694
|
+
* @returns {sesame.v1.wire.MediaCodecData} MediaCodecData
|
|
37695
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
37696
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
37697
|
+
*/
|
|
37698
|
+
MediaCodecData.decode = function decode(reader, length, error) {
|
|
37699
|
+
if (!(reader instanceof $Reader))
|
|
37700
|
+
reader = $Reader.create(reader);
|
|
37701
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.wire.MediaCodecData();
|
|
37702
|
+
while (reader.pos < end) {
|
|
37703
|
+
let tag = reader.uint32();
|
|
37704
|
+
if (tag === error)
|
|
37705
|
+
break;
|
|
37706
|
+
switch (tag >>> 3) {
|
|
37707
|
+
case 1: {
|
|
37708
|
+
message.codecType = reader.int32();
|
|
37709
|
+
break;
|
|
37710
|
+
}
|
|
37711
|
+
case 2: {
|
|
37712
|
+
message.sampleRate = reader.uint32();
|
|
37713
|
+
break;
|
|
37714
|
+
}
|
|
37715
|
+
case 3: {
|
|
37716
|
+
message.timebaseNum = reader.uint32();
|
|
37717
|
+
break;
|
|
37718
|
+
}
|
|
37719
|
+
case 4: {
|
|
37720
|
+
message.timebaseDen = reader.uint32();
|
|
37721
|
+
break;
|
|
37722
|
+
}
|
|
37723
|
+
case 5: {
|
|
37724
|
+
message.codecProfile = reader.uint32();
|
|
37725
|
+
break;
|
|
37726
|
+
}
|
|
37727
|
+
case 6: {
|
|
37728
|
+
message.codecLevel = reader.uint32();
|
|
37729
|
+
break;
|
|
37730
|
+
}
|
|
37731
|
+
case 7: {
|
|
37732
|
+
message.width = reader.uint32();
|
|
37733
|
+
break;
|
|
37734
|
+
}
|
|
37735
|
+
case 8: {
|
|
37736
|
+
message.height = reader.uint32();
|
|
37737
|
+
break;
|
|
37738
|
+
}
|
|
37739
|
+
case 9: {
|
|
37740
|
+
message.channels = reader.uint32();
|
|
37741
|
+
break;
|
|
37742
|
+
}
|
|
37743
|
+
case 10: {
|
|
37744
|
+
message.bitDepth = reader.uint32();
|
|
37745
|
+
break;
|
|
37746
|
+
}
|
|
37747
|
+
default:
|
|
37748
|
+
reader.skipType(tag & 7);
|
|
37749
|
+
break;
|
|
37750
|
+
}
|
|
37751
|
+
}
|
|
37752
|
+
return message;
|
|
37753
|
+
};
|
|
37754
|
+
|
|
37755
|
+
/**
|
|
37756
|
+
* Decodes a MediaCodecData message from the specified reader or buffer, length delimited.
|
|
37757
|
+
* @function decodeDelimited
|
|
37758
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37759
|
+
* @static
|
|
37760
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
37761
|
+
* @returns {sesame.v1.wire.MediaCodecData} MediaCodecData
|
|
37762
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
37763
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
37764
|
+
*/
|
|
37765
|
+
MediaCodecData.decodeDelimited = function decodeDelimited(reader) {
|
|
37766
|
+
if (!(reader instanceof $Reader))
|
|
37767
|
+
reader = new $Reader(reader);
|
|
37768
|
+
return this.decode(reader, reader.uint32());
|
|
37769
|
+
};
|
|
37770
|
+
|
|
37771
|
+
/**
|
|
37772
|
+
* Verifies a MediaCodecData message.
|
|
37773
|
+
* @function verify
|
|
37774
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37775
|
+
* @static
|
|
37776
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
37777
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
37778
|
+
*/
|
|
37779
|
+
MediaCodecData.verify = function verify(message) {
|
|
37780
|
+
if (typeof message !== "object" || message === null)
|
|
37781
|
+
return "object expected";
|
|
37782
|
+
if (message.codecType != null && message.hasOwnProperty("codecType"))
|
|
37783
|
+
switch (message.codecType) {
|
|
37784
|
+
default:
|
|
37785
|
+
return "codecType: enum value expected";
|
|
37786
|
+
case 0:
|
|
37787
|
+
case 1:
|
|
37788
|
+
case 2:
|
|
37789
|
+
case 3:
|
|
37790
|
+
case 4:
|
|
37791
|
+
case 5:
|
|
37792
|
+
case 64:
|
|
37793
|
+
case 65:
|
|
37794
|
+
case 66:
|
|
37795
|
+
break;
|
|
37796
|
+
}
|
|
37797
|
+
if (message.sampleRate != null && message.hasOwnProperty("sampleRate"))
|
|
37798
|
+
if (!$util.isInteger(message.sampleRate))
|
|
37799
|
+
return "sampleRate: integer expected";
|
|
37800
|
+
if (message.timebaseNum != null && message.hasOwnProperty("timebaseNum"))
|
|
37801
|
+
if (!$util.isInteger(message.timebaseNum))
|
|
37802
|
+
return "timebaseNum: integer expected";
|
|
37803
|
+
if (message.timebaseDen != null && message.hasOwnProperty("timebaseDen"))
|
|
37804
|
+
if (!$util.isInteger(message.timebaseDen))
|
|
37805
|
+
return "timebaseDen: integer expected";
|
|
37806
|
+
if (message.codecProfile != null && message.hasOwnProperty("codecProfile"))
|
|
37807
|
+
if (!$util.isInteger(message.codecProfile))
|
|
37808
|
+
return "codecProfile: integer expected";
|
|
37809
|
+
if (message.codecLevel != null && message.hasOwnProperty("codecLevel"))
|
|
37810
|
+
if (!$util.isInteger(message.codecLevel))
|
|
37811
|
+
return "codecLevel: integer expected";
|
|
37812
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
37813
|
+
if (!$util.isInteger(message.width))
|
|
37814
|
+
return "width: integer expected";
|
|
37815
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
37816
|
+
if (!$util.isInteger(message.height))
|
|
37817
|
+
return "height: integer expected";
|
|
37818
|
+
if (message.channels != null && message.hasOwnProperty("channels"))
|
|
37819
|
+
if (!$util.isInteger(message.channels))
|
|
37820
|
+
return "channels: integer expected";
|
|
37821
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
|
|
37822
|
+
if (!$util.isInteger(message.bitDepth))
|
|
37823
|
+
return "bitDepth: integer expected";
|
|
37824
|
+
return null;
|
|
37825
|
+
};
|
|
37826
|
+
|
|
37827
|
+
/**
|
|
37828
|
+
* Creates a MediaCodecData message from a plain object. Also converts values to their respective internal types.
|
|
37829
|
+
* @function fromObject
|
|
37830
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37831
|
+
* @static
|
|
37832
|
+
* @param {Object.<string,*>} object Plain object
|
|
37833
|
+
* @returns {sesame.v1.wire.MediaCodecData} MediaCodecData
|
|
37834
|
+
*/
|
|
37835
|
+
MediaCodecData.fromObject = function fromObject(object) {
|
|
37836
|
+
if (object instanceof $root.sesame.v1.wire.MediaCodecData)
|
|
37837
|
+
return object;
|
|
37838
|
+
let message = new $root.sesame.v1.wire.MediaCodecData();
|
|
37839
|
+
switch (object.codecType) {
|
|
37840
|
+
default:
|
|
37841
|
+
if (typeof object.codecType === "number") {
|
|
37842
|
+
message.codecType = object.codecType;
|
|
37843
|
+
break;
|
|
37844
|
+
}
|
|
37845
|
+
break;
|
|
37846
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
37847
|
+
case 0:
|
|
37848
|
+
message.codecType = 0;
|
|
37849
|
+
break;
|
|
37850
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
37851
|
+
case 1:
|
|
37852
|
+
message.codecType = 1;
|
|
37853
|
+
break;
|
|
37854
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
37855
|
+
case 2:
|
|
37856
|
+
message.codecType = 2;
|
|
37857
|
+
break;
|
|
37858
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
37859
|
+
case 3:
|
|
37860
|
+
message.codecType = 3;
|
|
37861
|
+
break;
|
|
37862
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
37863
|
+
case 4:
|
|
37864
|
+
message.codecType = 4;
|
|
37865
|
+
break;
|
|
37866
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
37867
|
+
case 5:
|
|
37868
|
+
message.codecType = 5;
|
|
37869
|
+
break;
|
|
37870
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
37871
|
+
case 64:
|
|
37872
|
+
message.codecType = 64;
|
|
37873
|
+
break;
|
|
37874
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
37875
|
+
case 65:
|
|
37876
|
+
message.codecType = 65;
|
|
37877
|
+
break;
|
|
37878
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
37879
|
+
case 66:
|
|
37880
|
+
message.codecType = 66;
|
|
37881
|
+
break;
|
|
37882
|
+
}
|
|
37883
|
+
if (object.sampleRate != null)
|
|
37884
|
+
message.sampleRate = object.sampleRate >>> 0;
|
|
37885
|
+
if (object.timebaseNum != null)
|
|
37886
|
+
message.timebaseNum = object.timebaseNum >>> 0;
|
|
37887
|
+
if (object.timebaseDen != null)
|
|
37888
|
+
message.timebaseDen = object.timebaseDen >>> 0;
|
|
37889
|
+
if (object.codecProfile != null)
|
|
37890
|
+
message.codecProfile = object.codecProfile >>> 0;
|
|
37891
|
+
if (object.codecLevel != null)
|
|
37892
|
+
message.codecLevel = object.codecLevel >>> 0;
|
|
37893
|
+
if (object.width != null)
|
|
37894
|
+
message.width = object.width >>> 0;
|
|
37895
|
+
if (object.height != null)
|
|
37896
|
+
message.height = object.height >>> 0;
|
|
37897
|
+
if (object.channels != null)
|
|
37898
|
+
message.channels = object.channels >>> 0;
|
|
37899
|
+
if (object.bitDepth != null)
|
|
37900
|
+
message.bitDepth = object.bitDepth >>> 0;
|
|
37901
|
+
return message;
|
|
37902
|
+
};
|
|
37903
|
+
|
|
37904
|
+
/**
|
|
37905
|
+
* Creates a plain object from a MediaCodecData message. Also converts values to other types if specified.
|
|
37906
|
+
* @function toObject
|
|
37907
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37908
|
+
* @static
|
|
37909
|
+
* @param {sesame.v1.wire.MediaCodecData} message MediaCodecData
|
|
37910
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
37911
|
+
* @returns {Object.<string,*>} Plain object
|
|
37912
|
+
*/
|
|
37913
|
+
MediaCodecData.toObject = function toObject(message, options) {
|
|
37914
|
+
if (!options)
|
|
37915
|
+
options = {};
|
|
37916
|
+
let object = {};
|
|
37917
|
+
if (options.defaults) {
|
|
37918
|
+
object.codecType = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
37919
|
+
object.sampleRate = 0;
|
|
37920
|
+
object.timebaseNum = 0;
|
|
37921
|
+
object.timebaseDen = 0;
|
|
37922
|
+
object.codecProfile = 0;
|
|
37923
|
+
object.codecLevel = 0;
|
|
37924
|
+
object.width = 0;
|
|
37925
|
+
object.height = 0;
|
|
37926
|
+
object.channels = 0;
|
|
37927
|
+
object.bitDepth = 0;
|
|
37928
|
+
}
|
|
37929
|
+
if (message.codecType != null && message.hasOwnProperty("codecType"))
|
|
37930
|
+
object.codecType = options.enums === String ? $root.sesame.v1.wire.CodecType[message.codecType] === undefined ? message.codecType : $root.sesame.v1.wire.CodecType[message.codecType] : message.codecType;
|
|
37931
|
+
if (message.sampleRate != null && message.hasOwnProperty("sampleRate"))
|
|
37932
|
+
object.sampleRate = message.sampleRate;
|
|
37933
|
+
if (message.timebaseNum != null && message.hasOwnProperty("timebaseNum"))
|
|
37934
|
+
object.timebaseNum = message.timebaseNum;
|
|
37935
|
+
if (message.timebaseDen != null && message.hasOwnProperty("timebaseDen"))
|
|
37936
|
+
object.timebaseDen = message.timebaseDen;
|
|
37937
|
+
if (message.codecProfile != null && message.hasOwnProperty("codecProfile"))
|
|
37938
|
+
object.codecProfile = message.codecProfile;
|
|
37939
|
+
if (message.codecLevel != null && message.hasOwnProperty("codecLevel"))
|
|
37940
|
+
object.codecLevel = message.codecLevel;
|
|
37941
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
37942
|
+
object.width = message.width;
|
|
37943
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
37944
|
+
object.height = message.height;
|
|
37945
|
+
if (message.channels != null && message.hasOwnProperty("channels"))
|
|
37946
|
+
object.channels = message.channels;
|
|
37947
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
|
|
37948
|
+
object.bitDepth = message.bitDepth;
|
|
37949
|
+
return object;
|
|
37950
|
+
};
|
|
37951
|
+
|
|
37952
|
+
/**
|
|
37953
|
+
* Converts this MediaCodecData to JSON.
|
|
37954
|
+
* @function toJSON
|
|
37955
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37956
|
+
* @instance
|
|
37957
|
+
* @returns {Object.<string,*>} JSON object
|
|
37958
|
+
*/
|
|
37959
|
+
MediaCodecData.prototype.toJSON = function toJSON() {
|
|
37960
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
37961
|
+
};
|
|
37962
|
+
|
|
37963
|
+
/**
|
|
37964
|
+
* Gets the default type url for MediaCodecData
|
|
37965
|
+
* @function getTypeUrl
|
|
37966
|
+
* @memberof sesame.v1.wire.MediaCodecData
|
|
37967
|
+
* @static
|
|
37968
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
37969
|
+
* @returns {string} The default type url
|
|
37970
|
+
*/
|
|
37971
|
+
MediaCodecData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
37972
|
+
if (typeUrlPrefix === undefined) {
|
|
37973
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
37974
|
+
}
|
|
37975
|
+
return typeUrlPrefix + "/sesame.v1.wire.MediaCodecData";
|
|
37976
|
+
};
|
|
37977
|
+
|
|
37978
|
+
return MediaCodecData;
|
|
37979
|
+
})();
|
|
37980
|
+
|
|
37981
|
+
wire.FrameHeader = (function() {
|
|
37982
|
+
|
|
37983
|
+
/**
|
|
37984
|
+
* Properties of a FrameHeader.
|
|
37985
|
+
* @memberof sesame.v1.wire
|
|
37986
|
+
* @interface IFrameHeader
|
|
37987
|
+
* @property {sesame.v1.wire.FrameType|null} [type] FrameHeader type
|
|
37988
|
+
* @property {number|Long|null} [pts] FrameHeader pts
|
|
37989
|
+
* @property {number|Long|null} [id] FrameHeader id
|
|
37990
|
+
* @property {boolean|null} [keyframe] FrameHeader keyframe
|
|
37991
|
+
* @property {sesame.v1.wire.IMediaCodecData|null} [codecData] FrameHeader codecData
|
|
37992
|
+
* @property {string|null} [routingMetadata] FrameHeader routingMetadata
|
|
37993
|
+
*/
|
|
37994
|
+
|
|
37995
|
+
/**
|
|
37996
|
+
* Constructs a new FrameHeader.
|
|
37997
|
+
* @memberof sesame.v1.wire
|
|
37998
|
+
* @classdesc Represents a FrameHeader.
|
|
37999
|
+
* @implements IFrameHeader
|
|
38000
|
+
* @constructor
|
|
38001
|
+
* @param {sesame.v1.wire.IFrameHeader=} [properties] Properties to set
|
|
38002
|
+
*/
|
|
38003
|
+
function FrameHeader(properties) {
|
|
38004
|
+
if (properties)
|
|
38005
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
38006
|
+
if (properties[keys[i]] != null)
|
|
38007
|
+
this[keys[i]] = properties[keys[i]];
|
|
38008
|
+
}
|
|
38009
|
+
|
|
38010
|
+
/**
|
|
38011
|
+
* FrameHeader type.
|
|
38012
|
+
* @member {sesame.v1.wire.FrameType} type
|
|
38013
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38014
|
+
* @instance
|
|
38015
|
+
*/
|
|
38016
|
+
FrameHeader.prototype.type = 0;
|
|
38017
|
+
|
|
38018
|
+
/**
|
|
38019
|
+
* FrameHeader pts.
|
|
38020
|
+
* @member {number|Long} pts
|
|
38021
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38022
|
+
* @instance
|
|
38023
|
+
*/
|
|
38024
|
+
FrameHeader.prototype.pts = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
38025
|
+
|
|
38026
|
+
/**
|
|
38027
|
+
* FrameHeader id.
|
|
38028
|
+
* @member {number|Long} id
|
|
38029
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38030
|
+
* @instance
|
|
38031
|
+
*/
|
|
38032
|
+
FrameHeader.prototype.id = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
38033
|
+
|
|
38034
|
+
/**
|
|
38035
|
+
* FrameHeader keyframe.
|
|
38036
|
+
* @member {boolean} keyframe
|
|
38037
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38038
|
+
* @instance
|
|
38039
|
+
*/
|
|
38040
|
+
FrameHeader.prototype.keyframe = false;
|
|
38041
|
+
|
|
38042
|
+
/**
|
|
38043
|
+
* FrameHeader codecData.
|
|
38044
|
+
* @member {sesame.v1.wire.IMediaCodecData|null|undefined} codecData
|
|
38045
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38046
|
+
* @instance
|
|
38047
|
+
*/
|
|
38048
|
+
FrameHeader.prototype.codecData = null;
|
|
38049
|
+
|
|
38050
|
+
/**
|
|
38051
|
+
* FrameHeader routingMetadata.
|
|
38052
|
+
* @member {string} routingMetadata
|
|
38053
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38054
|
+
* @instance
|
|
38055
|
+
*/
|
|
38056
|
+
FrameHeader.prototype.routingMetadata = "";
|
|
38057
|
+
|
|
38058
|
+
/**
|
|
38059
|
+
* Creates a new FrameHeader instance using the specified properties.
|
|
38060
|
+
* @function create
|
|
38061
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38062
|
+
* @static
|
|
38063
|
+
* @param {sesame.v1.wire.IFrameHeader=} [properties] Properties to set
|
|
38064
|
+
* @returns {sesame.v1.wire.FrameHeader} FrameHeader instance
|
|
38065
|
+
*/
|
|
38066
|
+
FrameHeader.create = function create(properties) {
|
|
38067
|
+
return new FrameHeader(properties);
|
|
38068
|
+
};
|
|
38069
|
+
|
|
38070
|
+
/**
|
|
38071
|
+
* Encodes the specified FrameHeader message. Does not implicitly {@link sesame.v1.wire.FrameHeader.verify|verify} messages.
|
|
38072
|
+
* @function encode
|
|
38073
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38074
|
+
* @static
|
|
38075
|
+
* @param {sesame.v1.wire.IFrameHeader} message FrameHeader message or plain object to encode
|
|
38076
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38077
|
+
* @returns {$protobuf.Writer} Writer
|
|
38078
|
+
*/
|
|
38079
|
+
FrameHeader.encode = function encode(message, writer) {
|
|
38080
|
+
if (!writer)
|
|
38081
|
+
writer = $Writer.create();
|
|
38082
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
38083
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type);
|
|
38084
|
+
if (message.pts != null && Object.hasOwnProperty.call(message, "pts"))
|
|
38085
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.pts);
|
|
38086
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
38087
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.id);
|
|
38088
|
+
if (message.keyframe != null && Object.hasOwnProperty.call(message, "keyframe"))
|
|
38089
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.keyframe);
|
|
38090
|
+
if (message.codecData != null && Object.hasOwnProperty.call(message, "codecData"))
|
|
38091
|
+
$root.sesame.v1.wire.MediaCodecData.encode(message.codecData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
38092
|
+
if (message.routingMetadata != null && Object.hasOwnProperty.call(message, "routingMetadata"))
|
|
38093
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.routingMetadata);
|
|
38094
|
+
return writer;
|
|
38095
|
+
};
|
|
38096
|
+
|
|
38097
|
+
/**
|
|
38098
|
+
* Encodes the specified FrameHeader message, length delimited. Does not implicitly {@link sesame.v1.wire.FrameHeader.verify|verify} messages.
|
|
38099
|
+
* @function encodeDelimited
|
|
38100
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38101
|
+
* @static
|
|
38102
|
+
* @param {sesame.v1.wire.IFrameHeader} message FrameHeader message or plain object to encode
|
|
38103
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
38104
|
+
* @returns {$protobuf.Writer} Writer
|
|
38105
|
+
*/
|
|
38106
|
+
FrameHeader.encodeDelimited = function encodeDelimited(message, writer) {
|
|
38107
|
+
return this.encode(message, writer).ldelim();
|
|
38108
|
+
};
|
|
38109
|
+
|
|
38110
|
+
/**
|
|
38111
|
+
* Decodes a FrameHeader message from the specified reader or buffer.
|
|
38112
|
+
* @function decode
|
|
38113
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38114
|
+
* @static
|
|
38115
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38116
|
+
* @param {number} [length] Message length if known beforehand
|
|
38117
|
+
* @returns {sesame.v1.wire.FrameHeader} FrameHeader
|
|
38118
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38119
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38120
|
+
*/
|
|
38121
|
+
FrameHeader.decode = function decode(reader, length, error) {
|
|
38122
|
+
if (!(reader instanceof $Reader))
|
|
38123
|
+
reader = $Reader.create(reader);
|
|
38124
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.wire.FrameHeader();
|
|
38125
|
+
while (reader.pos < end) {
|
|
38126
|
+
let tag = reader.uint32();
|
|
38127
|
+
if (tag === error)
|
|
38128
|
+
break;
|
|
38129
|
+
switch (tag >>> 3) {
|
|
38130
|
+
case 1: {
|
|
38131
|
+
message.type = reader.int32();
|
|
38132
|
+
break;
|
|
38133
|
+
}
|
|
38134
|
+
case 2: {
|
|
38135
|
+
message.pts = reader.uint64();
|
|
38136
|
+
break;
|
|
38137
|
+
}
|
|
38138
|
+
case 3: {
|
|
38139
|
+
message.id = reader.uint64();
|
|
38140
|
+
break;
|
|
38141
|
+
}
|
|
38142
|
+
case 4: {
|
|
38143
|
+
message.keyframe = reader.bool();
|
|
38144
|
+
break;
|
|
38145
|
+
}
|
|
38146
|
+
case 5: {
|
|
38147
|
+
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
38148
|
+
break;
|
|
38149
|
+
}
|
|
38150
|
+
case 6: {
|
|
38151
|
+
message.routingMetadata = reader.string();
|
|
38152
|
+
break;
|
|
38153
|
+
}
|
|
38154
|
+
default:
|
|
38155
|
+
reader.skipType(tag & 7);
|
|
38156
|
+
break;
|
|
38157
|
+
}
|
|
38158
|
+
}
|
|
38159
|
+
return message;
|
|
38160
|
+
};
|
|
38161
|
+
|
|
38162
|
+
/**
|
|
38163
|
+
* Decodes a FrameHeader message from the specified reader or buffer, length delimited.
|
|
38164
|
+
* @function decodeDelimited
|
|
38165
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38166
|
+
* @static
|
|
38167
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
38168
|
+
* @returns {sesame.v1.wire.FrameHeader} FrameHeader
|
|
38169
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
38170
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
38171
|
+
*/
|
|
38172
|
+
FrameHeader.decodeDelimited = function decodeDelimited(reader) {
|
|
38173
|
+
if (!(reader instanceof $Reader))
|
|
38174
|
+
reader = new $Reader(reader);
|
|
38175
|
+
return this.decode(reader, reader.uint32());
|
|
38176
|
+
};
|
|
38177
|
+
|
|
38178
|
+
/**
|
|
38179
|
+
* Verifies a FrameHeader message.
|
|
38180
|
+
* @function verify
|
|
38181
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38182
|
+
* @static
|
|
38183
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
38184
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
38185
|
+
*/
|
|
38186
|
+
FrameHeader.verify = function verify(message) {
|
|
38187
|
+
if (typeof message !== "object" || message === null)
|
|
38188
|
+
return "object expected";
|
|
38189
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
38190
|
+
switch (message.type) {
|
|
38191
|
+
default:
|
|
38192
|
+
return "type: enum value expected";
|
|
38193
|
+
case 0:
|
|
38194
|
+
case 1:
|
|
38195
|
+
case 2:
|
|
38196
|
+
case 3:
|
|
38197
|
+
case 4:
|
|
38198
|
+
case 5:
|
|
38199
|
+
case 6:
|
|
38200
|
+
break;
|
|
38201
|
+
}
|
|
38202
|
+
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
38203
|
+
if (!$util.isInteger(message.pts) && !(message.pts && $util.isInteger(message.pts.low) && $util.isInteger(message.pts.high)))
|
|
38204
|
+
return "pts: integer|Long expected";
|
|
38205
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
38206
|
+
if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
|
|
38207
|
+
return "id: integer|Long expected";
|
|
38208
|
+
if (message.keyframe != null && message.hasOwnProperty("keyframe"))
|
|
38209
|
+
if (typeof message.keyframe !== "boolean")
|
|
38210
|
+
return "keyframe: boolean expected";
|
|
38211
|
+
if (message.codecData != null && message.hasOwnProperty("codecData")) {
|
|
38212
|
+
let error = $root.sesame.v1.wire.MediaCodecData.verify(message.codecData);
|
|
38213
|
+
if (error)
|
|
38214
|
+
return "codecData." + error;
|
|
38215
|
+
}
|
|
38216
|
+
if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata"))
|
|
38217
|
+
if (!$util.isString(message.routingMetadata))
|
|
38218
|
+
return "routingMetadata: string expected";
|
|
38219
|
+
return null;
|
|
38220
|
+
};
|
|
38221
|
+
|
|
38222
|
+
/**
|
|
38223
|
+
* Creates a FrameHeader message from a plain object. Also converts values to their respective internal types.
|
|
38224
|
+
* @function fromObject
|
|
38225
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38226
|
+
* @static
|
|
38227
|
+
* @param {Object.<string,*>} object Plain object
|
|
38228
|
+
* @returns {sesame.v1.wire.FrameHeader} FrameHeader
|
|
38229
|
+
*/
|
|
38230
|
+
FrameHeader.fromObject = function fromObject(object) {
|
|
38231
|
+
if (object instanceof $root.sesame.v1.wire.FrameHeader)
|
|
38232
|
+
return object;
|
|
38233
|
+
let message = new $root.sesame.v1.wire.FrameHeader();
|
|
38234
|
+
switch (object.type) {
|
|
38235
|
+
default:
|
|
38236
|
+
if (typeof object.type === "number") {
|
|
38237
|
+
message.type = object.type;
|
|
38238
|
+
break;
|
|
38239
|
+
}
|
|
38240
|
+
break;
|
|
38241
|
+
case "FRAME_TYPE_UNSPECIFIED":
|
|
38242
|
+
case 0:
|
|
38243
|
+
message.type = 0;
|
|
38244
|
+
break;
|
|
38245
|
+
case "FRAME_TYPE_RPC":
|
|
38246
|
+
case 1:
|
|
38247
|
+
message.type = 1;
|
|
38248
|
+
break;
|
|
38249
|
+
case "FRAME_TYPE_VIDEO":
|
|
38250
|
+
case 2:
|
|
38251
|
+
message.type = 2;
|
|
38252
|
+
break;
|
|
38253
|
+
case "FRAME_TYPE_AUDIO":
|
|
38254
|
+
case 3:
|
|
38255
|
+
message.type = 3;
|
|
38256
|
+
break;
|
|
38257
|
+
case "FRAME_TYPE_MUXED":
|
|
38258
|
+
case 4:
|
|
38259
|
+
message.type = 4;
|
|
38260
|
+
break;
|
|
38261
|
+
case "FRAME_TYPE_DECODER_DATA":
|
|
38262
|
+
case 5:
|
|
38263
|
+
message.type = 5;
|
|
38264
|
+
break;
|
|
38265
|
+
case "FRAME_TYPE_DATA":
|
|
38266
|
+
case 6:
|
|
38267
|
+
message.type = 6;
|
|
38268
|
+
break;
|
|
38269
|
+
}
|
|
38270
|
+
if (object.pts != null)
|
|
38271
|
+
if ($util.Long)
|
|
38272
|
+
(message.pts = $util.Long.fromValue(object.pts)).unsigned = true;
|
|
38273
|
+
else if (typeof object.pts === "string")
|
|
38274
|
+
message.pts = parseInt(object.pts, 10);
|
|
38275
|
+
else if (typeof object.pts === "number")
|
|
38276
|
+
message.pts = object.pts;
|
|
38277
|
+
else if (typeof object.pts === "object")
|
|
38278
|
+
message.pts = new $util.LongBits(object.pts.low >>> 0, object.pts.high >>> 0).toNumber(true);
|
|
38279
|
+
if (object.id != null)
|
|
38280
|
+
if ($util.Long)
|
|
38281
|
+
(message.id = $util.Long.fromValue(object.id)).unsigned = true;
|
|
38282
|
+
else if (typeof object.id === "string")
|
|
38283
|
+
message.id = parseInt(object.id, 10);
|
|
38284
|
+
else if (typeof object.id === "number")
|
|
38285
|
+
message.id = object.id;
|
|
38286
|
+
else if (typeof object.id === "object")
|
|
38287
|
+
message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true);
|
|
38288
|
+
if (object.keyframe != null)
|
|
38289
|
+
message.keyframe = Boolean(object.keyframe);
|
|
38290
|
+
if (object.codecData != null) {
|
|
38291
|
+
if (typeof object.codecData !== "object")
|
|
38292
|
+
throw TypeError(".sesame.v1.wire.FrameHeader.codecData: object expected");
|
|
38293
|
+
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
38294
|
+
}
|
|
38295
|
+
if (object.routingMetadata != null)
|
|
38296
|
+
message.routingMetadata = String(object.routingMetadata);
|
|
38297
|
+
return message;
|
|
38298
|
+
};
|
|
38299
|
+
|
|
38300
|
+
/**
|
|
38301
|
+
* Creates a plain object from a FrameHeader message. Also converts values to other types if specified.
|
|
38302
|
+
* @function toObject
|
|
38303
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38304
|
+
* @static
|
|
38305
|
+
* @param {sesame.v1.wire.FrameHeader} message FrameHeader
|
|
38306
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
38307
|
+
* @returns {Object.<string,*>} Plain object
|
|
38308
|
+
*/
|
|
38309
|
+
FrameHeader.toObject = function toObject(message, options) {
|
|
38310
|
+
if (!options)
|
|
38311
|
+
options = {};
|
|
38312
|
+
let object = {};
|
|
38313
|
+
if (options.defaults) {
|
|
38314
|
+
object.type = options.enums === String ? "FRAME_TYPE_UNSPECIFIED" : 0;
|
|
38315
|
+
if ($util.Long) {
|
|
38316
|
+
let long = new $util.Long(0, 0, true);
|
|
38317
|
+
object.pts = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
38318
|
+
} else
|
|
38319
|
+
object.pts = options.longs === String ? "0" : 0;
|
|
38320
|
+
if ($util.Long) {
|
|
38321
|
+
let long = new $util.Long(0, 0, true);
|
|
38322
|
+
object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
38323
|
+
} else
|
|
38324
|
+
object.id = options.longs === String ? "0" : 0;
|
|
38325
|
+
object.keyframe = false;
|
|
38326
|
+
object.codecData = null;
|
|
38327
|
+
object.routingMetadata = "";
|
|
38328
|
+
}
|
|
38329
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
38330
|
+
object.type = options.enums === String ? $root.sesame.v1.wire.FrameType[message.type] === undefined ? message.type : $root.sesame.v1.wire.FrameType[message.type] : message.type;
|
|
38331
|
+
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
38332
|
+
if (typeof message.pts === "number")
|
|
38333
|
+
object.pts = options.longs === String ? String(message.pts) : message.pts;
|
|
38334
|
+
else
|
|
38335
|
+
object.pts = options.longs === String ? $util.Long.prototype.toString.call(message.pts) : options.longs === Number ? new $util.LongBits(message.pts.low >>> 0, message.pts.high >>> 0).toNumber(true) : message.pts;
|
|
38336
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
38337
|
+
if (typeof message.id === "number")
|
|
38338
|
+
object.id = options.longs === String ? String(message.id) : message.id;
|
|
38339
|
+
else
|
|
38340
|
+
object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id;
|
|
38341
|
+
if (message.keyframe != null && message.hasOwnProperty("keyframe"))
|
|
38342
|
+
object.keyframe = message.keyframe;
|
|
38343
|
+
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
38344
|
+
object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
|
|
38345
|
+
if (message.routingMetadata != null && message.hasOwnProperty("routingMetadata"))
|
|
38346
|
+
object.routingMetadata = message.routingMetadata;
|
|
38347
|
+
return object;
|
|
38348
|
+
};
|
|
38349
|
+
|
|
38350
|
+
/**
|
|
38351
|
+
* Converts this FrameHeader to JSON.
|
|
38352
|
+
* @function toJSON
|
|
38353
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38354
|
+
* @instance
|
|
38355
|
+
* @returns {Object.<string,*>} JSON object
|
|
38356
|
+
*/
|
|
38357
|
+
FrameHeader.prototype.toJSON = function toJSON() {
|
|
38358
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
38359
|
+
};
|
|
38360
|
+
|
|
38361
|
+
/**
|
|
38362
|
+
* Gets the default type url for FrameHeader
|
|
38363
|
+
* @function getTypeUrl
|
|
38364
|
+
* @memberof sesame.v1.wire.FrameHeader
|
|
38365
|
+
* @static
|
|
38366
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
38367
|
+
* @returns {string} The default type url
|
|
38368
|
+
*/
|
|
38369
|
+
FrameHeader.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
38370
|
+
if (typeUrlPrefix === undefined) {
|
|
38371
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
38372
|
+
}
|
|
38373
|
+
return typeUrlPrefix + "/sesame.v1.wire.FrameHeader";
|
|
38374
|
+
};
|
|
38375
|
+
|
|
38376
|
+
return FrameHeader;
|
|
38377
|
+
})();
|
|
38378
|
+
|
|
38379
|
+
return wire;
|
|
38380
|
+
})();
|
|
38381
|
+
|
|
37264
38382
|
return v1;
|
|
37265
38383
|
})();
|
|
37266
38384
|
|