@stinkycomputing/sesame-api-client 1.4.1-beta.1 → 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 CHANGED
@@ -74,7 +74,7 @@ if (parsed.valid) {
74
74
  }
75
75
  ```
76
76
 
77
- Frame types: `FRAME_TYPE_RPC`, `FRAME_TYPE_VIDEO`, `FRAME_TYPE_AUDIO`, `FRAME_TYPE_MUXED`, `FRAME_TYPE_DECODER_DATA`.
77
+ Frame types: `FRAME_TYPE_RPC`, `FRAME_TYPE_VIDEO`, `FRAME_TYPE_AUDIO`, `FRAME_TYPE_MUXED`, `FRAME_TYPE_DECODER_DATA`, `FRAME_TYPE_DATA`.
78
78
 
79
79
  ## Command List
80
80
 
@@ -13699,15 +13699,22 @@ var sesame = $root.sesame = (() => {
13699
13699
  }
13700
13700
  TransportEvent.prototype.sourceId = "";
13701
13701
  TransportEvent.prototype.userId = "";
13702
+ TransportEvent.prototype.uri = "";
13702
13703
  TransportEvent.prototype.state = 0;
13703
13704
  TransportEvent.prototype.durationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
13704
13705
  TransportEvent.prototype.positionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
13705
13706
  TransportEvent.prototype.materialPositionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
13707
+ TransportEvent.prototype.userTimeMs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
13708
+ TransportEvent.prototype.speed = 0;
13706
13709
  TransportEvent.prototype.userPlaylistId = "";
13707
13710
  TransportEvent.prototype.playlistIndex = 0;
13708
13711
  TransportEvent.prototype.playlistLength = 0;
13709
13712
  TransportEvent.prototype.clipId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
13710
13713
  TransportEvent.prototype.clipPositionUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
13714
+ TransportEvent.prototype.clipDurationUs = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
13715
+ TransportEvent.prototype.preroll = 0;
13716
+ TransportEvent.prototype.postroll = 0;
13717
+ TransportEvent.prototype.metadata = "";
13711
13718
  TransportEvent.create = function create(properties) {
13712
13719
  return new TransportEvent(properties);
13713
13720
  };
@@ -13724,51 +13731,86 @@ var sesame = $root.sesame = (() => {
13724
13731
  /* id 2, wireType 2 =*/
13725
13732
  18
13726
13733
  ).string(message.userId);
13734
+ if (message.uri != null && Object.hasOwnProperty.call(message, "uri"))
13735
+ writer.uint32(
13736
+ /* id 3, wireType 2 =*/
13737
+ 26
13738
+ ).string(message.uri);
13727
13739
  if (message.state != null && Object.hasOwnProperty.call(message, "state"))
13728
13740
  writer.uint32(
13729
- /* id 3, wireType 0 =*/
13730
- 24
13741
+ /* id 4, wireType 0 =*/
13742
+ 32
13731
13743
  ).int32(message.state);
13732
13744
  if (message.durationUs != null && Object.hasOwnProperty.call(message, "durationUs"))
13733
13745
  writer.uint32(
13734
- /* id 4, wireType 0 =*/
13735
- 32
13746
+ /* id 5, wireType 0 =*/
13747
+ 40
13736
13748
  ).int64(message.durationUs);
13737
13749
  if (message.positionUs != null && Object.hasOwnProperty.call(message, "positionUs"))
13738
13750
  writer.uint32(
13739
- /* id 5, wireType 0 =*/
13740
- 40
13751
+ /* id 6, wireType 0 =*/
13752
+ 48
13741
13753
  ).int64(message.positionUs);
13742
13754
  if (message.materialPositionUs != null && Object.hasOwnProperty.call(message, "materialPositionUs"))
13743
13755
  writer.uint32(
13744
- /* id 6, wireType 0 =*/
13745
- 48
13756
+ /* id 7, wireType 0 =*/
13757
+ 56
13746
13758
  ).int64(message.materialPositionUs);
13759
+ if (message.userTimeMs != null && Object.hasOwnProperty.call(message, "userTimeMs"))
13760
+ writer.uint32(
13761
+ /* id 8, wireType 0 =*/
13762
+ 64
13763
+ ).int64(message.userTimeMs);
13764
+ if (message.speed != null && Object.hasOwnProperty.call(message, "speed"))
13765
+ writer.uint32(
13766
+ /* id 9, wireType 5 =*/
13767
+ 77
13768
+ ).float(message.speed);
13747
13769
  if (message.userPlaylistId != null && Object.hasOwnProperty.call(message, "userPlaylistId"))
13748
13770
  writer.uint32(
13749
- /* id 7, wireType 2 =*/
13750
- 58
13771
+ /* id 10, wireType 2 =*/
13772
+ 82
13751
13773
  ).string(message.userPlaylistId);
13752
13774
  if (message.playlistIndex != null && Object.hasOwnProperty.call(message, "playlistIndex"))
13753
13775
  writer.uint32(
13754
- /* id 8, wireType 0 =*/
13755
- 64
13776
+ /* id 11, wireType 0 =*/
13777
+ 88
13756
13778
  ).uint32(message.playlistIndex);
13757
13779
  if (message.playlistLength != null && Object.hasOwnProperty.call(message, "playlistLength"))
13758
13780
  writer.uint32(
13759
- /* id 9, wireType 0 =*/
13760
- 72
13781
+ /* id 12, wireType 0 =*/
13782
+ 96
13761
13783
  ).uint32(message.playlistLength);
13762
13784
  if (message.clipId != null && Object.hasOwnProperty.call(message, "clipId"))
13763
13785
  writer.uint32(
13764
- /* id 10, wireType 0 =*/
13765
- 80
13786
+ /* id 13, wireType 0 =*/
13787
+ 104
13766
13788
  ).uint64(message.clipId);
13767
13789
  if (message.clipPositionUs != null && Object.hasOwnProperty.call(message, "clipPositionUs"))
13768
13790
  writer.uint32(
13769
- /* id 11, wireType 0 =*/
13770
- 88
13791
+ /* id 14, wireType 0 =*/
13792
+ 112
13771
13793
  ).int64(message.clipPositionUs);
13794
+ if (message.clipDurationUs != null && Object.hasOwnProperty.call(message, "clipDurationUs"))
13795
+ writer.uint32(
13796
+ /* id 15, wireType 0 =*/
13797
+ 120
13798
+ ).int64(message.clipDurationUs);
13799
+ if (message.preroll != null && Object.hasOwnProperty.call(message, "preroll"))
13800
+ writer.uint32(
13801
+ /* id 16, wireType 0 =*/
13802
+ 128
13803
+ ).uint32(message.preroll);
13804
+ if (message.postroll != null && Object.hasOwnProperty.call(message, "postroll"))
13805
+ writer.uint32(
13806
+ /* id 17, wireType 0 =*/
13807
+ 136
13808
+ ).uint32(message.postroll);
13809
+ if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
13810
+ writer.uint32(
13811
+ /* id 18, wireType 2 =*/
13812
+ 146
13813
+ ).string(message.metadata);
13772
13814
  return writer;
13773
13815
  };
13774
13816
  TransportEvent.encodeDelimited = function encodeDelimited(message, writer) {
@@ -13792,41 +13834,69 @@ var sesame = $root.sesame = (() => {
13792
13834
  break;
13793
13835
  }
13794
13836
  case 3: {
13795
- message.state = reader.int32();
13837
+ message.uri = reader.string();
13796
13838
  break;
13797
13839
  }
13798
13840
  case 4: {
13799
- message.durationUs = reader.int64();
13841
+ message.state = reader.int32();
13800
13842
  break;
13801
13843
  }
13802
13844
  case 5: {
13803
- message.positionUs = reader.int64();
13845
+ message.durationUs = reader.int64();
13804
13846
  break;
13805
13847
  }
13806
13848
  case 6: {
13807
- message.materialPositionUs = reader.int64();
13849
+ message.positionUs = reader.int64();
13808
13850
  break;
13809
13851
  }
13810
13852
  case 7: {
13811
- message.userPlaylistId = reader.string();
13853
+ message.materialPositionUs = reader.int64();
13812
13854
  break;
13813
13855
  }
13814
13856
  case 8: {
13815
- message.playlistIndex = reader.uint32();
13857
+ message.userTimeMs = reader.int64();
13816
13858
  break;
13817
13859
  }
13818
13860
  case 9: {
13819
- message.playlistLength = reader.uint32();
13861
+ message.speed = reader.float();
13820
13862
  break;
13821
13863
  }
13822
13864
  case 10: {
13823
- message.clipId = reader.uint64();
13865
+ message.userPlaylistId = reader.string();
13824
13866
  break;
13825
13867
  }
13826
13868
  case 11: {
13869
+ message.playlistIndex = reader.uint32();
13870
+ break;
13871
+ }
13872
+ case 12: {
13873
+ message.playlistLength = reader.uint32();
13874
+ break;
13875
+ }
13876
+ case 13: {
13877
+ message.clipId = reader.uint64();
13878
+ break;
13879
+ }
13880
+ case 14: {
13827
13881
  message.clipPositionUs = reader.int64();
13828
13882
  break;
13829
13883
  }
13884
+ case 15: {
13885
+ message.clipDurationUs = reader.int64();
13886
+ break;
13887
+ }
13888
+ case 16: {
13889
+ message.preroll = reader.uint32();
13890
+ break;
13891
+ }
13892
+ case 17: {
13893
+ message.postroll = reader.uint32();
13894
+ break;
13895
+ }
13896
+ case 18: {
13897
+ message.metadata = reader.string();
13898
+ break;
13899
+ }
13830
13900
  default:
13831
13901
  reader.skipType(tag & 7);
13832
13902
  break;
@@ -13850,6 +13920,10 @@ var sesame = $root.sesame = (() => {
13850
13920
  if (!$util.isString(message.userId))
13851
13921
  return "userId: string expected";
13852
13922
  }
13923
+ if (message.uri != null && message.hasOwnProperty("uri")) {
13924
+ if (!$util.isString(message.uri))
13925
+ return "uri: string expected";
13926
+ }
13853
13927
  if (message.state != null && message.hasOwnProperty("state"))
13854
13928
  switch (message.state) {
13855
13929
  default:
@@ -13873,6 +13947,14 @@ var sesame = $root.sesame = (() => {
13873
13947
  if (!$util.isInteger(message.materialPositionUs) && !(message.materialPositionUs && $util.isInteger(message.materialPositionUs.low) && $util.isInteger(message.materialPositionUs.high)))
13874
13948
  return "materialPositionUs: integer|Long expected";
13875
13949
  }
13950
+ if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs")) {
13951
+ if (!$util.isInteger(message.userTimeMs) && !(message.userTimeMs && $util.isInteger(message.userTimeMs.low) && $util.isInteger(message.userTimeMs.high)))
13952
+ return "userTimeMs: integer|Long expected";
13953
+ }
13954
+ if (message.speed != null && message.hasOwnProperty("speed")) {
13955
+ if (typeof message.speed !== "number")
13956
+ return "speed: number expected";
13957
+ }
13876
13958
  if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId")) {
13877
13959
  if (!$util.isString(message.userPlaylistId))
13878
13960
  return "userPlaylistId: string expected";
@@ -13893,6 +13975,22 @@ var sesame = $root.sesame = (() => {
13893
13975
  if (!$util.isInteger(message.clipPositionUs) && !(message.clipPositionUs && $util.isInteger(message.clipPositionUs.low) && $util.isInteger(message.clipPositionUs.high)))
13894
13976
  return "clipPositionUs: integer|Long expected";
13895
13977
  }
13978
+ if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs")) {
13979
+ if (!$util.isInteger(message.clipDurationUs) && !(message.clipDurationUs && $util.isInteger(message.clipDurationUs.low) && $util.isInteger(message.clipDurationUs.high)))
13980
+ return "clipDurationUs: integer|Long expected";
13981
+ }
13982
+ if (message.preroll != null && message.hasOwnProperty("preroll")) {
13983
+ if (!$util.isInteger(message.preroll))
13984
+ return "preroll: integer expected";
13985
+ }
13986
+ if (message.postroll != null && message.hasOwnProperty("postroll")) {
13987
+ if (!$util.isInteger(message.postroll))
13988
+ return "postroll: integer expected";
13989
+ }
13990
+ if (message.metadata != null && message.hasOwnProperty("metadata")) {
13991
+ if (!$util.isString(message.metadata))
13992
+ return "metadata: string expected";
13993
+ }
13896
13994
  return null;
13897
13995
  };
13898
13996
  TransportEvent.fromObject = function fromObject(object) {
@@ -13903,6 +14001,8 @@ var sesame = $root.sesame = (() => {
13903
14001
  message.sourceId = String(object.sourceId);
13904
14002
  if (object.userId != null)
13905
14003
  message.userId = String(object.userId);
14004
+ if (object.uri != null)
14005
+ message.uri = String(object.uri);
13906
14006
  switch (object.state) {
13907
14007
  default:
13908
14008
  if (typeof object.state === "number") {
@@ -13961,6 +14061,18 @@ var sesame = $root.sesame = (() => {
13961
14061
  else if (typeof object.materialPositionUs === "object")
13962
14062
  message.materialPositionUs = new $util.LongBits(object.materialPositionUs.low >>> 0, object.materialPositionUs.high >>> 0).toNumber();
13963
14063
  }
14064
+ if (object.userTimeMs != null) {
14065
+ if ($util.Long)
14066
+ (message.userTimeMs = $util.Long.fromValue(object.userTimeMs)).unsigned = false;
14067
+ else if (typeof object.userTimeMs === "string")
14068
+ message.userTimeMs = parseInt(object.userTimeMs, 10);
14069
+ else if (typeof object.userTimeMs === "number")
14070
+ message.userTimeMs = object.userTimeMs;
14071
+ else if (typeof object.userTimeMs === "object")
14072
+ message.userTimeMs = new $util.LongBits(object.userTimeMs.low >>> 0, object.userTimeMs.high >>> 0).toNumber();
14073
+ }
14074
+ if (object.speed != null)
14075
+ message.speed = Number(object.speed);
13964
14076
  if (object.userPlaylistId != null)
13965
14077
  message.userPlaylistId = String(object.userPlaylistId);
13966
14078
  if (object.playlistIndex != null)
@@ -13987,6 +14099,22 @@ var sesame = $root.sesame = (() => {
13987
14099
  else if (typeof object.clipPositionUs === "object")
13988
14100
  message.clipPositionUs = new $util.LongBits(object.clipPositionUs.low >>> 0, object.clipPositionUs.high >>> 0).toNumber();
13989
14101
  }
14102
+ if (object.clipDurationUs != null) {
14103
+ if ($util.Long)
14104
+ (message.clipDurationUs = $util.Long.fromValue(object.clipDurationUs)).unsigned = false;
14105
+ else if (typeof object.clipDurationUs === "string")
14106
+ message.clipDurationUs = parseInt(object.clipDurationUs, 10);
14107
+ else if (typeof object.clipDurationUs === "number")
14108
+ message.clipDurationUs = object.clipDurationUs;
14109
+ else if (typeof object.clipDurationUs === "object")
14110
+ message.clipDurationUs = new $util.LongBits(object.clipDurationUs.low >>> 0, object.clipDurationUs.high >>> 0).toNumber();
14111
+ }
14112
+ if (object.preroll != null)
14113
+ message.preroll = object.preroll >>> 0;
14114
+ if (object.postroll != null)
14115
+ message.postroll = object.postroll >>> 0;
14116
+ if (object.metadata != null)
14117
+ message.metadata = String(object.metadata);
13990
14118
  return message;
13991
14119
  };
13992
14120
  TransportEvent.toObject = function toObject(message, options) {
@@ -13996,6 +14124,7 @@ var sesame = $root.sesame = (() => {
13996
14124
  if (options.defaults) {
13997
14125
  object.sourceId = "";
13998
14126
  object.userId = "";
14127
+ object.uri = "";
13999
14128
  object.state = options.enums === String ? "SOURCE_TRANSPORT_STATE_STOPPED" : 0;
14000
14129
  if ($util.Long) {
14001
14130
  let long = new $util.Long(0, 0, false);
@@ -14012,6 +14141,12 @@ var sesame = $root.sesame = (() => {
14012
14141
  object.materialPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14013
14142
  } else
14014
14143
  object.materialPositionUs = options.longs === String ? "0" : 0;
14144
+ if ($util.Long) {
14145
+ let long = new $util.Long(0, 0, false);
14146
+ object.userTimeMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14147
+ } else
14148
+ object.userTimeMs = options.longs === String ? "0" : 0;
14149
+ object.speed = 0;
14015
14150
  object.userPlaylistId = "";
14016
14151
  object.playlistIndex = 0;
14017
14152
  object.playlistLength = 0;
@@ -14025,11 +14160,21 @@ var sesame = $root.sesame = (() => {
14025
14160
  object.clipPositionUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14026
14161
  } else
14027
14162
  object.clipPositionUs = options.longs === String ? "0" : 0;
14163
+ if ($util.Long) {
14164
+ let long = new $util.Long(0, 0, false);
14165
+ object.clipDurationUs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14166
+ } else
14167
+ object.clipDurationUs = options.longs === String ? "0" : 0;
14168
+ object.preroll = 0;
14169
+ object.postroll = 0;
14170
+ object.metadata = "";
14028
14171
  }
14029
14172
  if (message.sourceId != null && message.hasOwnProperty("sourceId"))
14030
14173
  object.sourceId = message.sourceId;
14031
14174
  if (message.userId != null && message.hasOwnProperty("userId"))
14032
14175
  object.userId = message.userId;
14176
+ if (message.uri != null && message.hasOwnProperty("uri"))
14177
+ object.uri = message.uri;
14033
14178
  if (message.state != null && message.hasOwnProperty("state"))
14034
14179
  object.state = options.enums === String ? $root.sesame.v1.sources.SourceTransportState[message.state] === void 0 ? message.state : $root.sesame.v1.sources.SourceTransportState[message.state] : message.state;
14035
14180
  if (message.durationUs != null && message.hasOwnProperty("durationUs"))
@@ -14047,6 +14192,13 @@ var sesame = $root.sesame = (() => {
14047
14192
  object.materialPositionUs = options.longs === String ? String(message.materialPositionUs) : message.materialPositionUs;
14048
14193
  else
14049
14194
  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;
14195
+ if (message.userTimeMs != null && message.hasOwnProperty("userTimeMs"))
14196
+ if (typeof message.userTimeMs === "number")
14197
+ object.userTimeMs = options.longs === String ? String(message.userTimeMs) : message.userTimeMs;
14198
+ else
14199
+ 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;
14200
+ if (message.speed != null && message.hasOwnProperty("speed"))
14201
+ object.speed = options.json && !isFinite(message.speed) ? String(message.speed) : message.speed;
14050
14202
  if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId"))
14051
14203
  object.userPlaylistId = message.userPlaylistId;
14052
14204
  if (message.playlistIndex != null && message.hasOwnProperty("playlistIndex"))
@@ -14063,6 +14215,17 @@ var sesame = $root.sesame = (() => {
14063
14215
  object.clipPositionUs = options.longs === String ? String(message.clipPositionUs) : message.clipPositionUs;
14064
14216
  else
14065
14217
  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;
14218
+ if (message.clipDurationUs != null && message.hasOwnProperty("clipDurationUs"))
14219
+ if (typeof message.clipDurationUs === "number")
14220
+ object.clipDurationUs = options.longs === String ? String(message.clipDurationUs) : message.clipDurationUs;
14221
+ else
14222
+ 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;
14223
+ if (message.preroll != null && message.hasOwnProperty("preroll"))
14224
+ object.preroll = message.preroll;
14225
+ if (message.postroll != null && message.hasOwnProperty("postroll"))
14226
+ object.postroll = message.postroll;
14227
+ if (message.metadata != null && message.hasOwnProperty("metadata"))
14228
+ object.metadata = message.metadata;
14066
14229
  return object;
14067
14230
  };
14068
14231
  TransportEvent.prototype.toJSON = function toJSON() {
@@ -21459,6 +21622,7 @@ var sesame = $root.sesame = (() => {
21459
21622
  values[valuesById[3] = "FRAME_TYPE_AUDIO"] = 3;
21460
21623
  values[valuesById[4] = "FRAME_TYPE_MUXED"] = 4;
21461
21624
  values[valuesById[5] = "FRAME_TYPE_DECODER_DATA"] = 5;
21625
+ values[valuesById[6] = "FRAME_TYPE_DATA"] = 6;
21462
21626
  return values;
21463
21627
  }();
21464
21628
  wire.CodecType = function() {
@@ -21900,6 +22064,7 @@ var sesame = $root.sesame = (() => {
21900
22064
  case 3:
21901
22065
  case 4:
21902
22066
  case 5:
22067
+ case 6:
21903
22068
  break;
21904
22069
  }
21905
22070
  if (message.pts != null && message.hasOwnProperty("pts")) {
@@ -21960,6 +22125,10 @@ var sesame = $root.sesame = (() => {
21960
22125
  case 5:
21961
22126
  message.type = 5;
21962
22127
  break;
22128
+ case "FRAME_TYPE_DATA":
22129
+ case 6:
22130
+ message.type = 6;
22131
+ break;
21963
22132
  }
21964
22133
  if (object.pts != null) {
21965
22134
  if ($util.Long)