@stinkycomputing/sesame-api-client 1.5.8 → 1.5.9

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
@@ -192,10 +192,10 @@ Wire output tracks to node capabilities for remote state / control. See [Data Fr
192
192
 
193
193
  ```typescript
194
194
  cl.setMetadataBindings([
195
- // Push AudioMixerStatus from 'mix1' out on the 'audio-state' track of output 'ws-out'
196
- { sourceId: 'mix1', metadataId: 'audio-state', outputId: 'ws-out', trackName: 'audio-state' },
197
- // Route incoming 'audio-ctrl' track on source 'ws-in' → mixer 'mix1'
198
- { sourceId: 'ws-in', trackName: 'audio-ctrl', targetId: 'mix1', metadataId: 'audio-control' },
195
+ // Push AudioMixerStatus from 'mix1' out on the 'sesame.audio.state.v1' track of output 'ws-out'
196
+ { sourceId: 'mix1', metadataId: 'sesame.audio.state.v1', outputId: 'ws-out', trackName: 'sesame.audio.state.v1' },
197
+ // Route incoming 'sesame.audio.control.v1' track on source 'ws-in' → mixer 'mix1'
198
+ { sourceId: 'ws-in', trackName: 'sesame.audio.control.v1', targetId: 'mix1', metadataId: 'sesame.audio.control.v1' },
199
199
  ]);
200
200
  ```
201
201
 
@@ -248,14 +248,14 @@ Send control frames over a WebSocket **source** connection (inbound to the serve
248
248
  import { buildAudioControlFrame, buildTransportControlFrame, sesame } from '@stinkycomputing/sesame-api-client';
249
249
 
250
250
  // Adjust a mixer channel level and pan
251
- ws.send(buildAudioControlFrame('audio-ctrl', {
251
+ ws.send(buildAudioControlFrame('sesame.audio.control.v1', {
252
252
  channels: [
253
253
  { channelId: 'ch1', level: 0.8, pan: -0.2 },
254
254
  ],
255
255
  }));
256
256
 
257
257
  // Adjust a plugin parameter on a channel
258
- ws.send(buildAudioControlFrame('audio-ctrl', {
258
+ ws.send(buildAudioControlFrame('sesame.audio.control.v1', {
259
259
  channels: [{
260
260
  channelId: 'ch1',
261
261
  plugins: [{ pluginId: 'eq1', params: [{ id: 3, floatValue: 200.0 }] }],
@@ -263,7 +263,7 @@ ws.send(buildAudioControlFrame('audio-ctrl', {
263
263
  }));
264
264
 
265
265
  // Queue a transport command on a bound source
266
- ws.send(buildTransportControlFrame('transport-ctrl', {
266
+ ws.send(buildTransportControlFrame('sesame.transport.control.v1', {
267
267
  cmdType: sesame.v1.sources.SourceTransportCommandType.SOURCE_TRANSPORT_CMD_PLAY,
268
268
  }));
269
269
  ```
@@ -3914,11 +3914,12 @@ var sesame = $root.sesame = (() => {
3914
3914
  CommandListItem.prototype.addEncoder = null;
3915
3915
  CommandListItem.prototype.updateEncoder = null;
3916
3916
  CommandListItem.prototype.removeEncoder = null;
3917
+ CommandListItem.prototype.takePlaylist = null;
3917
3918
  CommandListItem.prototype.transactionId = null;
3918
3919
  CommandListItem.prototype.transactionDeps = $util.emptyArray;
3919
3920
  let $oneOfFields;
3920
3921
  Object.defineProperty(CommandListItem.prototype, "item", {
3921
- get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder"]),
3922
+ get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist"]),
3922
3923
  set: $util.oneOfSetter($oneOfFields)
3923
3924
  });
3924
3925
  Object.defineProperty(CommandListItem.prototype, "_transactionId", {
@@ -4085,6 +4086,11 @@ var sesame = $root.sesame = (() => {
4085
4086
  /* id 30, wireType 2 =*/
4086
4087
  242
4087
4088
  ).fork()).ldelim();
4089
+ if (message.takePlaylist != null && Object.hasOwnProperty.call(message, "takePlaylist"))
4090
+ $root.sesame.v1.sources.TakePlaylistRequest.encode(message.takePlaylist, writer.uint32(
4091
+ /* id 31, wireType 2 =*/
4092
+ 250
4093
+ ).fork()).ldelim();
4088
4094
  return writer;
4089
4095
  };
4090
4096
  CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
@@ -4211,6 +4217,10 @@ var sesame = $root.sesame = (() => {
4211
4217
  message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.decode(reader, reader.uint32());
4212
4218
  break;
4213
4219
  }
4220
+ case 31: {
4221
+ message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.decode(reader, reader.uint32());
4222
+ break;
4223
+ }
4214
4224
  case 25: {
4215
4225
  message.transactionId = reader.uint32();
4216
4226
  break;
@@ -4514,6 +4524,16 @@ var sesame = $root.sesame = (() => {
4514
4524
  return "removeEncoder." + error;
4515
4525
  }
4516
4526
  }
4527
+ if (message.takePlaylist != null && message.hasOwnProperty("takePlaylist")) {
4528
+ if (properties.item === 1)
4529
+ return "item: multiple values";
4530
+ properties.item = 1;
4531
+ {
4532
+ let error = $root.sesame.v1.sources.TakePlaylistRequest.verify(message.takePlaylist);
4533
+ if (error)
4534
+ return "takePlaylist." + error;
4535
+ }
4536
+ }
4517
4537
  if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
4518
4538
  properties._transactionId = 1;
4519
4539
  if (!$util.isInteger(message.transactionId))
@@ -4677,6 +4697,11 @@ var sesame = $root.sesame = (() => {
4677
4697
  throw TypeError(".sesame.v1.commands.CommandListItem.removeEncoder: object expected");
4678
4698
  message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.fromObject(object.removeEncoder);
4679
4699
  }
4700
+ if (object.takePlaylist != null) {
4701
+ if (typeof object.takePlaylist !== "object")
4702
+ throw TypeError(".sesame.v1.commands.CommandListItem.takePlaylist: object expected");
4703
+ message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.fromObject(object.takePlaylist);
4704
+ }
4680
4705
  if (object.transactionId != null)
4681
4706
  message.transactionId = object.transactionId >>> 0;
4682
4707
  if (object.transactionDeps) {
@@ -4850,6 +4875,11 @@ var sesame = $root.sesame = (() => {
4850
4875
  if (options.oneofs)
4851
4876
  object.item = "removeEncoder";
4852
4877
  }
4878
+ if (message.takePlaylist != null && message.hasOwnProperty("takePlaylist")) {
4879
+ object.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.toObject(message.takePlaylist, options);
4880
+ if (options.oneofs)
4881
+ object.item = "takePlaylist";
4882
+ }
4853
4883
  return object;
4854
4884
  };
4855
4885
  CommandListItem.prototype.toJSON = function toJSON() {
@@ -10378,6 +10408,330 @@ var sesame = $root.sesame = (() => {
10378
10408
  };
10379
10409
  return LoadPlaylistRequest;
10380
10410
  }();
10411
+ sources.TakePlaylistRequest = function() {
10412
+ function TakePlaylistRequest(properties) {
10413
+ this.items = [];
10414
+ if (properties) {
10415
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10416
+ if (properties[keys[i]] != null)
10417
+ this[keys[i]] = properties[keys[i]];
10418
+ }
10419
+ }
10420
+ TakePlaylistRequest.prototype.sourceId = "";
10421
+ TakePlaylistRequest.prototype.userPlaylistId = "";
10422
+ TakePlaylistRequest.prototype.items = $util.emptyArray;
10423
+ TakePlaylistRequest.prototype.startTimeUs = null;
10424
+ TakePlaylistRequest.prototype.startIndex = null;
10425
+ TakePlaylistRequest.prototype.materialPosUs = null;
10426
+ TakePlaylistRequest.prototype.transitionTimeUs = null;
10427
+ TakePlaylistRequest.prototype.playbackSpeed = null;
10428
+ let $oneOfFields;
10429
+ Object.defineProperty(TakePlaylistRequest.prototype, "_startTimeUs", {
10430
+ get: $util.oneOfGetter($oneOfFields = ["startTimeUs"]),
10431
+ set: $util.oneOfSetter($oneOfFields)
10432
+ });
10433
+ Object.defineProperty(TakePlaylistRequest.prototype, "_startIndex", {
10434
+ get: $util.oneOfGetter($oneOfFields = ["startIndex"]),
10435
+ set: $util.oneOfSetter($oneOfFields)
10436
+ });
10437
+ Object.defineProperty(TakePlaylistRequest.prototype, "_materialPosUs", {
10438
+ get: $util.oneOfGetter($oneOfFields = ["materialPosUs"]),
10439
+ set: $util.oneOfSetter($oneOfFields)
10440
+ });
10441
+ Object.defineProperty(TakePlaylistRequest.prototype, "_transitionTimeUs", {
10442
+ get: $util.oneOfGetter($oneOfFields = ["transitionTimeUs"]),
10443
+ set: $util.oneOfSetter($oneOfFields)
10444
+ });
10445
+ Object.defineProperty(TakePlaylistRequest.prototype, "_playbackSpeed", {
10446
+ get: $util.oneOfGetter($oneOfFields = ["playbackSpeed"]),
10447
+ set: $util.oneOfSetter($oneOfFields)
10448
+ });
10449
+ TakePlaylistRequest.create = function create(properties) {
10450
+ return new TakePlaylistRequest(properties);
10451
+ };
10452
+ TakePlaylistRequest.encode = function encode(message, writer) {
10453
+ if (!writer)
10454
+ writer = $Writer.create();
10455
+ if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
10456
+ writer.uint32(
10457
+ /* id 1, wireType 2 =*/
10458
+ 10
10459
+ ).string(message.sourceId);
10460
+ if (message.userPlaylistId != null && Object.hasOwnProperty.call(message, "userPlaylistId"))
10461
+ writer.uint32(
10462
+ /* id 2, wireType 2 =*/
10463
+ 18
10464
+ ).string(message.userPlaylistId);
10465
+ if (message.items != null && message.items.length)
10466
+ for (let i = 0; i < message.items.length; ++i)
10467
+ $root.sesame.v1.recorder.PlaylistItem.encode(message.items[i], writer.uint32(
10468
+ /* id 3, wireType 2 =*/
10469
+ 26
10470
+ ).fork()).ldelim();
10471
+ if (message.startTimeUs != null && Object.hasOwnProperty.call(message, "startTimeUs"))
10472
+ writer.uint32(
10473
+ /* id 4, wireType 0 =*/
10474
+ 32
10475
+ ).int64(message.startTimeUs);
10476
+ if (message.startIndex != null && Object.hasOwnProperty.call(message, "startIndex"))
10477
+ writer.uint32(
10478
+ /* id 5, wireType 0 =*/
10479
+ 40
10480
+ ).int64(message.startIndex);
10481
+ if (message.materialPosUs != null && Object.hasOwnProperty.call(message, "materialPosUs"))
10482
+ writer.uint32(
10483
+ /* id 6, wireType 0 =*/
10484
+ 48
10485
+ ).int64(message.materialPosUs);
10486
+ if (message.transitionTimeUs != null && Object.hasOwnProperty.call(message, "transitionTimeUs"))
10487
+ writer.uint32(
10488
+ /* id 7, wireType 0 =*/
10489
+ 56
10490
+ ).int64(message.transitionTimeUs);
10491
+ if (message.playbackSpeed != null && Object.hasOwnProperty.call(message, "playbackSpeed"))
10492
+ writer.uint32(
10493
+ /* id 8, wireType 5 =*/
10494
+ 69
10495
+ ).float(message.playbackSpeed);
10496
+ return writer;
10497
+ };
10498
+ TakePlaylistRequest.encodeDelimited = function encodeDelimited(message, writer) {
10499
+ return this.encode(message, writer).ldelim();
10500
+ };
10501
+ TakePlaylistRequest.decode = function decode(reader, length, error) {
10502
+ if (!(reader instanceof $Reader))
10503
+ reader = $Reader.create(reader);
10504
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sources.TakePlaylistRequest();
10505
+ while (reader.pos < end) {
10506
+ let tag = reader.uint32();
10507
+ if (tag === error)
10508
+ break;
10509
+ switch (tag >>> 3) {
10510
+ case 1: {
10511
+ message.sourceId = reader.string();
10512
+ break;
10513
+ }
10514
+ case 2: {
10515
+ message.userPlaylistId = reader.string();
10516
+ break;
10517
+ }
10518
+ case 3: {
10519
+ if (!(message.items && message.items.length))
10520
+ message.items = [];
10521
+ message.items.push($root.sesame.v1.recorder.PlaylistItem.decode(reader, reader.uint32()));
10522
+ break;
10523
+ }
10524
+ case 4: {
10525
+ message.startTimeUs = reader.int64();
10526
+ break;
10527
+ }
10528
+ case 5: {
10529
+ message.startIndex = reader.int64();
10530
+ break;
10531
+ }
10532
+ case 6: {
10533
+ message.materialPosUs = reader.int64();
10534
+ break;
10535
+ }
10536
+ case 7: {
10537
+ message.transitionTimeUs = reader.int64();
10538
+ break;
10539
+ }
10540
+ case 8: {
10541
+ message.playbackSpeed = reader.float();
10542
+ break;
10543
+ }
10544
+ default:
10545
+ reader.skipType(tag & 7);
10546
+ break;
10547
+ }
10548
+ }
10549
+ return message;
10550
+ };
10551
+ TakePlaylistRequest.decodeDelimited = function decodeDelimited(reader) {
10552
+ if (!(reader instanceof $Reader))
10553
+ reader = new $Reader(reader);
10554
+ return this.decode(reader, reader.uint32());
10555
+ };
10556
+ TakePlaylistRequest.verify = function verify(message) {
10557
+ if (typeof message !== "object" || message === null)
10558
+ return "object expected";
10559
+ let properties = {};
10560
+ if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
10561
+ if (!$util.isString(message.sourceId))
10562
+ return "sourceId: string expected";
10563
+ }
10564
+ if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId")) {
10565
+ if (!$util.isString(message.userPlaylistId))
10566
+ return "userPlaylistId: string expected";
10567
+ }
10568
+ if (message.items != null && message.hasOwnProperty("items")) {
10569
+ if (!Array.isArray(message.items))
10570
+ return "items: array expected";
10571
+ for (let i = 0; i < message.items.length; ++i) {
10572
+ let error = $root.sesame.v1.recorder.PlaylistItem.verify(message.items[i]);
10573
+ if (error)
10574
+ return "items." + error;
10575
+ }
10576
+ }
10577
+ if (message.startTimeUs != null && message.hasOwnProperty("startTimeUs")) {
10578
+ properties._startTimeUs = 1;
10579
+ if (!$util.isInteger(message.startTimeUs) && !(message.startTimeUs && $util.isInteger(message.startTimeUs.low) && $util.isInteger(message.startTimeUs.high)))
10580
+ return "startTimeUs: integer|Long expected";
10581
+ }
10582
+ if (message.startIndex != null && message.hasOwnProperty("startIndex")) {
10583
+ properties._startIndex = 1;
10584
+ if (!$util.isInteger(message.startIndex) && !(message.startIndex && $util.isInteger(message.startIndex.low) && $util.isInteger(message.startIndex.high)))
10585
+ return "startIndex: integer|Long expected";
10586
+ }
10587
+ if (message.materialPosUs != null && message.hasOwnProperty("materialPosUs")) {
10588
+ properties._materialPosUs = 1;
10589
+ if (!$util.isInteger(message.materialPosUs) && !(message.materialPosUs && $util.isInteger(message.materialPosUs.low) && $util.isInteger(message.materialPosUs.high)))
10590
+ return "materialPosUs: integer|Long expected";
10591
+ }
10592
+ if (message.transitionTimeUs != null && message.hasOwnProperty("transitionTimeUs")) {
10593
+ properties._transitionTimeUs = 1;
10594
+ if (!$util.isInteger(message.transitionTimeUs) && !(message.transitionTimeUs && $util.isInteger(message.transitionTimeUs.low) && $util.isInteger(message.transitionTimeUs.high)))
10595
+ return "transitionTimeUs: integer|Long expected";
10596
+ }
10597
+ if (message.playbackSpeed != null && message.hasOwnProperty("playbackSpeed")) {
10598
+ properties._playbackSpeed = 1;
10599
+ if (typeof message.playbackSpeed !== "number")
10600
+ return "playbackSpeed: number expected";
10601
+ }
10602
+ return null;
10603
+ };
10604
+ TakePlaylistRequest.fromObject = function fromObject(object) {
10605
+ if (object instanceof $root.sesame.v1.sources.TakePlaylistRequest)
10606
+ return object;
10607
+ let message = new $root.sesame.v1.sources.TakePlaylistRequest();
10608
+ if (object.sourceId != null)
10609
+ message.sourceId = String(object.sourceId);
10610
+ if (object.userPlaylistId != null)
10611
+ message.userPlaylistId = String(object.userPlaylistId);
10612
+ if (object.items) {
10613
+ if (!Array.isArray(object.items))
10614
+ throw TypeError(".sesame.v1.sources.TakePlaylistRequest.items: array expected");
10615
+ message.items = [];
10616
+ for (let i = 0; i < object.items.length; ++i) {
10617
+ if (typeof object.items[i] !== "object")
10618
+ throw TypeError(".sesame.v1.sources.TakePlaylistRequest.items: object expected");
10619
+ message.items[i] = $root.sesame.v1.recorder.PlaylistItem.fromObject(object.items[i]);
10620
+ }
10621
+ }
10622
+ if (object.startTimeUs != null) {
10623
+ if ($util.Long)
10624
+ (message.startTimeUs = $util.Long.fromValue(object.startTimeUs)).unsigned = false;
10625
+ else if (typeof object.startTimeUs === "string")
10626
+ message.startTimeUs = parseInt(object.startTimeUs, 10);
10627
+ else if (typeof object.startTimeUs === "number")
10628
+ message.startTimeUs = object.startTimeUs;
10629
+ else if (typeof object.startTimeUs === "object")
10630
+ message.startTimeUs = new $util.LongBits(object.startTimeUs.low >>> 0, object.startTimeUs.high >>> 0).toNumber();
10631
+ }
10632
+ if (object.startIndex != null) {
10633
+ if ($util.Long)
10634
+ (message.startIndex = $util.Long.fromValue(object.startIndex)).unsigned = false;
10635
+ else if (typeof object.startIndex === "string")
10636
+ message.startIndex = parseInt(object.startIndex, 10);
10637
+ else if (typeof object.startIndex === "number")
10638
+ message.startIndex = object.startIndex;
10639
+ else if (typeof object.startIndex === "object")
10640
+ message.startIndex = new $util.LongBits(object.startIndex.low >>> 0, object.startIndex.high >>> 0).toNumber();
10641
+ }
10642
+ if (object.materialPosUs != null) {
10643
+ if ($util.Long)
10644
+ (message.materialPosUs = $util.Long.fromValue(object.materialPosUs)).unsigned = false;
10645
+ else if (typeof object.materialPosUs === "string")
10646
+ message.materialPosUs = parseInt(object.materialPosUs, 10);
10647
+ else if (typeof object.materialPosUs === "number")
10648
+ message.materialPosUs = object.materialPosUs;
10649
+ else if (typeof object.materialPosUs === "object")
10650
+ message.materialPosUs = new $util.LongBits(object.materialPosUs.low >>> 0, object.materialPosUs.high >>> 0).toNumber();
10651
+ }
10652
+ if (object.transitionTimeUs != null) {
10653
+ if ($util.Long)
10654
+ (message.transitionTimeUs = $util.Long.fromValue(object.transitionTimeUs)).unsigned = false;
10655
+ else if (typeof object.transitionTimeUs === "string")
10656
+ message.transitionTimeUs = parseInt(object.transitionTimeUs, 10);
10657
+ else if (typeof object.transitionTimeUs === "number")
10658
+ message.transitionTimeUs = object.transitionTimeUs;
10659
+ else if (typeof object.transitionTimeUs === "object")
10660
+ message.transitionTimeUs = new $util.LongBits(object.transitionTimeUs.low >>> 0, object.transitionTimeUs.high >>> 0).toNumber();
10661
+ }
10662
+ if (object.playbackSpeed != null)
10663
+ message.playbackSpeed = Number(object.playbackSpeed);
10664
+ return message;
10665
+ };
10666
+ TakePlaylistRequest.toObject = function toObject(message, options) {
10667
+ if (!options)
10668
+ options = {};
10669
+ let object = {};
10670
+ if (options.arrays || options.defaults)
10671
+ object.items = [];
10672
+ if (options.defaults) {
10673
+ object.sourceId = "";
10674
+ object.userPlaylistId = "";
10675
+ }
10676
+ if (message.sourceId != null && message.hasOwnProperty("sourceId"))
10677
+ object.sourceId = message.sourceId;
10678
+ if (message.userPlaylistId != null && message.hasOwnProperty("userPlaylistId"))
10679
+ object.userPlaylistId = message.userPlaylistId;
10680
+ if (message.items && message.items.length) {
10681
+ object.items = [];
10682
+ for (let j = 0; j < message.items.length; ++j)
10683
+ object.items[j] = $root.sesame.v1.recorder.PlaylistItem.toObject(message.items[j], options);
10684
+ }
10685
+ if (message.startTimeUs != null && message.hasOwnProperty("startTimeUs")) {
10686
+ if (typeof message.startTimeUs === "number")
10687
+ object.startTimeUs = options.longs === String ? String(message.startTimeUs) : message.startTimeUs;
10688
+ else
10689
+ object.startTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.startTimeUs) : options.longs === Number ? new $util.LongBits(message.startTimeUs.low >>> 0, message.startTimeUs.high >>> 0).toNumber() : message.startTimeUs;
10690
+ if (options.oneofs)
10691
+ object._startTimeUs = "startTimeUs";
10692
+ }
10693
+ if (message.startIndex != null && message.hasOwnProperty("startIndex")) {
10694
+ if (typeof message.startIndex === "number")
10695
+ object.startIndex = options.longs === String ? String(message.startIndex) : message.startIndex;
10696
+ else
10697
+ object.startIndex = options.longs === String ? $util.Long.prototype.toString.call(message.startIndex) : options.longs === Number ? new $util.LongBits(message.startIndex.low >>> 0, message.startIndex.high >>> 0).toNumber() : message.startIndex;
10698
+ if (options.oneofs)
10699
+ object._startIndex = "startIndex";
10700
+ }
10701
+ if (message.materialPosUs != null && message.hasOwnProperty("materialPosUs")) {
10702
+ if (typeof message.materialPosUs === "number")
10703
+ object.materialPosUs = options.longs === String ? String(message.materialPosUs) : message.materialPosUs;
10704
+ else
10705
+ object.materialPosUs = options.longs === String ? $util.Long.prototype.toString.call(message.materialPosUs) : options.longs === Number ? new $util.LongBits(message.materialPosUs.low >>> 0, message.materialPosUs.high >>> 0).toNumber() : message.materialPosUs;
10706
+ if (options.oneofs)
10707
+ object._materialPosUs = "materialPosUs";
10708
+ }
10709
+ if (message.transitionTimeUs != null && message.hasOwnProperty("transitionTimeUs")) {
10710
+ if (typeof message.transitionTimeUs === "number")
10711
+ object.transitionTimeUs = options.longs === String ? String(message.transitionTimeUs) : message.transitionTimeUs;
10712
+ else
10713
+ object.transitionTimeUs = options.longs === String ? $util.Long.prototype.toString.call(message.transitionTimeUs) : options.longs === Number ? new $util.LongBits(message.transitionTimeUs.low >>> 0, message.transitionTimeUs.high >>> 0).toNumber() : message.transitionTimeUs;
10714
+ if (options.oneofs)
10715
+ object._transitionTimeUs = "transitionTimeUs";
10716
+ }
10717
+ if (message.playbackSpeed != null && message.hasOwnProperty("playbackSpeed")) {
10718
+ object.playbackSpeed = options.json && !isFinite(message.playbackSpeed) ? String(message.playbackSpeed) : message.playbackSpeed;
10719
+ if (options.oneofs)
10720
+ object._playbackSpeed = "playbackSpeed";
10721
+ }
10722
+ return object;
10723
+ };
10724
+ TakePlaylistRequest.prototype.toJSON = function toJSON() {
10725
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10726
+ };
10727
+ TakePlaylistRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10728
+ if (typeUrlPrefix === void 0) {
10729
+ typeUrlPrefix = "type.googleapis.com";
10730
+ }
10731
+ return typeUrlPrefix + "/sesame.v1.sources.TakePlaylistRequest";
10732
+ };
10733
+ return TakePlaylistRequest;
10734
+ }();
10381
10735
  sources.EjectPlaylistRequest = function() {
10382
10736
  function EjectPlaylistRequest(properties) {
10383
10737
  if (properties) {