@stinkycomputing/sesame-api-client 1.10.0-alpha.3 → 1.10.0-alpha.4
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 +109 -1
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +109 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +109 -1
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +97 -0
- package/dist/proto/api.js +226 -0
- package/dist/sesame-wire-protocol.d.ts +4 -2
- package/dist/sesame-wire-protocol.d.ts.map +1 -1
- package/docs/protocol-reference.md +12 -1
- package/package.json +1 -1
package/dist/proto/api.d.ts
CHANGED
|
@@ -10574,6 +10574,103 @@ export namespace sesame {
|
|
|
10574
10574
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
10575
10575
|
}
|
|
10576
10576
|
|
|
10577
|
+
/** Properties of a TransportStatus. */
|
|
10578
|
+
interface ITransportStatus {
|
|
10579
|
+
|
|
10580
|
+
/** TransportStatus sources */
|
|
10581
|
+
sources?: (sesame.v1.status.ITransportEvent[]|null);
|
|
10582
|
+
}
|
|
10583
|
+
|
|
10584
|
+
/** Represents a TransportStatus. */
|
|
10585
|
+
class TransportStatus implements ITransportStatus {
|
|
10586
|
+
|
|
10587
|
+
/**
|
|
10588
|
+
* Constructs a new TransportStatus.
|
|
10589
|
+
* @param [properties] Properties to set
|
|
10590
|
+
*/
|
|
10591
|
+
constructor(properties?: sesame.v1.status.ITransportStatus);
|
|
10592
|
+
|
|
10593
|
+
/** TransportStatus sources. */
|
|
10594
|
+
public sources: sesame.v1.status.ITransportEvent[];
|
|
10595
|
+
|
|
10596
|
+
/**
|
|
10597
|
+
* Creates a new TransportStatus instance using the specified properties.
|
|
10598
|
+
* @param [properties] Properties to set
|
|
10599
|
+
* @returns TransportStatus instance
|
|
10600
|
+
*/
|
|
10601
|
+
public static create(properties?: sesame.v1.status.ITransportStatus): sesame.v1.status.TransportStatus;
|
|
10602
|
+
|
|
10603
|
+
/**
|
|
10604
|
+
* Encodes the specified TransportStatus message. Does not implicitly {@link sesame.v1.status.TransportStatus.verify|verify} messages.
|
|
10605
|
+
* @param message TransportStatus message or plain object to encode
|
|
10606
|
+
* @param [writer] Writer to encode to
|
|
10607
|
+
* @returns Writer
|
|
10608
|
+
*/
|
|
10609
|
+
public static encode(message: sesame.v1.status.ITransportStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10610
|
+
|
|
10611
|
+
/**
|
|
10612
|
+
* Encodes the specified TransportStatus message, length delimited. Does not implicitly {@link sesame.v1.status.TransportStatus.verify|verify} messages.
|
|
10613
|
+
* @param message TransportStatus message or plain object to encode
|
|
10614
|
+
* @param [writer] Writer to encode to
|
|
10615
|
+
* @returns Writer
|
|
10616
|
+
*/
|
|
10617
|
+
public static encodeDelimited(message: sesame.v1.status.ITransportStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10618
|
+
|
|
10619
|
+
/**
|
|
10620
|
+
* Decodes a TransportStatus message from the specified reader or buffer.
|
|
10621
|
+
* @param reader Reader or buffer to decode from
|
|
10622
|
+
* @param [length] Message length if known beforehand
|
|
10623
|
+
* @returns TransportStatus
|
|
10624
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10625
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10626
|
+
*/
|
|
10627
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sesame.v1.status.TransportStatus;
|
|
10628
|
+
|
|
10629
|
+
/**
|
|
10630
|
+
* Decodes a TransportStatus message from the specified reader or buffer, length delimited.
|
|
10631
|
+
* @param reader Reader or buffer to decode from
|
|
10632
|
+
* @returns TransportStatus
|
|
10633
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10634
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10635
|
+
*/
|
|
10636
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sesame.v1.status.TransportStatus;
|
|
10637
|
+
|
|
10638
|
+
/**
|
|
10639
|
+
* Verifies a TransportStatus message.
|
|
10640
|
+
* @param message Plain object to verify
|
|
10641
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10642
|
+
*/
|
|
10643
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10644
|
+
|
|
10645
|
+
/**
|
|
10646
|
+
* Creates a TransportStatus message from a plain object. Also converts values to their respective internal types.
|
|
10647
|
+
* @param object Plain object
|
|
10648
|
+
* @returns TransportStatus
|
|
10649
|
+
*/
|
|
10650
|
+
public static fromObject(object: { [k: string]: any }): sesame.v1.status.TransportStatus;
|
|
10651
|
+
|
|
10652
|
+
/**
|
|
10653
|
+
* Creates a plain object from a TransportStatus message. Also converts values to other types if specified.
|
|
10654
|
+
* @param message TransportStatus
|
|
10655
|
+
* @param [options] Conversion options
|
|
10656
|
+
* @returns Plain object
|
|
10657
|
+
*/
|
|
10658
|
+
public static toObject(message: sesame.v1.status.TransportStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10659
|
+
|
|
10660
|
+
/**
|
|
10661
|
+
* Converts this TransportStatus to JSON.
|
|
10662
|
+
* @returns JSON object
|
|
10663
|
+
*/
|
|
10664
|
+
public toJSON(): { [k: string]: any };
|
|
10665
|
+
|
|
10666
|
+
/**
|
|
10667
|
+
* Gets the default type url for TransportStatus
|
|
10668
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10669
|
+
* @returns The default type url
|
|
10670
|
+
*/
|
|
10671
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
10672
|
+
}
|
|
10673
|
+
|
|
10577
10674
|
/** Properties of a MetadataEvent. */
|
|
10578
10675
|
interface IMetadataEvent {
|
|
10579
10676
|
|
package/dist/proto/api.js
CHANGED
|
@@ -29364,6 +29364,232 @@ export const sesame = $root.sesame = (() => {
|
|
|
29364
29364
|
return TransportEvent;
|
|
29365
29365
|
})();
|
|
29366
29366
|
|
|
29367
|
+
status.TransportStatus = (function() {
|
|
29368
|
+
|
|
29369
|
+
/**
|
|
29370
|
+
* Properties of a TransportStatus.
|
|
29371
|
+
* @memberof sesame.v1.status
|
|
29372
|
+
* @interface ITransportStatus
|
|
29373
|
+
* @property {Array.<sesame.v1.status.ITransportEvent>|null} [sources] TransportStatus sources
|
|
29374
|
+
*/
|
|
29375
|
+
|
|
29376
|
+
/**
|
|
29377
|
+
* Constructs a new TransportStatus.
|
|
29378
|
+
* @memberof sesame.v1.status
|
|
29379
|
+
* @classdesc Represents a TransportStatus.
|
|
29380
|
+
* @implements ITransportStatus
|
|
29381
|
+
* @constructor
|
|
29382
|
+
* @param {sesame.v1.status.ITransportStatus=} [properties] Properties to set
|
|
29383
|
+
*/
|
|
29384
|
+
function TransportStatus(properties) {
|
|
29385
|
+
this.sources = [];
|
|
29386
|
+
if (properties)
|
|
29387
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
29388
|
+
if (properties[keys[i]] != null)
|
|
29389
|
+
this[keys[i]] = properties[keys[i]];
|
|
29390
|
+
}
|
|
29391
|
+
|
|
29392
|
+
/**
|
|
29393
|
+
* TransportStatus sources.
|
|
29394
|
+
* @member {Array.<sesame.v1.status.ITransportEvent>} sources
|
|
29395
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29396
|
+
* @instance
|
|
29397
|
+
*/
|
|
29398
|
+
TransportStatus.prototype.sources = $util.emptyArray;
|
|
29399
|
+
|
|
29400
|
+
/**
|
|
29401
|
+
* Creates a new TransportStatus instance using the specified properties.
|
|
29402
|
+
* @function create
|
|
29403
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29404
|
+
* @static
|
|
29405
|
+
* @param {sesame.v1.status.ITransportStatus=} [properties] Properties to set
|
|
29406
|
+
* @returns {sesame.v1.status.TransportStatus} TransportStatus instance
|
|
29407
|
+
*/
|
|
29408
|
+
TransportStatus.create = function create(properties) {
|
|
29409
|
+
return new TransportStatus(properties);
|
|
29410
|
+
};
|
|
29411
|
+
|
|
29412
|
+
/**
|
|
29413
|
+
* Encodes the specified TransportStatus message. Does not implicitly {@link sesame.v1.status.TransportStatus.verify|verify} messages.
|
|
29414
|
+
* @function encode
|
|
29415
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29416
|
+
* @static
|
|
29417
|
+
* @param {sesame.v1.status.ITransportStatus} message TransportStatus message or plain object to encode
|
|
29418
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29419
|
+
* @returns {$protobuf.Writer} Writer
|
|
29420
|
+
*/
|
|
29421
|
+
TransportStatus.encode = function encode(message, writer) {
|
|
29422
|
+
if (!writer)
|
|
29423
|
+
writer = $Writer.create();
|
|
29424
|
+
if (message.sources != null && message.sources.length)
|
|
29425
|
+
for (let i = 0; i < message.sources.length; ++i)
|
|
29426
|
+
$root.sesame.v1.status.TransportEvent.encode(message.sources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
29427
|
+
return writer;
|
|
29428
|
+
};
|
|
29429
|
+
|
|
29430
|
+
/**
|
|
29431
|
+
* Encodes the specified TransportStatus message, length delimited. Does not implicitly {@link sesame.v1.status.TransportStatus.verify|verify} messages.
|
|
29432
|
+
* @function encodeDelimited
|
|
29433
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29434
|
+
* @static
|
|
29435
|
+
* @param {sesame.v1.status.ITransportStatus} message TransportStatus message or plain object to encode
|
|
29436
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
29437
|
+
* @returns {$protobuf.Writer} Writer
|
|
29438
|
+
*/
|
|
29439
|
+
TransportStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
29440
|
+
return this.encode(message, writer).ldelim();
|
|
29441
|
+
};
|
|
29442
|
+
|
|
29443
|
+
/**
|
|
29444
|
+
* Decodes a TransportStatus message from the specified reader or buffer.
|
|
29445
|
+
* @function decode
|
|
29446
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29447
|
+
* @static
|
|
29448
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29449
|
+
* @param {number} [length] Message length if known beforehand
|
|
29450
|
+
* @returns {sesame.v1.status.TransportStatus} TransportStatus
|
|
29451
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29452
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29453
|
+
*/
|
|
29454
|
+
TransportStatus.decode = function decode(reader, length, error) {
|
|
29455
|
+
if (!(reader instanceof $Reader))
|
|
29456
|
+
reader = $Reader.create(reader);
|
|
29457
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.sesame.v1.status.TransportStatus();
|
|
29458
|
+
while (reader.pos < end) {
|
|
29459
|
+
let tag = reader.uint32();
|
|
29460
|
+
if (tag === error)
|
|
29461
|
+
break;
|
|
29462
|
+
switch (tag >>> 3) {
|
|
29463
|
+
case 1: {
|
|
29464
|
+
if (!(message.sources && message.sources.length))
|
|
29465
|
+
message.sources = [];
|
|
29466
|
+
message.sources.push($root.sesame.v1.status.TransportEvent.decode(reader, reader.uint32()));
|
|
29467
|
+
break;
|
|
29468
|
+
}
|
|
29469
|
+
default:
|
|
29470
|
+
reader.skipType(tag & 7);
|
|
29471
|
+
break;
|
|
29472
|
+
}
|
|
29473
|
+
}
|
|
29474
|
+
return message;
|
|
29475
|
+
};
|
|
29476
|
+
|
|
29477
|
+
/**
|
|
29478
|
+
* Decodes a TransportStatus message from the specified reader or buffer, length delimited.
|
|
29479
|
+
* @function decodeDelimited
|
|
29480
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29481
|
+
* @static
|
|
29482
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
29483
|
+
* @returns {sesame.v1.status.TransportStatus} TransportStatus
|
|
29484
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29485
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29486
|
+
*/
|
|
29487
|
+
TransportStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
29488
|
+
if (!(reader instanceof $Reader))
|
|
29489
|
+
reader = new $Reader(reader);
|
|
29490
|
+
return this.decode(reader, reader.uint32());
|
|
29491
|
+
};
|
|
29492
|
+
|
|
29493
|
+
/**
|
|
29494
|
+
* Verifies a TransportStatus message.
|
|
29495
|
+
* @function verify
|
|
29496
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29497
|
+
* @static
|
|
29498
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
29499
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
29500
|
+
*/
|
|
29501
|
+
TransportStatus.verify = function verify(message) {
|
|
29502
|
+
if (typeof message !== "object" || message === null)
|
|
29503
|
+
return "object expected";
|
|
29504
|
+
if (message.sources != null && message.hasOwnProperty("sources")) {
|
|
29505
|
+
if (!Array.isArray(message.sources))
|
|
29506
|
+
return "sources: array expected";
|
|
29507
|
+
for (let i = 0; i < message.sources.length; ++i) {
|
|
29508
|
+
let error = $root.sesame.v1.status.TransportEvent.verify(message.sources[i]);
|
|
29509
|
+
if (error)
|
|
29510
|
+
return "sources." + error;
|
|
29511
|
+
}
|
|
29512
|
+
}
|
|
29513
|
+
return null;
|
|
29514
|
+
};
|
|
29515
|
+
|
|
29516
|
+
/**
|
|
29517
|
+
* Creates a TransportStatus message from a plain object. Also converts values to their respective internal types.
|
|
29518
|
+
* @function fromObject
|
|
29519
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29520
|
+
* @static
|
|
29521
|
+
* @param {Object.<string,*>} object Plain object
|
|
29522
|
+
* @returns {sesame.v1.status.TransportStatus} TransportStatus
|
|
29523
|
+
*/
|
|
29524
|
+
TransportStatus.fromObject = function fromObject(object) {
|
|
29525
|
+
if (object instanceof $root.sesame.v1.status.TransportStatus)
|
|
29526
|
+
return object;
|
|
29527
|
+
let message = new $root.sesame.v1.status.TransportStatus();
|
|
29528
|
+
if (object.sources) {
|
|
29529
|
+
if (!Array.isArray(object.sources))
|
|
29530
|
+
throw TypeError(".sesame.v1.status.TransportStatus.sources: array expected");
|
|
29531
|
+
message.sources = [];
|
|
29532
|
+
for (let i = 0; i < object.sources.length; ++i) {
|
|
29533
|
+
if (typeof object.sources[i] !== "object")
|
|
29534
|
+
throw TypeError(".sesame.v1.status.TransportStatus.sources: object expected");
|
|
29535
|
+
message.sources[i] = $root.sesame.v1.status.TransportEvent.fromObject(object.sources[i]);
|
|
29536
|
+
}
|
|
29537
|
+
}
|
|
29538
|
+
return message;
|
|
29539
|
+
};
|
|
29540
|
+
|
|
29541
|
+
/**
|
|
29542
|
+
* Creates a plain object from a TransportStatus message. Also converts values to other types if specified.
|
|
29543
|
+
* @function toObject
|
|
29544
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29545
|
+
* @static
|
|
29546
|
+
* @param {sesame.v1.status.TransportStatus} message TransportStatus
|
|
29547
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
29548
|
+
* @returns {Object.<string,*>} Plain object
|
|
29549
|
+
*/
|
|
29550
|
+
TransportStatus.toObject = function toObject(message, options) {
|
|
29551
|
+
if (!options)
|
|
29552
|
+
options = {};
|
|
29553
|
+
let object = {};
|
|
29554
|
+
if (options.arrays || options.defaults)
|
|
29555
|
+
object.sources = [];
|
|
29556
|
+
if (message.sources && message.sources.length) {
|
|
29557
|
+
object.sources = [];
|
|
29558
|
+
for (let j = 0; j < message.sources.length; ++j)
|
|
29559
|
+
object.sources[j] = $root.sesame.v1.status.TransportEvent.toObject(message.sources[j], options);
|
|
29560
|
+
}
|
|
29561
|
+
return object;
|
|
29562
|
+
};
|
|
29563
|
+
|
|
29564
|
+
/**
|
|
29565
|
+
* Converts this TransportStatus to JSON.
|
|
29566
|
+
* @function toJSON
|
|
29567
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29568
|
+
* @instance
|
|
29569
|
+
* @returns {Object.<string,*>} JSON object
|
|
29570
|
+
*/
|
|
29571
|
+
TransportStatus.prototype.toJSON = function toJSON() {
|
|
29572
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
29573
|
+
};
|
|
29574
|
+
|
|
29575
|
+
/**
|
|
29576
|
+
* Gets the default type url for TransportStatus
|
|
29577
|
+
* @function getTypeUrl
|
|
29578
|
+
* @memberof sesame.v1.status.TransportStatus
|
|
29579
|
+
* @static
|
|
29580
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
29581
|
+
* @returns {string} The default type url
|
|
29582
|
+
*/
|
|
29583
|
+
TransportStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
29584
|
+
if (typeUrlPrefix === undefined) {
|
|
29585
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
29586
|
+
}
|
|
29587
|
+
return typeUrlPrefix + "/sesame.v1.status.TransportStatus";
|
|
29588
|
+
};
|
|
29589
|
+
|
|
29590
|
+
return TransportStatus;
|
|
29591
|
+
})();
|
|
29592
|
+
|
|
29367
29593
|
status.MetadataEvent = (function() {
|
|
29368
29594
|
|
|
29369
29595
|
/**
|
|
@@ -30,7 +30,7 @@ export type ParsedDataFrame = {
|
|
|
30
30
|
} | {
|
|
31
31
|
dataType: 'transport-status';
|
|
32
32
|
trackName: string;
|
|
33
|
-
|
|
33
|
+
status: sesame.v1.status.TransportStatus;
|
|
34
34
|
} | {
|
|
35
35
|
dataType: 'audio-state';
|
|
36
36
|
trackName: string;
|
|
@@ -145,7 +145,9 @@ export declare function buildAudioControlFrame(trackName: string, request: sesam
|
|
|
145
145
|
* ws.send(bytes);
|
|
146
146
|
* ```
|
|
147
147
|
*/
|
|
148
|
-
export declare function buildTransportControlFrame(trackName: string, request: sesame.v1.sources.ITransportControlRequest
|
|
148
|
+
export declare function buildTransportControlFrame(trackName: string, request: sesame.v1.sources.ITransportControlRequest & {
|
|
149
|
+
sourceId: string;
|
|
150
|
+
}): Uint8Array;
|
|
149
151
|
/**
|
|
150
152
|
* Build a ready-to-send wire frame carrying a `SourceControlRequest`.
|
|
151
153
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sesame-wire-protocol.d.ts","sourceRoot":"","sources":["../src/sesame-wire-protocol.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,eAAO,MAAM,SAAS,iCAA2B,CAAC;AAClD,eAAO,MAAM,QAAQ,gCAA0B,CAAC;AAChD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;AACvD,eAAO,MAAM,WAAW,mCAA6B,CAAC;AACtD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;AAC7D,eAAO,MAAM,cAAc,sCAAgC,CAAC;AAC5D,eAAO,MAAM,SAAS,mCAA6B,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC;AACrD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;AAC3D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;AACzD,eAAO,MAAM,QAAQ,oCAA8B,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1C,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC;CAC5B;AAMD,+EAA+E;AAC/E,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAe,SAAS,EAA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,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,qBAAqB,GAC/C,UAAU,CAOZ;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,UAAU,GAClB,UAAU,CAMZ;AAID,qBAAa,YAAY;IACvB;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,GAAG,UAAU;IAqB9F;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW;CAqB5C"}
|
|
@@ -2588,6 +2588,17 @@ Transport event (source playback state change).
|
|
|
2588
2588
|
| `near_end` | bool | True in the single event fired when end_notification threshold is crossed |
|
|
2589
2589
|
|
|
2590
2590
|
|
|
2591
|
+
### TransportStatus
|
|
2592
|
+
|
|
2593
|
+
Payload for DATA_TYPE_TRANSPORT_STATUS frames on the reserved `sources`
|
|
2594
|
+
track: the current transport state of every transportable source.
|
|
2595
|
+
|
|
2596
|
+
|
|
2597
|
+
| Field | Type | Description |
|
|
2598
|
+
|-------|------|-------------|
|
|
2599
|
+
| `sources` | repeated TransportEvent | One entry per transportable source, keyed by source_id |
|
|
2600
|
+
|
|
2601
|
+
|
|
2591
2602
|
---
|
|
2592
2603
|
|
|
2593
2604
|
|
|
@@ -2608,7 +2619,7 @@ type, or raw UTF-8 JSON for DATA_TYPE_JSON.
|
|
|
2608
2619
|
|-------|------|-------------|
|
|
2609
2620
|
| 0 | `DATA_TYPE_UNSPECIFIED` | |
|
|
2610
2621
|
| 1 | `DATA_TYPE_JSON` | |
|
|
2611
|
-
| 2 | `DATA_TYPE_TRANSPORT_STATUS` | payload: sesame.v1.status.
|
|
2622
|
+
| 2 | `DATA_TYPE_TRANSPORT_STATUS` | payload: sesame.v1.status.TransportStatus (all transportable sources → transport) |
|
|
2612
2623
|
| 3 | `DATA_TYPE_AUDIO_STATE` | payload: sesame.v1.audio.AudioMixerStatus (mixer → transport) |
|
|
2613
2624
|
| 4 | `DATA_TYPE_TRANSPORT_CONTROL` | payload: sesame.v1.sources.TransportControlRequest (transport → source) |
|
|
2614
2625
|
| 5 | `DATA_TYPE_AUDIO_CONTROL` | payload: sesame.v1.audio.AudioControlRequest (transport → mixer) |
|
package/package.json
CHANGED