@stinkycomputing/sesame-api-client 1.4.1-beta.1 → 1.4.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.browser.mjs +219 -27
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +219 -27
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +219 -27
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +44 -1
- package/dist/proto/api.js +213 -17
- package/dist/rpc-client.d.ts +7 -0
- package/dist/rpc-client.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/proto/api.d.ts
CHANGED
|
@@ -8744,6 +8744,9 @@ export namespace sesame {
|
|
|
8744
8744
|
/** TransportEvent userId */
|
|
8745
8745
|
userId?: (string|null);
|
|
8746
8746
|
|
|
8747
|
+
/** TransportEvent uri */
|
|
8748
|
+
uri?: (string|null);
|
|
8749
|
+
|
|
8747
8750
|
/** TransportEvent state */
|
|
8748
8751
|
state?: (sesame.v1.sources.SourceTransportState|null);
|
|
8749
8752
|
|
|
@@ -8756,6 +8759,12 @@ export namespace sesame {
|
|
|
8756
8759
|
/** TransportEvent materialPositionUs */
|
|
8757
8760
|
materialPositionUs?: (number|Long|null);
|
|
8758
8761
|
|
|
8762
|
+
/** TransportEvent userTimeMs */
|
|
8763
|
+
userTimeMs?: (number|Long|null);
|
|
8764
|
+
|
|
8765
|
+
/** TransportEvent speed */
|
|
8766
|
+
speed?: (number|null);
|
|
8767
|
+
|
|
8759
8768
|
/** TransportEvent userPlaylistId */
|
|
8760
8769
|
userPlaylistId?: (string|null);
|
|
8761
8770
|
|
|
@@ -8770,6 +8779,18 @@ export namespace sesame {
|
|
|
8770
8779
|
|
|
8771
8780
|
/** TransportEvent clipPositionUs */
|
|
8772
8781
|
clipPositionUs?: (number|Long|null);
|
|
8782
|
+
|
|
8783
|
+
/** TransportEvent clipDurationUs */
|
|
8784
|
+
clipDurationUs?: (number|Long|null);
|
|
8785
|
+
|
|
8786
|
+
/** TransportEvent preroll */
|
|
8787
|
+
preroll?: (number|null);
|
|
8788
|
+
|
|
8789
|
+
/** TransportEvent postroll */
|
|
8790
|
+
postroll?: (number|null);
|
|
8791
|
+
|
|
8792
|
+
/** TransportEvent metadata */
|
|
8793
|
+
metadata?: (string|null);
|
|
8773
8794
|
}
|
|
8774
8795
|
|
|
8775
8796
|
/** Represents a TransportEvent. */
|
|
@@ -8787,6 +8808,9 @@ export namespace sesame {
|
|
|
8787
8808
|
/** TransportEvent userId. */
|
|
8788
8809
|
public userId: string;
|
|
8789
8810
|
|
|
8811
|
+
/** TransportEvent uri. */
|
|
8812
|
+
public uri: string;
|
|
8813
|
+
|
|
8790
8814
|
/** TransportEvent state. */
|
|
8791
8815
|
public state: sesame.v1.sources.SourceTransportState;
|
|
8792
8816
|
|
|
@@ -8799,6 +8823,12 @@ export namespace sesame {
|
|
|
8799
8823
|
/** TransportEvent materialPositionUs. */
|
|
8800
8824
|
public materialPositionUs: (number|Long);
|
|
8801
8825
|
|
|
8826
|
+
/** TransportEvent userTimeMs. */
|
|
8827
|
+
public userTimeMs: (number|Long);
|
|
8828
|
+
|
|
8829
|
+
/** TransportEvent speed. */
|
|
8830
|
+
public speed: number;
|
|
8831
|
+
|
|
8802
8832
|
/** TransportEvent userPlaylistId. */
|
|
8803
8833
|
public userPlaylistId: string;
|
|
8804
8834
|
|
|
@@ -8814,6 +8844,18 @@ export namespace sesame {
|
|
|
8814
8844
|
/** TransportEvent clipPositionUs. */
|
|
8815
8845
|
public clipPositionUs: (number|Long);
|
|
8816
8846
|
|
|
8847
|
+
/** TransportEvent clipDurationUs. */
|
|
8848
|
+
public clipDurationUs: (number|Long);
|
|
8849
|
+
|
|
8850
|
+
/** TransportEvent preroll. */
|
|
8851
|
+
public preroll: number;
|
|
8852
|
+
|
|
8853
|
+
/** TransportEvent postroll. */
|
|
8854
|
+
public postroll: number;
|
|
8855
|
+
|
|
8856
|
+
/** TransportEvent metadata. */
|
|
8857
|
+
public metadata: string;
|
|
8858
|
+
|
|
8817
8859
|
/**
|
|
8818
8860
|
* Creates a new TransportEvent instance using the specified properties.
|
|
8819
8861
|
* @param [properties] Properties to set
|
|
@@ -14071,7 +14113,8 @@ export namespace sesame {
|
|
|
14071
14113
|
FRAME_TYPE_VIDEO = 2,
|
|
14072
14114
|
FRAME_TYPE_AUDIO = 3,
|
|
14073
14115
|
FRAME_TYPE_MUXED = 4,
|
|
14074
|
-
FRAME_TYPE_DECODER_DATA = 5
|
|
14116
|
+
FRAME_TYPE_DECODER_DATA = 5,
|
|
14117
|
+
FRAME_TYPE_DATA = 6
|
|
14075
14118
|
}
|
|
14076
14119
|
|
|
14077
14120
|
/** CodecType enum. */
|
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
|
|
|
@@ -37280,6 +37469,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
37280
37469
|
* @property {number} FRAME_TYPE_AUDIO=3 FRAME_TYPE_AUDIO value
|
|
37281
37470
|
* @property {number} FRAME_TYPE_MUXED=4 FRAME_TYPE_MUXED value
|
|
37282
37471
|
* @property {number} FRAME_TYPE_DECODER_DATA=5 FRAME_TYPE_DECODER_DATA value
|
|
37472
|
+
* @property {number} FRAME_TYPE_DATA=6 FRAME_TYPE_DATA value
|
|
37283
37473
|
*/
|
|
37284
37474
|
wire.FrameType = (function() {
|
|
37285
37475
|
const valuesById = {}, values = Object.create(valuesById);
|
|
@@ -37289,6 +37479,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
37289
37479
|
values[valuesById[3] = "FRAME_TYPE_AUDIO"] = 3;
|
|
37290
37480
|
values[valuesById[4] = "FRAME_TYPE_MUXED"] = 4;
|
|
37291
37481
|
values[valuesById[5] = "FRAME_TYPE_DECODER_DATA"] = 5;
|
|
37482
|
+
values[valuesById[6] = "FRAME_TYPE_DATA"] = 6;
|
|
37292
37483
|
return values;
|
|
37293
37484
|
})();
|
|
37294
37485
|
|
|
@@ -38005,6 +38196,7 @@ export const sesame = $root.sesame = (() => {
|
|
|
38005
38196
|
case 3:
|
|
38006
38197
|
case 4:
|
|
38007
38198
|
case 5:
|
|
38199
|
+
case 6:
|
|
38008
38200
|
break;
|
|
38009
38201
|
}
|
|
38010
38202
|
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
@@ -38070,6 +38262,10 @@ export const sesame = $root.sesame = (() => {
|
|
|
38070
38262
|
case 5:
|
|
38071
38263
|
message.type = 5;
|
|
38072
38264
|
break;
|
|
38265
|
+
case "FRAME_TYPE_DATA":
|
|
38266
|
+
case 6:
|
|
38267
|
+
message.type = 6;
|
|
38268
|
+
break;
|
|
38073
38269
|
}
|
|
38074
38270
|
if (object.pts != null)
|
|
38075
38271
|
if ($util.Long)
|
package/dist/rpc-client.d.ts
CHANGED
|
@@ -75,6 +75,13 @@ export declare class RPCClient<T extends protobuf.rpc.Service> extends EventEmit
|
|
|
75
75
|
constructor(connection: SesameConnection, service: {
|
|
76
76
|
create(rpcImpl: protobuf.RPCImpl): T;
|
|
77
77
|
}, options?: IClientOptions);
|
|
78
|
+
/**
|
|
79
|
+
* Wraps service method calls to attach a rejection handler on all returned
|
|
80
|
+
* promises. This prevents unhandled promise rejections (e.g. from timeouts
|
|
81
|
+
* while disconnected) from crashing the host process. Callers can still
|
|
82
|
+
* catch errors normally via await / .catch().
|
|
83
|
+
*/
|
|
84
|
+
private wrapServicePromises;
|
|
78
85
|
private openHandler;
|
|
79
86
|
private rpcImpl;
|
|
80
87
|
private rpcCallback;
|
package/dist/rpc-client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc-client.d.ts","sourceRoot":"","sources":["../src/rpc-client.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"rpc-client.d.ts","sourceRoot":"","sources":["../src/rpc-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAChE,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,MAAM,GAAC,UAAU,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IACnE,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,kBAAkB,GAAG;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;CACnF;AASD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;;OAGG;IACH,UAAU,CAAC,EAAE;QAAC,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAA;KAAC,CAAA;IAC7C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;IACvD;;OAEG;IACH,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI,CAAA;IAC1D;;;;OAIG;IACH,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,UAAU,GAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,KAAK,IAAI,GAAG,IAAI,CAAA;CACzH;AAED;;;;GAIG;AACH,qBAAa,SAAS,CAAC,CAAC,SAAS,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAE,SAAQ,YAAa,YAAW,aAAa;IAEhG;;OAEG;IACH,SAAgB,OAAO,EAAE,cAAc,CAAA;IAEvC;;OAEG;IACH,SAAgB,OAAO,EAAE,CAAC,CAAA;IAE1B,OAAO,CAAC,UAAU,CAAmB;IACrC,OAAO,CAAC,UAAU,CAAkC;IACpD,OAAO,CAAC,aAAa,CAAmC;IACxD,OAAO,CAAC,OAAO,CAAY;IAC3B,OAAO,CAAC,WAAW,CAAQ;IAE3B;;;;OAIG;gBACS,UAAU,EAAE,gBAAgB,EAAE,OAAO,EAAE;QAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAA;KAAC,EAAE,OAAO,GAAE,cAAmB;IAcvH;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,WAAW,CAKlB;IAED,OAAO,CAAC,OAAO,CA2Bd;IAED,OAAO,CAAC,WAAW,CAalB;IAED,OAAO,CAAC,YAAY,CAInB;YAEa,kBAAkB;IAmBhC,OAAO,CAAC,YAAY,CAMnB;IAED,OAAO,CAAC,cAAc,CAcrB;YAEa,eAAe;IAQ7B,OAAO,CAAC,YAAY;CA2BvB;AAED;;;GAGG"}
|
package/package.json
CHANGED