@stinkycomputing/sesame-api-client 1.5.4 → 1.5.6
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/dist/command-list.d.ts +9 -5
- package/dist/command-list.d.ts.map +1 -1
- package/dist/generated/property-types.d.ts +16 -1
- package/dist/generated/property-types.d.ts.map +1 -1
- package/dist/index.browser.mjs +2024 -306
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +2024 -306
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2024 -306
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +857 -17
- package/dist/proto/api.js +5026 -2392
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -533,6 +533,14 @@ var sesame = $root.sesame = (() => {
|
|
|
533
533
|
AudioMixerChannel.prototype.level = 0;
|
|
534
534
|
AudioMixerChannel.prototype.pan = 0;
|
|
535
535
|
AudioMixerChannel.prototype.plugins = $util.emptyArray;
|
|
536
|
+
AudioMixerChannel.prototype.mute = false;
|
|
537
|
+
AudioMixerChannel.prototype.automationLevel = null;
|
|
538
|
+
AudioMixerChannel.prototype.automationMute = false;
|
|
539
|
+
let $oneOfFields;
|
|
540
|
+
Object.defineProperty(AudioMixerChannel.prototype, "_automationLevel", {
|
|
541
|
+
get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
|
|
542
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
543
|
+
});
|
|
536
544
|
AudioMixerChannel.create = function create(properties) {
|
|
537
545
|
return new AudioMixerChannel(properties);
|
|
538
546
|
};
|
|
@@ -579,6 +587,21 @@ var sesame = $root.sesame = (() => {
|
|
|
579
587
|
/* id 7, wireType 2 =*/
|
|
580
588
|
58
|
|
581
589
|
).fork()).ldelim();
|
|
590
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
591
|
+
writer.uint32(
|
|
592
|
+
/* id 8, wireType 0 =*/
|
|
593
|
+
64
|
|
594
|
+
).bool(message.mute);
|
|
595
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
596
|
+
writer.uint32(
|
|
597
|
+
/* id 9, wireType 5 =*/
|
|
598
|
+
77
|
|
599
|
+
).float(message.automationLevel);
|
|
600
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
601
|
+
writer.uint32(
|
|
602
|
+
/* id 10, wireType 0 =*/
|
|
603
|
+
80
|
|
604
|
+
).bool(message.automationMute);
|
|
582
605
|
return writer;
|
|
583
606
|
};
|
|
584
607
|
AudioMixerChannel.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -630,6 +653,18 @@ var sesame = $root.sesame = (() => {
|
|
|
630
653
|
message.plugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
|
|
631
654
|
break;
|
|
632
655
|
}
|
|
656
|
+
case 8: {
|
|
657
|
+
message.mute = reader.bool();
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
case 9: {
|
|
661
|
+
message.automationLevel = reader.float();
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
664
|
+
case 10: {
|
|
665
|
+
message.automationMute = reader.bool();
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
633
668
|
default:
|
|
634
669
|
reader.skipType(tag & 7);
|
|
635
670
|
break;
|
|
@@ -645,6 +680,7 @@ var sesame = $root.sesame = (() => {
|
|
|
645
680
|
AudioMixerChannel.verify = function verify(message) {
|
|
646
681
|
if (typeof message !== "object" || message === null)
|
|
647
682
|
return "object expected";
|
|
683
|
+
let properties = {};
|
|
648
684
|
if (message.id != null && message.hasOwnProperty("id")) {
|
|
649
685
|
if (!$util.isString(message.id))
|
|
650
686
|
return "id: string expected";
|
|
@@ -686,6 +722,19 @@ var sesame = $root.sesame = (() => {
|
|
|
686
722
|
return "plugins." + error;
|
|
687
723
|
}
|
|
688
724
|
}
|
|
725
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
726
|
+
if (typeof message.mute !== "boolean")
|
|
727
|
+
return "mute: boolean expected";
|
|
728
|
+
}
|
|
729
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
730
|
+
properties._automationLevel = 1;
|
|
731
|
+
if (typeof message.automationLevel !== "number")
|
|
732
|
+
return "automationLevel: number expected";
|
|
733
|
+
}
|
|
734
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
735
|
+
if (typeof message.automationMute !== "boolean")
|
|
736
|
+
return "automationMute: boolean expected";
|
|
737
|
+
}
|
|
689
738
|
return null;
|
|
690
739
|
};
|
|
691
740
|
AudioMixerChannel.fromObject = function fromObject(object) {
|
|
@@ -737,6 +786,12 @@ var sesame = $root.sesame = (() => {
|
|
|
737
786
|
message.plugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.plugins[i]);
|
|
738
787
|
}
|
|
739
788
|
}
|
|
789
|
+
if (object.mute != null)
|
|
790
|
+
message.mute = Boolean(object.mute);
|
|
791
|
+
if (object.automationLevel != null)
|
|
792
|
+
message.automationLevel = Number(object.automationLevel);
|
|
793
|
+
if (object.automationMute != null)
|
|
794
|
+
message.automationMute = Boolean(object.automationMute);
|
|
740
795
|
return message;
|
|
741
796
|
};
|
|
742
797
|
AudioMixerChannel.toObject = function toObject(message, options) {
|
|
@@ -753,6 +808,8 @@ var sesame = $root.sesame = (() => {
|
|
|
753
808
|
object.channelType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
754
809
|
object.level = 0;
|
|
755
810
|
object.pan = 0;
|
|
811
|
+
object.mute = false;
|
|
812
|
+
object.automationMute = false;
|
|
756
813
|
}
|
|
757
814
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
758
815
|
object.id = message.id;
|
|
@@ -774,6 +831,15 @@ var sesame = $root.sesame = (() => {
|
|
|
774
831
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
775
832
|
object.plugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.plugins[j], options);
|
|
776
833
|
}
|
|
834
|
+
if (message.mute != null && message.hasOwnProperty("mute"))
|
|
835
|
+
object.mute = message.mute;
|
|
836
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
837
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
838
|
+
if (options.oneofs)
|
|
839
|
+
object._automationLevel = "automationLevel";
|
|
840
|
+
}
|
|
841
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute"))
|
|
842
|
+
object.automationMute = message.automationMute;
|
|
777
843
|
return object;
|
|
778
844
|
};
|
|
779
845
|
AudioMixerChannel.prototype.toJSON = function toJSON() {
|
|
@@ -787,9 +853,162 @@ var sesame = $root.sesame = (() => {
|
|
|
787
853
|
};
|
|
788
854
|
return AudioMixerChannel;
|
|
789
855
|
}();
|
|
856
|
+
audio.AudioMixerOutput = function() {
|
|
857
|
+
function AudioMixerOutput(properties) {
|
|
858
|
+
this.excludedChannelIds = [];
|
|
859
|
+
if (properties) {
|
|
860
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
861
|
+
if (properties[keys[i]] != null)
|
|
862
|
+
this[keys[i]] = properties[keys[i]];
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
AudioMixerOutput.prototype.id = "";
|
|
866
|
+
AudioMixerOutput.prototype.excludedChannelIds = $util.emptyArray;
|
|
867
|
+
AudioMixerOutput.prototype.includeMasterPlugins = null;
|
|
868
|
+
let $oneOfFields;
|
|
869
|
+
Object.defineProperty(AudioMixerOutput.prototype, "_includeMasterPlugins", {
|
|
870
|
+
get: $util.oneOfGetter($oneOfFields = ["includeMasterPlugins"]),
|
|
871
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
872
|
+
});
|
|
873
|
+
AudioMixerOutput.create = function create(properties) {
|
|
874
|
+
return new AudioMixerOutput(properties);
|
|
875
|
+
};
|
|
876
|
+
AudioMixerOutput.encode = function encode(message, writer) {
|
|
877
|
+
if (!writer)
|
|
878
|
+
writer = $Writer.create();
|
|
879
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
880
|
+
writer.uint32(
|
|
881
|
+
/* id 1, wireType 2 =*/
|
|
882
|
+
10
|
|
883
|
+
).string(message.id);
|
|
884
|
+
if (message.excludedChannelIds != null && message.excludedChannelIds.length)
|
|
885
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
886
|
+
writer.uint32(
|
|
887
|
+
/* id 2, wireType 2 =*/
|
|
888
|
+
18
|
|
889
|
+
).string(message.excludedChannelIds[i]);
|
|
890
|
+
if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
|
|
891
|
+
writer.uint32(
|
|
892
|
+
/* id 3, wireType 0 =*/
|
|
893
|
+
24
|
|
894
|
+
).bool(message.includeMasterPlugins);
|
|
895
|
+
return writer;
|
|
896
|
+
};
|
|
897
|
+
AudioMixerOutput.encodeDelimited = function encodeDelimited(message, writer) {
|
|
898
|
+
return this.encode(message, writer).ldelim();
|
|
899
|
+
};
|
|
900
|
+
AudioMixerOutput.decode = function decode(reader, length, error) {
|
|
901
|
+
if (!(reader instanceof $Reader))
|
|
902
|
+
reader = $Reader.create(reader);
|
|
903
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutput();
|
|
904
|
+
while (reader.pos < end) {
|
|
905
|
+
let tag = reader.uint32();
|
|
906
|
+
if (tag === error)
|
|
907
|
+
break;
|
|
908
|
+
switch (tag >>> 3) {
|
|
909
|
+
case 1: {
|
|
910
|
+
message.id = reader.string();
|
|
911
|
+
break;
|
|
912
|
+
}
|
|
913
|
+
case 2: {
|
|
914
|
+
if (!(message.excludedChannelIds && message.excludedChannelIds.length))
|
|
915
|
+
message.excludedChannelIds = [];
|
|
916
|
+
message.excludedChannelIds.push(reader.string());
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
case 3: {
|
|
920
|
+
message.includeMasterPlugins = reader.bool();
|
|
921
|
+
break;
|
|
922
|
+
}
|
|
923
|
+
default:
|
|
924
|
+
reader.skipType(tag & 7);
|
|
925
|
+
break;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
return message;
|
|
929
|
+
};
|
|
930
|
+
AudioMixerOutput.decodeDelimited = function decodeDelimited(reader) {
|
|
931
|
+
if (!(reader instanceof $Reader))
|
|
932
|
+
reader = new $Reader(reader);
|
|
933
|
+
return this.decode(reader, reader.uint32());
|
|
934
|
+
};
|
|
935
|
+
AudioMixerOutput.verify = function verify(message) {
|
|
936
|
+
if (typeof message !== "object" || message === null)
|
|
937
|
+
return "object expected";
|
|
938
|
+
let properties = {};
|
|
939
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
940
|
+
if (!$util.isString(message.id))
|
|
941
|
+
return "id: string expected";
|
|
942
|
+
}
|
|
943
|
+
if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
|
|
944
|
+
if (!Array.isArray(message.excludedChannelIds))
|
|
945
|
+
return "excludedChannelIds: array expected";
|
|
946
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
947
|
+
if (!$util.isString(message.excludedChannelIds[i]))
|
|
948
|
+
return "excludedChannelIds: string[] expected";
|
|
949
|
+
}
|
|
950
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
951
|
+
properties._includeMasterPlugins = 1;
|
|
952
|
+
if (typeof message.includeMasterPlugins !== "boolean")
|
|
953
|
+
return "includeMasterPlugins: boolean expected";
|
|
954
|
+
}
|
|
955
|
+
return null;
|
|
956
|
+
};
|
|
957
|
+
AudioMixerOutput.fromObject = function fromObject(object) {
|
|
958
|
+
if (object instanceof $root.sesame.v1.audio.AudioMixerOutput)
|
|
959
|
+
return object;
|
|
960
|
+
let message = new $root.sesame.v1.audio.AudioMixerOutput();
|
|
961
|
+
if (object.id != null)
|
|
962
|
+
message.id = String(object.id);
|
|
963
|
+
if (object.excludedChannelIds) {
|
|
964
|
+
if (!Array.isArray(object.excludedChannelIds))
|
|
965
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutput.excludedChannelIds: array expected");
|
|
966
|
+
message.excludedChannelIds = [];
|
|
967
|
+
for (let i = 0; i < object.excludedChannelIds.length; ++i)
|
|
968
|
+
message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
|
|
969
|
+
}
|
|
970
|
+
if (object.includeMasterPlugins != null)
|
|
971
|
+
message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
|
|
972
|
+
return message;
|
|
973
|
+
};
|
|
974
|
+
AudioMixerOutput.toObject = function toObject(message, options) {
|
|
975
|
+
if (!options)
|
|
976
|
+
options = {};
|
|
977
|
+
let object = {};
|
|
978
|
+
if (options.arrays || options.defaults)
|
|
979
|
+
object.excludedChannelIds = [];
|
|
980
|
+
if (options.defaults)
|
|
981
|
+
object.id = "";
|
|
982
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
983
|
+
object.id = message.id;
|
|
984
|
+
if (message.excludedChannelIds && message.excludedChannelIds.length) {
|
|
985
|
+
object.excludedChannelIds = [];
|
|
986
|
+
for (let j = 0; j < message.excludedChannelIds.length; ++j)
|
|
987
|
+
object.excludedChannelIds[j] = message.excludedChannelIds[j];
|
|
988
|
+
}
|
|
989
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
990
|
+
object.includeMasterPlugins = message.includeMasterPlugins;
|
|
991
|
+
if (options.oneofs)
|
|
992
|
+
object._includeMasterPlugins = "includeMasterPlugins";
|
|
993
|
+
}
|
|
994
|
+
return object;
|
|
995
|
+
};
|
|
996
|
+
AudioMixerOutput.prototype.toJSON = function toJSON() {
|
|
997
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
998
|
+
};
|
|
999
|
+
AudioMixerOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1000
|
+
if (typeUrlPrefix === void 0) {
|
|
1001
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1002
|
+
}
|
|
1003
|
+
return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutput";
|
|
1004
|
+
};
|
|
1005
|
+
return AudioMixerOutput;
|
|
1006
|
+
}();
|
|
790
1007
|
audio.AudioMixerConfig = function() {
|
|
791
1008
|
function AudioMixerConfig(properties) {
|
|
792
1009
|
this.channels = [];
|
|
1010
|
+
this.outputs = [];
|
|
1011
|
+
this.masterPlugins = [];
|
|
793
1012
|
if (properties) {
|
|
794
1013
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
795
1014
|
if (properties[keys[i]] != null)
|
|
@@ -799,6 +1018,19 @@ var sesame = $root.sesame = (() => {
|
|
|
799
1018
|
AudioMixerConfig.prototype.channels = $util.emptyArray;
|
|
800
1019
|
AudioMixerConfig.prototype.outputType = 0;
|
|
801
1020
|
AudioMixerConfig.prototype.order = 0;
|
|
1021
|
+
AudioMixerConfig.prototype.outputs = $util.emptyArray;
|
|
1022
|
+
AudioMixerConfig.prototype.masterLevel = null;
|
|
1023
|
+
AudioMixerConfig.prototype.masterAutomationLevel = null;
|
|
1024
|
+
AudioMixerConfig.prototype.masterPlugins = $util.emptyArray;
|
|
1025
|
+
let $oneOfFields;
|
|
1026
|
+
Object.defineProperty(AudioMixerConfig.prototype, "_masterLevel", {
|
|
1027
|
+
get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
|
|
1028
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1029
|
+
});
|
|
1030
|
+
Object.defineProperty(AudioMixerConfig.prototype, "_masterAutomationLevel", {
|
|
1031
|
+
get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
|
|
1032
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1033
|
+
});
|
|
802
1034
|
AudioMixerConfig.create = function create(properties) {
|
|
803
1035
|
return new AudioMixerConfig(properties);
|
|
804
1036
|
};
|
|
@@ -821,6 +1053,28 @@ var sesame = $root.sesame = (() => {
|
|
|
821
1053
|
/* id 3, wireType 0 =*/
|
|
822
1054
|
24
|
|
823
1055
|
).uint32(message.order);
|
|
1056
|
+
if (message.outputs != null && message.outputs.length)
|
|
1057
|
+
for (let i = 0; i < message.outputs.length; ++i)
|
|
1058
|
+
$root.sesame.v1.audio.AudioMixerOutput.encode(message.outputs[i], writer.uint32(
|
|
1059
|
+
/* id 4, wireType 2 =*/
|
|
1060
|
+
34
|
|
1061
|
+
).fork()).ldelim();
|
|
1062
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
1063
|
+
writer.uint32(
|
|
1064
|
+
/* id 5, wireType 5 =*/
|
|
1065
|
+
45
|
|
1066
|
+
).float(message.masterLevel);
|
|
1067
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
1068
|
+
writer.uint32(
|
|
1069
|
+
/* id 6, wireType 5 =*/
|
|
1070
|
+
53
|
|
1071
|
+
).float(message.masterAutomationLevel);
|
|
1072
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
1073
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
1074
|
+
$root.sesame.v1.audio.AudioPlugin.encode(message.masterPlugins[i], writer.uint32(
|
|
1075
|
+
/* id 7, wireType 2 =*/
|
|
1076
|
+
58
|
|
1077
|
+
).fork()).ldelim();
|
|
824
1078
|
return writer;
|
|
825
1079
|
};
|
|
826
1080
|
AudioMixerConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -849,6 +1103,26 @@ var sesame = $root.sesame = (() => {
|
|
|
849
1103
|
message.order = reader.uint32();
|
|
850
1104
|
break;
|
|
851
1105
|
}
|
|
1106
|
+
case 4: {
|
|
1107
|
+
if (!(message.outputs && message.outputs.length))
|
|
1108
|
+
message.outputs = [];
|
|
1109
|
+
message.outputs.push($root.sesame.v1.audio.AudioMixerOutput.decode(reader, reader.uint32()));
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
case 5: {
|
|
1113
|
+
message.masterLevel = reader.float();
|
|
1114
|
+
break;
|
|
1115
|
+
}
|
|
1116
|
+
case 6: {
|
|
1117
|
+
message.masterAutomationLevel = reader.float();
|
|
1118
|
+
break;
|
|
1119
|
+
}
|
|
1120
|
+
case 7: {
|
|
1121
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
1122
|
+
message.masterPlugins = [];
|
|
1123
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioPlugin.decode(reader, reader.uint32()));
|
|
1124
|
+
break;
|
|
1125
|
+
}
|
|
852
1126
|
default:
|
|
853
1127
|
reader.skipType(tag & 7);
|
|
854
1128
|
break;
|
|
@@ -864,6 +1138,7 @@ var sesame = $root.sesame = (() => {
|
|
|
864
1138
|
AudioMixerConfig.verify = function verify(message) {
|
|
865
1139
|
if (typeof message !== "object" || message === null)
|
|
866
1140
|
return "object expected";
|
|
1141
|
+
let properties = {};
|
|
867
1142
|
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
868
1143
|
if (!Array.isArray(message.channels))
|
|
869
1144
|
return "channels: array expected";
|
|
@@ -886,6 +1161,34 @@ var sesame = $root.sesame = (() => {
|
|
|
886
1161
|
if (!$util.isInteger(message.order))
|
|
887
1162
|
return "order: integer expected";
|
|
888
1163
|
}
|
|
1164
|
+
if (message.outputs != null && message.hasOwnProperty("outputs")) {
|
|
1165
|
+
if (!Array.isArray(message.outputs))
|
|
1166
|
+
return "outputs: array expected";
|
|
1167
|
+
for (let i = 0; i < message.outputs.length; ++i) {
|
|
1168
|
+
let error = $root.sesame.v1.audio.AudioMixerOutput.verify(message.outputs[i]);
|
|
1169
|
+
if (error)
|
|
1170
|
+
return "outputs." + error;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
1174
|
+
properties._masterLevel = 1;
|
|
1175
|
+
if (typeof message.masterLevel !== "number")
|
|
1176
|
+
return "masterLevel: number expected";
|
|
1177
|
+
}
|
|
1178
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
1179
|
+
properties._masterAutomationLevel = 1;
|
|
1180
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
1181
|
+
return "masterAutomationLevel: number expected";
|
|
1182
|
+
}
|
|
1183
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
1184
|
+
if (!Array.isArray(message.masterPlugins))
|
|
1185
|
+
return "masterPlugins: array expected";
|
|
1186
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
1187
|
+
let error = $root.sesame.v1.audio.AudioPlugin.verify(message.masterPlugins[i]);
|
|
1188
|
+
if (error)
|
|
1189
|
+
return "masterPlugins." + error;
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
889
1192
|
return null;
|
|
890
1193
|
};
|
|
891
1194
|
AudioMixerConfig.fromObject = function fromObject(object) {
|
|
@@ -924,14 +1227,41 @@ var sesame = $root.sesame = (() => {
|
|
|
924
1227
|
}
|
|
925
1228
|
if (object.order != null)
|
|
926
1229
|
message.order = object.order >>> 0;
|
|
1230
|
+
if (object.outputs) {
|
|
1231
|
+
if (!Array.isArray(object.outputs))
|
|
1232
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: array expected");
|
|
1233
|
+
message.outputs = [];
|
|
1234
|
+
for (let i = 0; i < object.outputs.length; ++i) {
|
|
1235
|
+
if (typeof object.outputs[i] !== "object")
|
|
1236
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.outputs: object expected");
|
|
1237
|
+
message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutput.fromObject(object.outputs[i]);
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
if (object.masterLevel != null)
|
|
1241
|
+
message.masterLevel = Number(object.masterLevel);
|
|
1242
|
+
if (object.masterAutomationLevel != null)
|
|
1243
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
1244
|
+
if (object.masterPlugins) {
|
|
1245
|
+
if (!Array.isArray(object.masterPlugins))
|
|
1246
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: array expected");
|
|
1247
|
+
message.masterPlugins = [];
|
|
1248
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
1249
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
1250
|
+
throw TypeError(".sesame.v1.audio.AudioMixerConfig.masterPlugins: object expected");
|
|
1251
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioPlugin.fromObject(object.masterPlugins[i]);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
927
1254
|
return message;
|
|
928
1255
|
};
|
|
929
1256
|
AudioMixerConfig.toObject = function toObject(message, options) {
|
|
930
1257
|
if (!options)
|
|
931
1258
|
options = {};
|
|
932
1259
|
let object = {};
|
|
933
|
-
if (options.arrays || options.defaults)
|
|
1260
|
+
if (options.arrays || options.defaults) {
|
|
934
1261
|
object.channels = [];
|
|
1262
|
+
object.outputs = [];
|
|
1263
|
+
object.masterPlugins = [];
|
|
1264
|
+
}
|
|
935
1265
|
if (options.defaults) {
|
|
936
1266
|
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
937
1267
|
object.order = 0;
|
|
@@ -945,6 +1275,26 @@ var sesame = $root.sesame = (() => {
|
|
|
945
1275
|
object.outputType = options.enums === String ? $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] === void 0 ? message.outputType : $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] : message.outputType;
|
|
946
1276
|
if (message.order != null && message.hasOwnProperty("order"))
|
|
947
1277
|
object.order = message.order;
|
|
1278
|
+
if (message.outputs && message.outputs.length) {
|
|
1279
|
+
object.outputs = [];
|
|
1280
|
+
for (let j = 0; j < message.outputs.length; ++j)
|
|
1281
|
+
object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutput.toObject(message.outputs[j], options);
|
|
1282
|
+
}
|
|
1283
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
1284
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
1285
|
+
if (options.oneofs)
|
|
1286
|
+
object._masterLevel = "masterLevel";
|
|
1287
|
+
}
|
|
1288
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
1289
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
1290
|
+
if (options.oneofs)
|
|
1291
|
+
object._masterAutomationLevel = "masterAutomationLevel";
|
|
1292
|
+
}
|
|
1293
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
1294
|
+
object.masterPlugins = [];
|
|
1295
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
1296
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioPlugin.toObject(message.masterPlugins[j], options);
|
|
1297
|
+
}
|
|
948
1298
|
return object;
|
|
949
1299
|
};
|
|
950
1300
|
AudioMixerConfig.prototype.toJSON = function toJSON() {
|
|
@@ -1656,6 +2006,11 @@ var sesame = $root.sesame = (() => {
|
|
|
1656
2006
|
AudioChannelStatus.prototype.hasData = false;
|
|
1657
2007
|
AudioChannelStatus.prototype.readErrors = 0;
|
|
1658
2008
|
AudioChannelStatus.prototype.plugins = $util.emptyArray;
|
|
2009
|
+
AudioChannelStatus.prototype.mute = false;
|
|
2010
|
+
AudioChannelStatus.prototype.automationLevel = 0;
|
|
2011
|
+
AudioChannelStatus.prototype.automationMute = false;
|
|
2012
|
+
AudioChannelStatus.prototype.effectiveLevel = 0;
|
|
2013
|
+
AudioChannelStatus.prototype.effectiveMute = false;
|
|
1659
2014
|
AudioChannelStatus.create = function create(properties) {
|
|
1660
2015
|
return new AudioChannelStatus(properties);
|
|
1661
2016
|
};
|
|
@@ -1707,6 +2062,31 @@ var sesame = $root.sesame = (() => {
|
|
|
1707
2062
|
/* id 8, wireType 2 =*/
|
|
1708
2063
|
66
|
|
1709
2064
|
).fork()).ldelim();
|
|
2065
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
2066
|
+
writer.uint32(
|
|
2067
|
+
/* id 9, wireType 0 =*/
|
|
2068
|
+
72
|
|
2069
|
+
).bool(message.mute);
|
|
2070
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
2071
|
+
writer.uint32(
|
|
2072
|
+
/* id 10, wireType 5 =*/
|
|
2073
|
+
85
|
|
2074
|
+
).float(message.automationLevel);
|
|
2075
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
2076
|
+
writer.uint32(
|
|
2077
|
+
/* id 11, wireType 0 =*/
|
|
2078
|
+
88
|
|
2079
|
+
).bool(message.automationMute);
|
|
2080
|
+
if (message.effectiveLevel != null && Object.hasOwnProperty.call(message, "effectiveLevel"))
|
|
2081
|
+
writer.uint32(
|
|
2082
|
+
/* id 12, wireType 5 =*/
|
|
2083
|
+
101
|
|
2084
|
+
).float(message.effectiveLevel);
|
|
2085
|
+
if (message.effectiveMute != null && Object.hasOwnProperty.call(message, "effectiveMute"))
|
|
2086
|
+
writer.uint32(
|
|
2087
|
+
/* id 13, wireType 0 =*/
|
|
2088
|
+
104
|
|
2089
|
+
).bool(message.effectiveMute);
|
|
1710
2090
|
return writer;
|
|
1711
2091
|
};
|
|
1712
2092
|
AudioChannelStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -1762,6 +2142,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1762
2142
|
message.plugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
|
|
1763
2143
|
break;
|
|
1764
2144
|
}
|
|
2145
|
+
case 9: {
|
|
2146
|
+
message.mute = reader.bool();
|
|
2147
|
+
break;
|
|
2148
|
+
}
|
|
2149
|
+
case 10: {
|
|
2150
|
+
message.automationLevel = reader.float();
|
|
2151
|
+
break;
|
|
2152
|
+
}
|
|
2153
|
+
case 11: {
|
|
2154
|
+
message.automationMute = reader.bool();
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
case 12: {
|
|
2158
|
+
message.effectiveLevel = reader.float();
|
|
2159
|
+
break;
|
|
2160
|
+
}
|
|
2161
|
+
case 13: {
|
|
2162
|
+
message.effectiveMute = reader.bool();
|
|
2163
|
+
break;
|
|
2164
|
+
}
|
|
1765
2165
|
default:
|
|
1766
2166
|
reader.skipType(tag & 7);
|
|
1767
2167
|
break;
|
|
@@ -1822,6 +2222,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1822
2222
|
return "plugins." + error;
|
|
1823
2223
|
}
|
|
1824
2224
|
}
|
|
2225
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
2226
|
+
if (typeof message.mute !== "boolean")
|
|
2227
|
+
return "mute: boolean expected";
|
|
2228
|
+
}
|
|
2229
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
2230
|
+
if (typeof message.automationLevel !== "number")
|
|
2231
|
+
return "automationLevel: number expected";
|
|
2232
|
+
}
|
|
2233
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
2234
|
+
if (typeof message.automationMute !== "boolean")
|
|
2235
|
+
return "automationMute: boolean expected";
|
|
2236
|
+
}
|
|
2237
|
+
if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel")) {
|
|
2238
|
+
if (typeof message.effectiveLevel !== "number")
|
|
2239
|
+
return "effectiveLevel: number expected";
|
|
2240
|
+
}
|
|
2241
|
+
if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute")) {
|
|
2242
|
+
if (typeof message.effectiveMute !== "boolean")
|
|
2243
|
+
return "effectiveMute: boolean expected";
|
|
2244
|
+
}
|
|
1825
2245
|
return null;
|
|
1826
2246
|
};
|
|
1827
2247
|
AudioChannelStatus.fromObject = function fromObject(object) {
|
|
@@ -1875,6 +2295,16 @@ var sesame = $root.sesame = (() => {
|
|
|
1875
2295
|
message.plugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.plugins[i]);
|
|
1876
2296
|
}
|
|
1877
2297
|
}
|
|
2298
|
+
if (object.mute != null)
|
|
2299
|
+
message.mute = Boolean(object.mute);
|
|
2300
|
+
if (object.automationLevel != null)
|
|
2301
|
+
message.automationLevel = Number(object.automationLevel);
|
|
2302
|
+
if (object.automationMute != null)
|
|
2303
|
+
message.automationMute = Boolean(object.automationMute);
|
|
2304
|
+
if (object.effectiveLevel != null)
|
|
2305
|
+
message.effectiveLevel = Number(object.effectiveLevel);
|
|
2306
|
+
if (object.effectiveMute != null)
|
|
2307
|
+
message.effectiveMute = Boolean(object.effectiveMute);
|
|
1878
2308
|
return message;
|
|
1879
2309
|
};
|
|
1880
2310
|
AudioChannelStatus.toObject = function toObject(message, options) {
|
|
@@ -1892,6 +2322,11 @@ var sesame = $root.sesame = (() => {
|
|
|
1892
2322
|
object.pan = 0;
|
|
1893
2323
|
object.hasData = false;
|
|
1894
2324
|
object.readErrors = 0;
|
|
2325
|
+
object.mute = false;
|
|
2326
|
+
object.automationLevel = 0;
|
|
2327
|
+
object.automationMute = false;
|
|
2328
|
+
object.effectiveLevel = 0;
|
|
2329
|
+
object.effectiveMute = false;
|
|
1895
2330
|
}
|
|
1896
2331
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
1897
2332
|
object.id = message.id;
|
|
@@ -1915,6 +2350,16 @@ var sesame = $root.sesame = (() => {
|
|
|
1915
2350
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
1916
2351
|
object.plugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.plugins[j], options);
|
|
1917
2352
|
}
|
|
2353
|
+
if (message.mute != null && message.hasOwnProperty("mute"))
|
|
2354
|
+
object.mute = message.mute;
|
|
2355
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel"))
|
|
2356
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
2357
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute"))
|
|
2358
|
+
object.automationMute = message.automationMute;
|
|
2359
|
+
if (message.effectiveLevel != null && message.hasOwnProperty("effectiveLevel"))
|
|
2360
|
+
object.effectiveLevel = options.json && !isFinite(message.effectiveLevel) ? String(message.effectiveLevel) : message.effectiveLevel;
|
|
2361
|
+
if (message.effectiveMute != null && message.hasOwnProperty("effectiveMute"))
|
|
2362
|
+
object.effectiveMute = message.effectiveMute;
|
|
1918
2363
|
return object;
|
|
1919
2364
|
};
|
|
1920
2365
|
AudioChannelStatus.prototype.toJSON = function toJSON() {
|
|
@@ -1928,24 +2373,25 @@ var sesame = $root.sesame = (() => {
|
|
|
1928
2373
|
};
|
|
1929
2374
|
return AudioChannelStatus;
|
|
1930
2375
|
}();
|
|
1931
|
-
audio.
|
|
1932
|
-
function
|
|
2376
|
+
audio.AudioMixerOutputStatus = function() {
|
|
2377
|
+
function AudioMixerOutputStatus(properties) {
|
|
1933
2378
|
this.vu = [];
|
|
1934
|
-
this.
|
|
2379
|
+
this.excludedChannelIds = [];
|
|
1935
2380
|
if (properties) {
|
|
1936
2381
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1937
2382
|
if (properties[keys[i]] != null)
|
|
1938
2383
|
this[keys[i]] = properties[keys[i]];
|
|
1939
2384
|
}
|
|
1940
2385
|
}
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
2386
|
+
AudioMixerOutputStatus.prototype.id = "";
|
|
2387
|
+
AudioMixerOutputStatus.prototype.outputType = 0;
|
|
2388
|
+
AudioMixerOutputStatus.prototype.vu = $util.emptyArray;
|
|
2389
|
+
AudioMixerOutputStatus.prototype.excludedChannelIds = $util.emptyArray;
|
|
2390
|
+
AudioMixerOutputStatus.prototype.includeMasterPlugins = false;
|
|
2391
|
+
AudioMixerOutputStatus.create = function create(properties) {
|
|
2392
|
+
return new AudioMixerOutputStatus(properties);
|
|
2393
|
+
};
|
|
2394
|
+
AudioMixerOutputStatus.encode = function encode(message, writer) {
|
|
1949
2395
|
if (!writer)
|
|
1950
2396
|
writer = $Writer.create();
|
|
1951
2397
|
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
@@ -1967,21 +2413,26 @@ var sesame = $root.sesame = (() => {
|
|
|
1967
2413
|
writer.float(message.vu[i]);
|
|
1968
2414
|
writer.ldelim();
|
|
1969
2415
|
}
|
|
1970
|
-
if (message.
|
|
1971
|
-
for (let i = 0; i < message.
|
|
1972
|
-
|
|
2416
|
+
if (message.excludedChannelIds != null && message.excludedChannelIds.length)
|
|
2417
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
2418
|
+
writer.uint32(
|
|
1973
2419
|
/* id 4, wireType 2 =*/
|
|
1974
2420
|
34
|
|
1975
|
-
).
|
|
2421
|
+
).string(message.excludedChannelIds[i]);
|
|
2422
|
+
if (message.includeMasterPlugins != null && Object.hasOwnProperty.call(message, "includeMasterPlugins"))
|
|
2423
|
+
writer.uint32(
|
|
2424
|
+
/* id 5, wireType 0 =*/
|
|
2425
|
+
40
|
|
2426
|
+
).bool(message.includeMasterPlugins);
|
|
1976
2427
|
return writer;
|
|
1977
2428
|
};
|
|
1978
|
-
|
|
2429
|
+
AudioMixerOutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1979
2430
|
return this.encode(message, writer).ldelim();
|
|
1980
2431
|
};
|
|
1981
|
-
|
|
2432
|
+
AudioMixerOutputStatus.decode = function decode(reader, length, error) {
|
|
1982
2433
|
if (!(reader instanceof $Reader))
|
|
1983
2434
|
reader = $Reader.create(reader);
|
|
1984
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.
|
|
2435
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
|
|
1985
2436
|
while (reader.pos < end) {
|
|
1986
2437
|
let tag = reader.uint32();
|
|
1987
2438
|
if (tag === error)
|
|
@@ -2007,9 +2458,13 @@ var sesame = $root.sesame = (() => {
|
|
|
2007
2458
|
break;
|
|
2008
2459
|
}
|
|
2009
2460
|
case 4: {
|
|
2010
|
-
if (!(message.
|
|
2011
|
-
message.
|
|
2012
|
-
message.
|
|
2461
|
+
if (!(message.excludedChannelIds && message.excludedChannelIds.length))
|
|
2462
|
+
message.excludedChannelIds = [];
|
|
2463
|
+
message.excludedChannelIds.push(reader.string());
|
|
2464
|
+
break;
|
|
2465
|
+
}
|
|
2466
|
+
case 5: {
|
|
2467
|
+
message.includeMasterPlugins = reader.bool();
|
|
2013
2468
|
break;
|
|
2014
2469
|
}
|
|
2015
2470
|
default:
|
|
@@ -2019,12 +2474,12 @@ var sesame = $root.sesame = (() => {
|
|
|
2019
2474
|
}
|
|
2020
2475
|
return message;
|
|
2021
2476
|
};
|
|
2022
|
-
|
|
2477
|
+
AudioMixerOutputStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
2023
2478
|
if (!(reader instanceof $Reader))
|
|
2024
2479
|
reader = new $Reader(reader);
|
|
2025
2480
|
return this.decode(reader, reader.uint32());
|
|
2026
2481
|
};
|
|
2027
|
-
|
|
2482
|
+
AudioMixerOutputStatus.verify = function verify(message) {
|
|
2028
2483
|
if (typeof message !== "object" || message === null)
|
|
2029
2484
|
return "object expected";
|
|
2030
2485
|
if (message.id != null && message.hasOwnProperty("id")) {
|
|
@@ -2047,15 +2502,321 @@ var sesame = $root.sesame = (() => {
|
|
|
2047
2502
|
if (typeof message.vu[i] !== "number")
|
|
2048
2503
|
return "vu: number[] expected";
|
|
2049
2504
|
}
|
|
2050
|
-
if (message.
|
|
2051
|
-
if (!Array.isArray(message.
|
|
2052
|
-
return "
|
|
2053
|
-
for (let i = 0; i < message.
|
|
2054
|
-
|
|
2505
|
+
if (message.excludedChannelIds != null && message.hasOwnProperty("excludedChannelIds")) {
|
|
2506
|
+
if (!Array.isArray(message.excludedChannelIds))
|
|
2507
|
+
return "excludedChannelIds: array expected";
|
|
2508
|
+
for (let i = 0; i < message.excludedChannelIds.length; ++i)
|
|
2509
|
+
if (!$util.isString(message.excludedChannelIds[i]))
|
|
2510
|
+
return "excludedChannelIds: string[] expected";
|
|
2511
|
+
}
|
|
2512
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins")) {
|
|
2513
|
+
if (typeof message.includeMasterPlugins !== "boolean")
|
|
2514
|
+
return "includeMasterPlugins: boolean expected";
|
|
2515
|
+
}
|
|
2516
|
+
return null;
|
|
2517
|
+
};
|
|
2518
|
+
AudioMixerOutputStatus.fromObject = function fromObject(object) {
|
|
2519
|
+
if (object instanceof $root.sesame.v1.audio.AudioMixerOutputStatus)
|
|
2520
|
+
return object;
|
|
2521
|
+
let message = new $root.sesame.v1.audio.AudioMixerOutputStatus();
|
|
2522
|
+
if (object.id != null)
|
|
2523
|
+
message.id = String(object.id);
|
|
2524
|
+
switch (object.outputType) {
|
|
2525
|
+
default:
|
|
2526
|
+
if (typeof object.outputType === "number") {
|
|
2527
|
+
message.outputType = object.outputType;
|
|
2528
|
+
break;
|
|
2529
|
+
}
|
|
2530
|
+
break;
|
|
2531
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED":
|
|
2532
|
+
case 0:
|
|
2533
|
+
message.outputType = 0;
|
|
2534
|
+
break;
|
|
2535
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_MONO":
|
|
2536
|
+
case 1:
|
|
2537
|
+
message.outputType = 1;
|
|
2538
|
+
break;
|
|
2539
|
+
case "AUDIO_MIXER_CHANNEL_TYPE_STEREO":
|
|
2540
|
+
case 2:
|
|
2541
|
+
message.outputType = 2;
|
|
2542
|
+
break;
|
|
2543
|
+
}
|
|
2544
|
+
if (object.vu) {
|
|
2545
|
+
if (!Array.isArray(object.vu))
|
|
2546
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.vu: array expected");
|
|
2547
|
+
message.vu = [];
|
|
2548
|
+
for (let i = 0; i < object.vu.length; ++i)
|
|
2549
|
+
message.vu[i] = Number(object.vu[i]);
|
|
2550
|
+
}
|
|
2551
|
+
if (object.excludedChannelIds) {
|
|
2552
|
+
if (!Array.isArray(object.excludedChannelIds))
|
|
2553
|
+
throw TypeError(".sesame.v1.audio.AudioMixerOutputStatus.excludedChannelIds: array expected");
|
|
2554
|
+
message.excludedChannelIds = [];
|
|
2555
|
+
for (let i = 0; i < object.excludedChannelIds.length; ++i)
|
|
2556
|
+
message.excludedChannelIds[i] = String(object.excludedChannelIds[i]);
|
|
2557
|
+
}
|
|
2558
|
+
if (object.includeMasterPlugins != null)
|
|
2559
|
+
message.includeMasterPlugins = Boolean(object.includeMasterPlugins);
|
|
2560
|
+
return message;
|
|
2561
|
+
};
|
|
2562
|
+
AudioMixerOutputStatus.toObject = function toObject(message, options) {
|
|
2563
|
+
if (!options)
|
|
2564
|
+
options = {};
|
|
2565
|
+
let object = {};
|
|
2566
|
+
if (options.arrays || options.defaults) {
|
|
2567
|
+
object.vu = [];
|
|
2568
|
+
object.excludedChannelIds = [];
|
|
2569
|
+
}
|
|
2570
|
+
if (options.defaults) {
|
|
2571
|
+
object.id = "";
|
|
2572
|
+
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
2573
|
+
object.includeMasterPlugins = false;
|
|
2574
|
+
}
|
|
2575
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2576
|
+
object.id = message.id;
|
|
2577
|
+
if (message.outputType != null && message.hasOwnProperty("outputType"))
|
|
2578
|
+
object.outputType = options.enums === String ? $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] === void 0 ? message.outputType : $root.sesame.v1.audio.AudioMixerChannelType[message.outputType] : message.outputType;
|
|
2579
|
+
if (message.vu && message.vu.length) {
|
|
2580
|
+
object.vu = [];
|
|
2581
|
+
for (let j = 0; j < message.vu.length; ++j)
|
|
2582
|
+
object.vu[j] = options.json && !isFinite(message.vu[j]) ? String(message.vu[j]) : message.vu[j];
|
|
2583
|
+
}
|
|
2584
|
+
if (message.excludedChannelIds && message.excludedChannelIds.length) {
|
|
2585
|
+
object.excludedChannelIds = [];
|
|
2586
|
+
for (let j = 0; j < message.excludedChannelIds.length; ++j)
|
|
2587
|
+
object.excludedChannelIds[j] = message.excludedChannelIds[j];
|
|
2588
|
+
}
|
|
2589
|
+
if (message.includeMasterPlugins != null && message.hasOwnProperty("includeMasterPlugins"))
|
|
2590
|
+
object.includeMasterPlugins = message.includeMasterPlugins;
|
|
2591
|
+
return object;
|
|
2592
|
+
};
|
|
2593
|
+
AudioMixerOutputStatus.prototype.toJSON = function toJSON() {
|
|
2594
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
2595
|
+
};
|
|
2596
|
+
AudioMixerOutputStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2597
|
+
if (typeUrlPrefix === void 0) {
|
|
2598
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2599
|
+
}
|
|
2600
|
+
return typeUrlPrefix + "/sesame.v1.audio.AudioMixerOutputStatus";
|
|
2601
|
+
};
|
|
2602
|
+
return AudioMixerOutputStatus;
|
|
2603
|
+
}();
|
|
2604
|
+
audio.AudioMixerStatus = function() {
|
|
2605
|
+
function AudioMixerStatus(properties) {
|
|
2606
|
+
this.vu = [];
|
|
2607
|
+
this.channels = [];
|
|
2608
|
+
this.masterPlugins = [];
|
|
2609
|
+
this.outputs = [];
|
|
2610
|
+
if (properties) {
|
|
2611
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2612
|
+
if (properties[keys[i]] != null)
|
|
2613
|
+
this[keys[i]] = properties[keys[i]];
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
AudioMixerStatus.prototype.id = "";
|
|
2617
|
+
AudioMixerStatus.prototype.outputType = 0;
|
|
2618
|
+
AudioMixerStatus.prototype.vu = $util.emptyArray;
|
|
2619
|
+
AudioMixerStatus.prototype.channels = $util.emptyArray;
|
|
2620
|
+
AudioMixerStatus.prototype.masterLevel = 0;
|
|
2621
|
+
AudioMixerStatus.prototype.masterAutomationLevel = 0;
|
|
2622
|
+
AudioMixerStatus.prototype.masterEffectiveLevel = 0;
|
|
2623
|
+
AudioMixerStatus.prototype.masterPlugins = $util.emptyArray;
|
|
2624
|
+
AudioMixerStatus.prototype.outputs = $util.emptyArray;
|
|
2625
|
+
AudioMixerStatus.create = function create(properties) {
|
|
2626
|
+
return new AudioMixerStatus(properties);
|
|
2627
|
+
};
|
|
2628
|
+
AudioMixerStatus.encode = function encode(message, writer) {
|
|
2629
|
+
if (!writer)
|
|
2630
|
+
writer = $Writer.create();
|
|
2631
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
2632
|
+
writer.uint32(
|
|
2633
|
+
/* id 1, wireType 2 =*/
|
|
2634
|
+
10
|
|
2635
|
+
).string(message.id);
|
|
2636
|
+
if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType"))
|
|
2637
|
+
writer.uint32(
|
|
2638
|
+
/* id 2, wireType 0 =*/
|
|
2639
|
+
16
|
|
2640
|
+
).int32(message.outputType);
|
|
2641
|
+
if (message.vu != null && message.vu.length) {
|
|
2642
|
+
writer.uint32(
|
|
2643
|
+
/* id 3, wireType 2 =*/
|
|
2644
|
+
26
|
|
2645
|
+
).fork();
|
|
2646
|
+
for (let i = 0; i < message.vu.length; ++i)
|
|
2647
|
+
writer.float(message.vu[i]);
|
|
2648
|
+
writer.ldelim();
|
|
2649
|
+
}
|
|
2650
|
+
if (message.channels != null && message.channels.length)
|
|
2651
|
+
for (let i = 0; i < message.channels.length; ++i)
|
|
2652
|
+
$root.sesame.v1.audio.AudioChannelStatus.encode(message.channels[i], writer.uint32(
|
|
2653
|
+
/* id 4, wireType 2 =*/
|
|
2654
|
+
34
|
|
2655
|
+
).fork()).ldelim();
|
|
2656
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
2657
|
+
writer.uint32(
|
|
2658
|
+
/* id 5, wireType 5 =*/
|
|
2659
|
+
45
|
|
2660
|
+
).float(message.masterLevel);
|
|
2661
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
2662
|
+
writer.uint32(
|
|
2663
|
+
/* id 6, wireType 5 =*/
|
|
2664
|
+
53
|
|
2665
|
+
).float(message.masterAutomationLevel);
|
|
2666
|
+
if (message.masterEffectiveLevel != null && Object.hasOwnProperty.call(message, "masterEffectiveLevel"))
|
|
2667
|
+
writer.uint32(
|
|
2668
|
+
/* id 7, wireType 5 =*/
|
|
2669
|
+
61
|
|
2670
|
+
).float(message.masterEffectiveLevel);
|
|
2671
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
2672
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
2673
|
+
$root.sesame.v1.audio.AudioChannelPluginStatus.encode(message.masterPlugins[i], writer.uint32(
|
|
2674
|
+
/* id 8, wireType 2 =*/
|
|
2675
|
+
66
|
|
2676
|
+
).fork()).ldelim();
|
|
2677
|
+
if (message.outputs != null && message.outputs.length)
|
|
2678
|
+
for (let i = 0; i < message.outputs.length; ++i)
|
|
2679
|
+
$root.sesame.v1.audio.AudioMixerOutputStatus.encode(message.outputs[i], writer.uint32(
|
|
2680
|
+
/* id 9, wireType 2 =*/
|
|
2681
|
+
74
|
|
2682
|
+
).fork()).ldelim();
|
|
2683
|
+
return writer;
|
|
2684
|
+
};
|
|
2685
|
+
AudioMixerStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2686
|
+
return this.encode(message, writer).ldelim();
|
|
2687
|
+
};
|
|
2688
|
+
AudioMixerStatus.decode = function decode(reader, length, error) {
|
|
2689
|
+
if (!(reader instanceof $Reader))
|
|
2690
|
+
reader = $Reader.create(reader);
|
|
2691
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.audio.AudioMixerStatus();
|
|
2692
|
+
while (reader.pos < end) {
|
|
2693
|
+
let tag = reader.uint32();
|
|
2694
|
+
if (tag === error)
|
|
2695
|
+
break;
|
|
2696
|
+
switch (tag >>> 3) {
|
|
2697
|
+
case 1: {
|
|
2698
|
+
message.id = reader.string();
|
|
2699
|
+
break;
|
|
2700
|
+
}
|
|
2701
|
+
case 2: {
|
|
2702
|
+
message.outputType = reader.int32();
|
|
2703
|
+
break;
|
|
2704
|
+
}
|
|
2705
|
+
case 3: {
|
|
2706
|
+
if (!(message.vu && message.vu.length))
|
|
2707
|
+
message.vu = [];
|
|
2708
|
+
if ((tag & 7) === 2) {
|
|
2709
|
+
let end2 = reader.uint32() + reader.pos;
|
|
2710
|
+
while (reader.pos < end2)
|
|
2711
|
+
message.vu.push(reader.float());
|
|
2712
|
+
} else
|
|
2713
|
+
message.vu.push(reader.float());
|
|
2714
|
+
break;
|
|
2715
|
+
}
|
|
2716
|
+
case 4: {
|
|
2717
|
+
if (!(message.channels && message.channels.length))
|
|
2718
|
+
message.channels = [];
|
|
2719
|
+
message.channels.push($root.sesame.v1.audio.AudioChannelStatus.decode(reader, reader.uint32()));
|
|
2720
|
+
break;
|
|
2721
|
+
}
|
|
2722
|
+
case 5: {
|
|
2723
|
+
message.masterLevel = reader.float();
|
|
2724
|
+
break;
|
|
2725
|
+
}
|
|
2726
|
+
case 6: {
|
|
2727
|
+
message.masterAutomationLevel = reader.float();
|
|
2728
|
+
break;
|
|
2729
|
+
}
|
|
2730
|
+
case 7: {
|
|
2731
|
+
message.masterEffectiveLevel = reader.float();
|
|
2732
|
+
break;
|
|
2733
|
+
}
|
|
2734
|
+
case 8: {
|
|
2735
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
2736
|
+
message.masterPlugins = [];
|
|
2737
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioChannelPluginStatus.decode(reader, reader.uint32()));
|
|
2738
|
+
break;
|
|
2739
|
+
}
|
|
2740
|
+
case 9: {
|
|
2741
|
+
if (!(message.outputs && message.outputs.length))
|
|
2742
|
+
message.outputs = [];
|
|
2743
|
+
message.outputs.push($root.sesame.v1.audio.AudioMixerOutputStatus.decode(reader, reader.uint32()));
|
|
2744
|
+
break;
|
|
2745
|
+
}
|
|
2746
|
+
default:
|
|
2747
|
+
reader.skipType(tag & 7);
|
|
2748
|
+
break;
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
return message;
|
|
2752
|
+
};
|
|
2753
|
+
AudioMixerStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
2754
|
+
if (!(reader instanceof $Reader))
|
|
2755
|
+
reader = new $Reader(reader);
|
|
2756
|
+
return this.decode(reader, reader.uint32());
|
|
2757
|
+
};
|
|
2758
|
+
AudioMixerStatus.verify = function verify(message) {
|
|
2759
|
+
if (typeof message !== "object" || message === null)
|
|
2760
|
+
return "object expected";
|
|
2761
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
2762
|
+
if (!$util.isString(message.id))
|
|
2763
|
+
return "id: string expected";
|
|
2764
|
+
}
|
|
2765
|
+
if (message.outputType != null && message.hasOwnProperty("outputType"))
|
|
2766
|
+
switch (message.outputType) {
|
|
2767
|
+
default:
|
|
2768
|
+
return "outputType: enum value expected";
|
|
2769
|
+
case 0:
|
|
2770
|
+
case 1:
|
|
2771
|
+
case 2:
|
|
2772
|
+
break;
|
|
2773
|
+
}
|
|
2774
|
+
if (message.vu != null && message.hasOwnProperty("vu")) {
|
|
2775
|
+
if (!Array.isArray(message.vu))
|
|
2776
|
+
return "vu: array expected";
|
|
2777
|
+
for (let i = 0; i < message.vu.length; ++i)
|
|
2778
|
+
if (typeof message.vu[i] !== "number")
|
|
2779
|
+
return "vu: number[] expected";
|
|
2780
|
+
}
|
|
2781
|
+
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
2782
|
+
if (!Array.isArray(message.channels))
|
|
2783
|
+
return "channels: array expected";
|
|
2784
|
+
for (let i = 0; i < message.channels.length; ++i) {
|
|
2785
|
+
let error = $root.sesame.v1.audio.AudioChannelStatus.verify(message.channels[i]);
|
|
2055
2786
|
if (error)
|
|
2056
2787
|
return "channels." + error;
|
|
2057
2788
|
}
|
|
2058
2789
|
}
|
|
2790
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
2791
|
+
if (typeof message.masterLevel !== "number")
|
|
2792
|
+
return "masterLevel: number expected";
|
|
2793
|
+
}
|
|
2794
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
2795
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
2796
|
+
return "masterAutomationLevel: number expected";
|
|
2797
|
+
}
|
|
2798
|
+
if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel")) {
|
|
2799
|
+
if (typeof message.masterEffectiveLevel !== "number")
|
|
2800
|
+
return "masterEffectiveLevel: number expected";
|
|
2801
|
+
}
|
|
2802
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
2803
|
+
if (!Array.isArray(message.masterPlugins))
|
|
2804
|
+
return "masterPlugins: array expected";
|
|
2805
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
2806
|
+
let error = $root.sesame.v1.audio.AudioChannelPluginStatus.verify(message.masterPlugins[i]);
|
|
2807
|
+
if (error)
|
|
2808
|
+
return "masterPlugins." + error;
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
if (message.outputs != null && message.hasOwnProperty("outputs")) {
|
|
2812
|
+
if (!Array.isArray(message.outputs))
|
|
2813
|
+
return "outputs: array expected";
|
|
2814
|
+
for (let i = 0; i < message.outputs.length; ++i) {
|
|
2815
|
+
let error = $root.sesame.v1.audio.AudioMixerOutputStatus.verify(message.outputs[i]);
|
|
2816
|
+
if (error)
|
|
2817
|
+
return "outputs." + error;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2059
2820
|
return null;
|
|
2060
2821
|
};
|
|
2061
2822
|
AudioMixerStatus.fromObject = function fromObject(object) {
|
|
@@ -2101,6 +2862,32 @@ var sesame = $root.sesame = (() => {
|
|
|
2101
2862
|
message.channels[i] = $root.sesame.v1.audio.AudioChannelStatus.fromObject(object.channels[i]);
|
|
2102
2863
|
}
|
|
2103
2864
|
}
|
|
2865
|
+
if (object.masterLevel != null)
|
|
2866
|
+
message.masterLevel = Number(object.masterLevel);
|
|
2867
|
+
if (object.masterAutomationLevel != null)
|
|
2868
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
2869
|
+
if (object.masterEffectiveLevel != null)
|
|
2870
|
+
message.masterEffectiveLevel = Number(object.masterEffectiveLevel);
|
|
2871
|
+
if (object.masterPlugins) {
|
|
2872
|
+
if (!Array.isArray(object.masterPlugins))
|
|
2873
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: array expected");
|
|
2874
|
+
message.masterPlugins = [];
|
|
2875
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
2876
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
2877
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.masterPlugins: object expected");
|
|
2878
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioChannelPluginStatus.fromObject(object.masterPlugins[i]);
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
if (object.outputs) {
|
|
2882
|
+
if (!Array.isArray(object.outputs))
|
|
2883
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: array expected");
|
|
2884
|
+
message.outputs = [];
|
|
2885
|
+
for (let i = 0; i < object.outputs.length; ++i) {
|
|
2886
|
+
if (typeof object.outputs[i] !== "object")
|
|
2887
|
+
throw TypeError(".sesame.v1.audio.AudioMixerStatus.outputs: object expected");
|
|
2888
|
+
message.outputs[i] = $root.sesame.v1.audio.AudioMixerOutputStatus.fromObject(object.outputs[i]);
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2104
2891
|
return message;
|
|
2105
2892
|
};
|
|
2106
2893
|
AudioMixerStatus.toObject = function toObject(message, options) {
|
|
@@ -2110,10 +2897,15 @@ var sesame = $root.sesame = (() => {
|
|
|
2110
2897
|
if (options.arrays || options.defaults) {
|
|
2111
2898
|
object.vu = [];
|
|
2112
2899
|
object.channels = [];
|
|
2900
|
+
object.masterPlugins = [];
|
|
2901
|
+
object.outputs = [];
|
|
2113
2902
|
}
|
|
2114
2903
|
if (options.defaults) {
|
|
2115
2904
|
object.id = "";
|
|
2116
2905
|
object.outputType = options.enums === String ? "AUDIO_MIXER_CHANNEL_TYPE_UNSPECIFIED" : 0;
|
|
2906
|
+
object.masterLevel = 0;
|
|
2907
|
+
object.masterAutomationLevel = 0;
|
|
2908
|
+
object.masterEffectiveLevel = 0;
|
|
2117
2909
|
}
|
|
2118
2910
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
2119
2911
|
object.id = message.id;
|
|
@@ -2129,6 +2921,22 @@ var sesame = $root.sesame = (() => {
|
|
|
2129
2921
|
for (let j = 0; j < message.channels.length; ++j)
|
|
2130
2922
|
object.channels[j] = $root.sesame.v1.audio.AudioChannelStatus.toObject(message.channels[j], options);
|
|
2131
2923
|
}
|
|
2924
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel"))
|
|
2925
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
2926
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel"))
|
|
2927
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
2928
|
+
if (message.masterEffectiveLevel != null && message.hasOwnProperty("masterEffectiveLevel"))
|
|
2929
|
+
object.masterEffectiveLevel = options.json && !isFinite(message.masterEffectiveLevel) ? String(message.masterEffectiveLevel) : message.masterEffectiveLevel;
|
|
2930
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
2931
|
+
object.masterPlugins = [];
|
|
2932
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
2933
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioChannelPluginStatus.toObject(message.masterPlugins[j], options);
|
|
2934
|
+
}
|
|
2935
|
+
if (message.outputs && message.outputs.length) {
|
|
2936
|
+
object.outputs = [];
|
|
2937
|
+
for (let j = 0; j < message.outputs.length; ++j)
|
|
2938
|
+
object.outputs[j] = $root.sesame.v1.audio.AudioMixerOutputStatus.toObject(message.outputs[j], options);
|
|
2939
|
+
}
|
|
2132
2940
|
return object;
|
|
2133
2941
|
};
|
|
2134
2942
|
AudioMixerStatus.prototype.toJSON = function toJSON() {
|
|
@@ -2283,6 +3091,9 @@ var sesame = $root.sesame = (() => {
|
|
|
2283
3091
|
AudioChannelControlRequest.prototype.level = null;
|
|
2284
3092
|
AudioChannelControlRequest.prototype.pan = null;
|
|
2285
3093
|
AudioChannelControlRequest.prototype.plugins = $util.emptyArray;
|
|
3094
|
+
AudioChannelControlRequest.prototype.mute = null;
|
|
3095
|
+
AudioChannelControlRequest.prototype.automationLevel = null;
|
|
3096
|
+
AudioChannelControlRequest.prototype.automationMute = null;
|
|
2286
3097
|
let $oneOfFields;
|
|
2287
3098
|
Object.defineProperty(AudioChannelControlRequest.prototype, "_level", {
|
|
2288
3099
|
get: $util.oneOfGetter($oneOfFields = ["level"]),
|
|
@@ -2292,11 +3103,23 @@ var sesame = $root.sesame = (() => {
|
|
|
2292
3103
|
get: $util.oneOfGetter($oneOfFields = ["pan"]),
|
|
2293
3104
|
set: $util.oneOfSetter($oneOfFields)
|
|
2294
3105
|
});
|
|
2295
|
-
AudioChannelControlRequest.
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
3106
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_mute", {
|
|
3107
|
+
get: $util.oneOfGetter($oneOfFields = ["mute"]),
|
|
3108
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3109
|
+
});
|
|
3110
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_automationLevel", {
|
|
3111
|
+
get: $util.oneOfGetter($oneOfFields = ["automationLevel"]),
|
|
3112
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3113
|
+
});
|
|
3114
|
+
Object.defineProperty(AudioChannelControlRequest.prototype, "_automationMute", {
|
|
3115
|
+
get: $util.oneOfGetter($oneOfFields = ["automationMute"]),
|
|
3116
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3117
|
+
});
|
|
3118
|
+
AudioChannelControlRequest.create = function create(properties) {
|
|
3119
|
+
return new AudioChannelControlRequest(properties);
|
|
3120
|
+
};
|
|
3121
|
+
AudioChannelControlRequest.encode = function encode(message, writer) {
|
|
3122
|
+
if (!writer)
|
|
2300
3123
|
writer = $Writer.create();
|
|
2301
3124
|
if (message.channelId != null && Object.hasOwnProperty.call(message, "channelId"))
|
|
2302
3125
|
writer.uint32(
|
|
@@ -2319,6 +3142,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2319
3142
|
/* id 4, wireType 2 =*/
|
|
2320
3143
|
34
|
|
2321
3144
|
).fork()).ldelim();
|
|
3145
|
+
if (message.mute != null && Object.hasOwnProperty.call(message, "mute"))
|
|
3146
|
+
writer.uint32(
|
|
3147
|
+
/* id 5, wireType 0 =*/
|
|
3148
|
+
40
|
|
3149
|
+
).bool(message.mute);
|
|
3150
|
+
if (message.automationLevel != null && Object.hasOwnProperty.call(message, "automationLevel"))
|
|
3151
|
+
writer.uint32(
|
|
3152
|
+
/* id 6, wireType 5 =*/
|
|
3153
|
+
53
|
|
3154
|
+
).float(message.automationLevel);
|
|
3155
|
+
if (message.automationMute != null && Object.hasOwnProperty.call(message, "automationMute"))
|
|
3156
|
+
writer.uint32(
|
|
3157
|
+
/* id 7, wireType 0 =*/
|
|
3158
|
+
56
|
|
3159
|
+
).bool(message.automationMute);
|
|
2322
3160
|
return writer;
|
|
2323
3161
|
};
|
|
2324
3162
|
AudioChannelControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2351,6 +3189,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2351
3189
|
message.plugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
|
|
2352
3190
|
break;
|
|
2353
3191
|
}
|
|
3192
|
+
case 5: {
|
|
3193
|
+
message.mute = reader.bool();
|
|
3194
|
+
break;
|
|
3195
|
+
}
|
|
3196
|
+
case 6: {
|
|
3197
|
+
message.automationLevel = reader.float();
|
|
3198
|
+
break;
|
|
3199
|
+
}
|
|
3200
|
+
case 7: {
|
|
3201
|
+
message.automationMute = reader.bool();
|
|
3202
|
+
break;
|
|
3203
|
+
}
|
|
2354
3204
|
default:
|
|
2355
3205
|
reader.skipType(tag & 7);
|
|
2356
3206
|
break;
|
|
@@ -2390,6 +3240,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2390
3240
|
return "plugins." + error;
|
|
2391
3241
|
}
|
|
2392
3242
|
}
|
|
3243
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
3244
|
+
properties._mute = 1;
|
|
3245
|
+
if (typeof message.mute !== "boolean")
|
|
3246
|
+
return "mute: boolean expected";
|
|
3247
|
+
}
|
|
3248
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
3249
|
+
properties._automationLevel = 1;
|
|
3250
|
+
if (typeof message.automationLevel !== "number")
|
|
3251
|
+
return "automationLevel: number expected";
|
|
3252
|
+
}
|
|
3253
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
3254
|
+
properties._automationMute = 1;
|
|
3255
|
+
if (typeof message.automationMute !== "boolean")
|
|
3256
|
+
return "automationMute: boolean expected";
|
|
3257
|
+
}
|
|
2393
3258
|
return null;
|
|
2394
3259
|
};
|
|
2395
3260
|
AudioChannelControlRequest.fromObject = function fromObject(object) {
|
|
@@ -2412,6 +3277,12 @@ var sesame = $root.sesame = (() => {
|
|
|
2412
3277
|
message.plugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.plugins[i]);
|
|
2413
3278
|
}
|
|
2414
3279
|
}
|
|
3280
|
+
if (object.mute != null)
|
|
3281
|
+
message.mute = Boolean(object.mute);
|
|
3282
|
+
if (object.automationLevel != null)
|
|
3283
|
+
message.automationLevel = Number(object.automationLevel);
|
|
3284
|
+
if (object.automationMute != null)
|
|
3285
|
+
message.automationMute = Boolean(object.automationMute);
|
|
2415
3286
|
return message;
|
|
2416
3287
|
};
|
|
2417
3288
|
AudioChannelControlRequest.toObject = function toObject(message, options) {
|
|
@@ -2439,6 +3310,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2439
3310
|
for (let j = 0; j < message.plugins.length; ++j)
|
|
2440
3311
|
object.plugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.plugins[j], options);
|
|
2441
3312
|
}
|
|
3313
|
+
if (message.mute != null && message.hasOwnProperty("mute")) {
|
|
3314
|
+
object.mute = message.mute;
|
|
3315
|
+
if (options.oneofs)
|
|
3316
|
+
object._mute = "mute";
|
|
3317
|
+
}
|
|
3318
|
+
if (message.automationLevel != null && message.hasOwnProperty("automationLevel")) {
|
|
3319
|
+
object.automationLevel = options.json && !isFinite(message.automationLevel) ? String(message.automationLevel) : message.automationLevel;
|
|
3320
|
+
if (options.oneofs)
|
|
3321
|
+
object._automationLevel = "automationLevel";
|
|
3322
|
+
}
|
|
3323
|
+
if (message.automationMute != null && message.hasOwnProperty("automationMute")) {
|
|
3324
|
+
object.automationMute = message.automationMute;
|
|
3325
|
+
if (options.oneofs)
|
|
3326
|
+
object._automationMute = "automationMute";
|
|
3327
|
+
}
|
|
2442
3328
|
return object;
|
|
2443
3329
|
};
|
|
2444
3330
|
AudioChannelControlRequest.prototype.toJSON = function toJSON() {
|
|
@@ -2455,6 +3341,7 @@ var sesame = $root.sesame = (() => {
|
|
|
2455
3341
|
audio.AudioControlRequest = function() {
|
|
2456
3342
|
function AudioControlRequest(properties) {
|
|
2457
3343
|
this.channels = [];
|
|
3344
|
+
this.masterPlugins = [];
|
|
2458
3345
|
if (properties) {
|
|
2459
3346
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2460
3347
|
if (properties[keys[i]] != null)
|
|
@@ -2462,6 +3349,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2462
3349
|
}
|
|
2463
3350
|
}
|
|
2464
3351
|
AudioControlRequest.prototype.channels = $util.emptyArray;
|
|
3352
|
+
AudioControlRequest.prototype.masterLevel = null;
|
|
3353
|
+
AudioControlRequest.prototype.masterAutomationLevel = null;
|
|
3354
|
+
AudioControlRequest.prototype.masterPlugins = $util.emptyArray;
|
|
3355
|
+
let $oneOfFields;
|
|
3356
|
+
Object.defineProperty(AudioControlRequest.prototype, "_masterLevel", {
|
|
3357
|
+
get: $util.oneOfGetter($oneOfFields = ["masterLevel"]),
|
|
3358
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3359
|
+
});
|
|
3360
|
+
Object.defineProperty(AudioControlRequest.prototype, "_masterAutomationLevel", {
|
|
3361
|
+
get: $util.oneOfGetter($oneOfFields = ["masterAutomationLevel"]),
|
|
3362
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3363
|
+
});
|
|
2465
3364
|
AudioControlRequest.create = function create(properties) {
|
|
2466
3365
|
return new AudioControlRequest(properties);
|
|
2467
3366
|
};
|
|
@@ -2474,6 +3373,22 @@ var sesame = $root.sesame = (() => {
|
|
|
2474
3373
|
/* id 1, wireType 2 =*/
|
|
2475
3374
|
10
|
|
2476
3375
|
).fork()).ldelim();
|
|
3376
|
+
if (message.masterLevel != null && Object.hasOwnProperty.call(message, "masterLevel"))
|
|
3377
|
+
writer.uint32(
|
|
3378
|
+
/* id 2, wireType 5 =*/
|
|
3379
|
+
21
|
|
3380
|
+
).float(message.masterLevel);
|
|
3381
|
+
if (message.masterAutomationLevel != null && Object.hasOwnProperty.call(message, "masterAutomationLevel"))
|
|
3382
|
+
writer.uint32(
|
|
3383
|
+
/* id 3, wireType 5 =*/
|
|
3384
|
+
29
|
|
3385
|
+
).float(message.masterAutomationLevel);
|
|
3386
|
+
if (message.masterPlugins != null && message.masterPlugins.length)
|
|
3387
|
+
for (let i = 0; i < message.masterPlugins.length; ++i)
|
|
3388
|
+
$root.sesame.v1.audio.AudioPluginControlRequest.encode(message.masterPlugins[i], writer.uint32(
|
|
3389
|
+
/* id 4, wireType 2 =*/
|
|
3390
|
+
34
|
|
3391
|
+
).fork()).ldelim();
|
|
2477
3392
|
return writer;
|
|
2478
3393
|
};
|
|
2479
3394
|
AudioControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2494,6 +3409,20 @@ var sesame = $root.sesame = (() => {
|
|
|
2494
3409
|
message.channels.push($root.sesame.v1.audio.AudioChannelControlRequest.decode(reader, reader.uint32()));
|
|
2495
3410
|
break;
|
|
2496
3411
|
}
|
|
3412
|
+
case 2: {
|
|
3413
|
+
message.masterLevel = reader.float();
|
|
3414
|
+
break;
|
|
3415
|
+
}
|
|
3416
|
+
case 3: {
|
|
3417
|
+
message.masterAutomationLevel = reader.float();
|
|
3418
|
+
break;
|
|
3419
|
+
}
|
|
3420
|
+
case 4: {
|
|
3421
|
+
if (!(message.masterPlugins && message.masterPlugins.length))
|
|
3422
|
+
message.masterPlugins = [];
|
|
3423
|
+
message.masterPlugins.push($root.sesame.v1.audio.AudioPluginControlRequest.decode(reader, reader.uint32()));
|
|
3424
|
+
break;
|
|
3425
|
+
}
|
|
2497
3426
|
default:
|
|
2498
3427
|
reader.skipType(tag & 7);
|
|
2499
3428
|
break;
|
|
@@ -2509,6 +3438,7 @@ var sesame = $root.sesame = (() => {
|
|
|
2509
3438
|
AudioControlRequest.verify = function verify(message) {
|
|
2510
3439
|
if (typeof message !== "object" || message === null)
|
|
2511
3440
|
return "object expected";
|
|
3441
|
+
let properties = {};
|
|
2512
3442
|
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
2513
3443
|
if (!Array.isArray(message.channels))
|
|
2514
3444
|
return "channels: array expected";
|
|
@@ -2518,6 +3448,25 @@ var sesame = $root.sesame = (() => {
|
|
|
2518
3448
|
return "channels." + error;
|
|
2519
3449
|
}
|
|
2520
3450
|
}
|
|
3451
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
3452
|
+
properties._masterLevel = 1;
|
|
3453
|
+
if (typeof message.masterLevel !== "number")
|
|
3454
|
+
return "masterLevel: number expected";
|
|
3455
|
+
}
|
|
3456
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
3457
|
+
properties._masterAutomationLevel = 1;
|
|
3458
|
+
if (typeof message.masterAutomationLevel !== "number")
|
|
3459
|
+
return "masterAutomationLevel: number expected";
|
|
3460
|
+
}
|
|
3461
|
+
if (message.masterPlugins != null && message.hasOwnProperty("masterPlugins")) {
|
|
3462
|
+
if (!Array.isArray(message.masterPlugins))
|
|
3463
|
+
return "masterPlugins: array expected";
|
|
3464
|
+
for (let i = 0; i < message.masterPlugins.length; ++i) {
|
|
3465
|
+
let error = $root.sesame.v1.audio.AudioPluginControlRequest.verify(message.masterPlugins[i]);
|
|
3466
|
+
if (error)
|
|
3467
|
+
return "masterPlugins." + error;
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
2521
3470
|
return null;
|
|
2522
3471
|
};
|
|
2523
3472
|
AudioControlRequest.fromObject = function fromObject(object) {
|
|
@@ -2534,19 +3483,50 @@ var sesame = $root.sesame = (() => {
|
|
|
2534
3483
|
message.channels[i] = $root.sesame.v1.audio.AudioChannelControlRequest.fromObject(object.channels[i]);
|
|
2535
3484
|
}
|
|
2536
3485
|
}
|
|
3486
|
+
if (object.masterLevel != null)
|
|
3487
|
+
message.masterLevel = Number(object.masterLevel);
|
|
3488
|
+
if (object.masterAutomationLevel != null)
|
|
3489
|
+
message.masterAutomationLevel = Number(object.masterAutomationLevel);
|
|
3490
|
+
if (object.masterPlugins) {
|
|
3491
|
+
if (!Array.isArray(object.masterPlugins))
|
|
3492
|
+
throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: array expected");
|
|
3493
|
+
message.masterPlugins = [];
|
|
3494
|
+
for (let i = 0; i < object.masterPlugins.length; ++i) {
|
|
3495
|
+
if (typeof object.masterPlugins[i] !== "object")
|
|
3496
|
+
throw TypeError(".sesame.v1.audio.AudioControlRequest.masterPlugins: object expected");
|
|
3497
|
+
message.masterPlugins[i] = $root.sesame.v1.audio.AudioPluginControlRequest.fromObject(object.masterPlugins[i]);
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
2537
3500
|
return message;
|
|
2538
3501
|
};
|
|
2539
3502
|
AudioControlRequest.toObject = function toObject(message, options) {
|
|
2540
3503
|
if (!options)
|
|
2541
3504
|
options = {};
|
|
2542
3505
|
let object = {};
|
|
2543
|
-
if (options.arrays || options.defaults)
|
|
3506
|
+
if (options.arrays || options.defaults) {
|
|
2544
3507
|
object.channels = [];
|
|
3508
|
+
object.masterPlugins = [];
|
|
3509
|
+
}
|
|
2545
3510
|
if (message.channels && message.channels.length) {
|
|
2546
3511
|
object.channels = [];
|
|
2547
3512
|
for (let j = 0; j < message.channels.length; ++j)
|
|
2548
3513
|
object.channels[j] = $root.sesame.v1.audio.AudioChannelControlRequest.toObject(message.channels[j], options);
|
|
2549
3514
|
}
|
|
3515
|
+
if (message.masterLevel != null && message.hasOwnProperty("masterLevel")) {
|
|
3516
|
+
object.masterLevel = options.json && !isFinite(message.masterLevel) ? String(message.masterLevel) : message.masterLevel;
|
|
3517
|
+
if (options.oneofs)
|
|
3518
|
+
object._masterLevel = "masterLevel";
|
|
3519
|
+
}
|
|
3520
|
+
if (message.masterAutomationLevel != null && message.hasOwnProperty("masterAutomationLevel")) {
|
|
3521
|
+
object.masterAutomationLevel = options.json && !isFinite(message.masterAutomationLevel) ? String(message.masterAutomationLevel) : message.masterAutomationLevel;
|
|
3522
|
+
if (options.oneofs)
|
|
3523
|
+
object._masterAutomationLevel = "masterAutomationLevel";
|
|
3524
|
+
}
|
|
3525
|
+
if (message.masterPlugins && message.masterPlugins.length) {
|
|
3526
|
+
object.masterPlugins = [];
|
|
3527
|
+
for (let j = 0; j < message.masterPlugins.length; ++j)
|
|
3528
|
+
object.masterPlugins[j] = $root.sesame.v1.audio.AudioPluginControlRequest.toObject(message.masterPlugins[j], options);
|
|
3529
|
+
}
|
|
2550
3530
|
return object;
|
|
2551
3531
|
};
|
|
2552
3532
|
AudioControlRequest.prototype.toJSON = function toJSON() {
|
|
@@ -2598,11 +3578,14 @@ var sesame = $root.sesame = (() => {
|
|
|
2598
3578
|
CommandListItem.prototype.callback = null;
|
|
2599
3579
|
CommandListItem.prototype.setSourceMetadata = null;
|
|
2600
3580
|
CommandListItem.prototype.setMetadataBindings = null;
|
|
3581
|
+
CommandListItem.prototype.addEncoder = null;
|
|
3582
|
+
CommandListItem.prototype.updateEncoder = null;
|
|
3583
|
+
CommandListItem.prototype.removeEncoder = null;
|
|
2601
3584
|
CommandListItem.prototype.transactionId = null;
|
|
2602
3585
|
CommandListItem.prototype.transactionDeps = $util.emptyArray;
|
|
2603
3586
|
let $oneOfFields;
|
|
2604
3587
|
Object.defineProperty(CommandListItem.prototype, "item", {
|
|
2605
|
-
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"]),
|
|
3588
|
+
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"]),
|
|
2606
3589
|
set: $util.oneOfSetter($oneOfFields)
|
|
2607
3590
|
});
|
|
2608
3591
|
Object.defineProperty(CommandListItem.prototype, "_transactionId", {
|
|
@@ -2754,6 +3737,21 @@ var sesame = $root.sesame = (() => {
|
|
|
2754
3737
|
/* id 27, wireType 2 =*/
|
|
2755
3738
|
218
|
|
2756
3739
|
).fork()).ldelim();
|
|
3740
|
+
if (message.addEncoder != null && Object.hasOwnProperty.call(message, "addEncoder"))
|
|
3741
|
+
$root.sesame.v1.outputs.EncoderAddRequest.encode(message.addEncoder, writer.uint32(
|
|
3742
|
+
/* id 28, wireType 2 =*/
|
|
3743
|
+
226
|
|
3744
|
+
).fork()).ldelim();
|
|
3745
|
+
if (message.updateEncoder != null && Object.hasOwnProperty.call(message, "updateEncoder"))
|
|
3746
|
+
$root.sesame.v1.outputs.EncoderUpdateRequest.encode(message.updateEncoder, writer.uint32(
|
|
3747
|
+
/* id 29, wireType 2 =*/
|
|
3748
|
+
234
|
|
3749
|
+
).fork()).ldelim();
|
|
3750
|
+
if (message.removeEncoder != null && Object.hasOwnProperty.call(message, "removeEncoder"))
|
|
3751
|
+
$root.sesame.v1.outputs.EncoderRemoveRequest.encode(message.removeEncoder, writer.uint32(
|
|
3752
|
+
/* id 30, wireType 2 =*/
|
|
3753
|
+
242
|
|
3754
|
+
).fork()).ldelim();
|
|
2757
3755
|
return writer;
|
|
2758
3756
|
};
|
|
2759
3757
|
CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -2868,6 +3866,18 @@ var sesame = $root.sesame = (() => {
|
|
|
2868
3866
|
message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.decode(reader, reader.uint32());
|
|
2869
3867
|
break;
|
|
2870
3868
|
}
|
|
3869
|
+
case 28: {
|
|
3870
|
+
message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.decode(reader, reader.uint32());
|
|
3871
|
+
break;
|
|
3872
|
+
}
|
|
3873
|
+
case 29: {
|
|
3874
|
+
message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.decode(reader, reader.uint32());
|
|
3875
|
+
break;
|
|
3876
|
+
}
|
|
3877
|
+
case 30: {
|
|
3878
|
+
message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.decode(reader, reader.uint32());
|
|
3879
|
+
break;
|
|
3880
|
+
}
|
|
2871
3881
|
case 25: {
|
|
2872
3882
|
message.transactionId = reader.uint32();
|
|
2873
3883
|
break;
|
|
@@ -3141,6 +4151,36 @@ var sesame = $root.sesame = (() => {
|
|
|
3141
4151
|
return "setMetadataBindings." + error;
|
|
3142
4152
|
}
|
|
3143
4153
|
}
|
|
4154
|
+
if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
|
|
4155
|
+
if (properties.item === 1)
|
|
4156
|
+
return "item: multiple values";
|
|
4157
|
+
properties.item = 1;
|
|
4158
|
+
{
|
|
4159
|
+
let error = $root.sesame.v1.outputs.EncoderAddRequest.verify(message.addEncoder);
|
|
4160
|
+
if (error)
|
|
4161
|
+
return "addEncoder." + error;
|
|
4162
|
+
}
|
|
4163
|
+
}
|
|
4164
|
+
if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
|
|
4165
|
+
if (properties.item === 1)
|
|
4166
|
+
return "item: multiple values";
|
|
4167
|
+
properties.item = 1;
|
|
4168
|
+
{
|
|
4169
|
+
let error = $root.sesame.v1.outputs.EncoderUpdateRequest.verify(message.updateEncoder);
|
|
4170
|
+
if (error)
|
|
4171
|
+
return "updateEncoder." + error;
|
|
4172
|
+
}
|
|
4173
|
+
}
|
|
4174
|
+
if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
|
|
4175
|
+
if (properties.item === 1)
|
|
4176
|
+
return "item: multiple values";
|
|
4177
|
+
properties.item = 1;
|
|
4178
|
+
{
|
|
4179
|
+
let error = $root.sesame.v1.outputs.EncoderRemoveRequest.verify(message.removeEncoder);
|
|
4180
|
+
if (error)
|
|
4181
|
+
return "removeEncoder." + error;
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
3144
4184
|
if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
|
|
3145
4185
|
properties._transactionId = 1;
|
|
3146
4186
|
if (!$util.isInteger(message.transactionId))
|
|
@@ -3289,6 +4329,21 @@ var sesame = $root.sesame = (() => {
|
|
|
3289
4329
|
throw TypeError(".sesame.v1.commands.CommandListItem.setMetadataBindings: object expected");
|
|
3290
4330
|
message.setMetadataBindings = $root.sesame.v1.commands.SetMetadataBindingsRequest.fromObject(object.setMetadataBindings);
|
|
3291
4331
|
}
|
|
4332
|
+
if (object.addEncoder != null) {
|
|
4333
|
+
if (typeof object.addEncoder !== "object")
|
|
4334
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.addEncoder: object expected");
|
|
4335
|
+
message.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.fromObject(object.addEncoder);
|
|
4336
|
+
}
|
|
4337
|
+
if (object.updateEncoder != null) {
|
|
4338
|
+
if (typeof object.updateEncoder !== "object")
|
|
4339
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.updateEncoder: object expected");
|
|
4340
|
+
message.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.fromObject(object.updateEncoder);
|
|
4341
|
+
}
|
|
4342
|
+
if (object.removeEncoder != null) {
|
|
4343
|
+
if (typeof object.removeEncoder !== "object")
|
|
4344
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.removeEncoder: object expected");
|
|
4345
|
+
message.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.fromObject(object.removeEncoder);
|
|
4346
|
+
}
|
|
3292
4347
|
if (object.transactionId != null)
|
|
3293
4348
|
message.transactionId = object.transactionId >>> 0;
|
|
3294
4349
|
if (object.transactionDeps) {
|
|
@@ -3447,6 +4502,21 @@ var sesame = $root.sesame = (() => {
|
|
|
3447
4502
|
if (options.oneofs)
|
|
3448
4503
|
object.item = "setMetadataBindings";
|
|
3449
4504
|
}
|
|
4505
|
+
if (message.addEncoder != null && message.hasOwnProperty("addEncoder")) {
|
|
4506
|
+
object.addEncoder = $root.sesame.v1.outputs.EncoderAddRequest.toObject(message.addEncoder, options);
|
|
4507
|
+
if (options.oneofs)
|
|
4508
|
+
object.item = "addEncoder";
|
|
4509
|
+
}
|
|
4510
|
+
if (message.updateEncoder != null && message.hasOwnProperty("updateEncoder")) {
|
|
4511
|
+
object.updateEncoder = $root.sesame.v1.outputs.EncoderUpdateRequest.toObject(message.updateEncoder, options);
|
|
4512
|
+
if (options.oneofs)
|
|
4513
|
+
object.item = "updateEncoder";
|
|
4514
|
+
}
|
|
4515
|
+
if (message.removeEncoder != null && message.hasOwnProperty("removeEncoder")) {
|
|
4516
|
+
object.removeEncoder = $root.sesame.v1.outputs.EncoderRemoveRequest.toObject(message.removeEncoder, options);
|
|
4517
|
+
if (options.oneofs)
|
|
4518
|
+
object.item = "removeEncoder";
|
|
4519
|
+
}
|
|
3450
4520
|
return object;
|
|
3451
4521
|
};
|
|
3452
4522
|
CommandListItem.prototype.toJSON = function toJSON() {
|
|
@@ -13993,6 +15063,7 @@ var sesame = $root.sesame = (() => {
|
|
|
13993
15063
|
this.audioMixes = [];
|
|
13994
15064
|
this.outputs = [];
|
|
13995
15065
|
this.recorders = [];
|
|
15066
|
+
this.encoders = [];
|
|
13996
15067
|
if (properties) {
|
|
13997
15068
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13998
15069
|
if (properties[keys[i]] != null)
|
|
@@ -14007,6 +15078,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14007
15078
|
Status.prototype.audioMixes = $util.emptyArray;
|
|
14008
15079
|
Status.prototype.outputs = $util.emptyArray;
|
|
14009
15080
|
Status.prototype.recorders = $util.emptyArray;
|
|
15081
|
+
Status.prototype.encoders = $util.emptyArray;
|
|
14010
15082
|
Status.create = function create(properties) {
|
|
14011
15083
|
return new Status(properties);
|
|
14012
15084
|
};
|
|
@@ -14058,6 +15130,12 @@ var sesame = $root.sesame = (() => {
|
|
|
14058
15130
|
/* id 8, wireType 2 =*/
|
|
14059
15131
|
66
|
|
14060
15132
|
).fork()).ldelim();
|
|
15133
|
+
if (message.encoders != null && message.encoders.length)
|
|
15134
|
+
for (let i = 0; i < message.encoders.length; ++i)
|
|
15135
|
+
$root.sesame.v1.outputs.EncoderStatus.encode(message.encoders[i], writer.uint32(
|
|
15136
|
+
/* id 9, wireType 2 =*/
|
|
15137
|
+
74
|
|
15138
|
+
).fork()).ldelim();
|
|
14061
15139
|
return writer;
|
|
14062
15140
|
};
|
|
14063
15141
|
Status.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -14114,6 +15192,12 @@ var sesame = $root.sesame = (() => {
|
|
|
14114
15192
|
message.recorders.push($root.sesame.v1.recorder.RecorderStatus.decode(reader, reader.uint32()));
|
|
14115
15193
|
break;
|
|
14116
15194
|
}
|
|
15195
|
+
case 9: {
|
|
15196
|
+
if (!(message.encoders && message.encoders.length))
|
|
15197
|
+
message.encoders = [];
|
|
15198
|
+
message.encoders.push($root.sesame.v1.outputs.EncoderStatus.decode(reader, reader.uint32()));
|
|
15199
|
+
break;
|
|
15200
|
+
}
|
|
14117
15201
|
default:
|
|
14118
15202
|
reader.skipType(tag & 7);
|
|
14119
15203
|
break;
|
|
@@ -14189,6 +15273,15 @@ var sesame = $root.sesame = (() => {
|
|
|
14189
15273
|
return "recorders." + error;
|
|
14190
15274
|
}
|
|
14191
15275
|
}
|
|
15276
|
+
if (message.encoders != null && message.hasOwnProperty("encoders")) {
|
|
15277
|
+
if (!Array.isArray(message.encoders))
|
|
15278
|
+
return "encoders: array expected";
|
|
15279
|
+
for (let i = 0; i < message.encoders.length; ++i) {
|
|
15280
|
+
let error = $root.sesame.v1.outputs.EncoderStatus.verify(message.encoders[i]);
|
|
15281
|
+
if (error)
|
|
15282
|
+
return "encoders." + error;
|
|
15283
|
+
}
|
|
15284
|
+
}
|
|
14192
15285
|
return null;
|
|
14193
15286
|
};
|
|
14194
15287
|
Status.fromObject = function fromObject(object) {
|
|
@@ -14260,6 +15353,16 @@ var sesame = $root.sesame = (() => {
|
|
|
14260
15353
|
message.recorders[i] = $root.sesame.v1.recorder.RecorderStatus.fromObject(object.recorders[i]);
|
|
14261
15354
|
}
|
|
14262
15355
|
}
|
|
15356
|
+
if (object.encoders) {
|
|
15357
|
+
if (!Array.isArray(object.encoders))
|
|
15358
|
+
throw TypeError(".sesame.v1.status.Status.encoders: array expected");
|
|
15359
|
+
message.encoders = [];
|
|
15360
|
+
for (let i = 0; i < object.encoders.length; ++i) {
|
|
15361
|
+
if (typeof object.encoders[i] !== "object")
|
|
15362
|
+
throw TypeError(".sesame.v1.status.Status.encoders: object expected");
|
|
15363
|
+
message.encoders[i] = $root.sesame.v1.outputs.EncoderStatus.fromObject(object.encoders[i]);
|
|
15364
|
+
}
|
|
15365
|
+
}
|
|
14263
15366
|
return message;
|
|
14264
15367
|
};
|
|
14265
15368
|
Status.toObject = function toObject(message, options) {
|
|
@@ -14272,6 +15375,7 @@ var sesame = $root.sesame = (() => {
|
|
|
14272
15375
|
object.audioMixes = [];
|
|
14273
15376
|
object.outputs = [];
|
|
14274
15377
|
object.recorders = [];
|
|
15378
|
+
object.encoders = [];
|
|
14275
15379
|
}
|
|
14276
15380
|
if (options.defaults) {
|
|
14277
15381
|
object.systemStatus = null;
|
|
@@ -14309,6 +15413,11 @@ var sesame = $root.sesame = (() => {
|
|
|
14309
15413
|
for (let j = 0; j < message.recorders.length; ++j)
|
|
14310
15414
|
object.recorders[j] = $root.sesame.v1.recorder.RecorderStatus.toObject(message.recorders[j], options);
|
|
14311
15415
|
}
|
|
15416
|
+
if (message.encoders && message.encoders.length) {
|
|
15417
|
+
object.encoders = [];
|
|
15418
|
+
for (let j = 0; j < message.encoders.length; ++j)
|
|
15419
|
+
object.encoders[j] = $root.sesame.v1.outputs.EncoderStatus.toObject(message.encoders[j], options);
|
|
15420
|
+
}
|
|
14312
15421
|
return object;
|
|
14313
15422
|
};
|
|
14314
15423
|
Status.prototype.toJSON = function toJSON() {
|
|
@@ -15616,6 +16725,12 @@ var sesame = $root.sesame = (() => {
|
|
|
15616
16725
|
values[valuesById[7] = "OUTPUT_TYPE_ENCODED_SUPER_SLOWMO_RECORDER"] = 7;
|
|
15617
16726
|
return values;
|
|
15618
16727
|
}();
|
|
16728
|
+
outputs.EncoderType = function() {
|
|
16729
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
16730
|
+
values[valuesById[0] = "ENCODER_TYPE_UNSPECIFIED"] = 0;
|
|
16731
|
+
values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
|
|
16732
|
+
return values;
|
|
16733
|
+
}();
|
|
15619
16734
|
outputs.EncoderPreset = function() {
|
|
15620
16735
|
const valuesById = {}, values = Object.create(valuesById);
|
|
15621
16736
|
values[valuesById[0] = "ENCODER_PRESET_UNSPECIFIED"] = 0;
|
|
@@ -15684,49 +16799,550 @@ var sesame = $root.sesame = (() => {
|
|
|
15684
16799
|
).uint32(message.height);
|
|
15685
16800
|
if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
|
|
15686
16801
|
writer.uint32(
|
|
15687
|
-
/* id 7, wireType 5 =*/
|
|
15688
|
-
61
|
|
15689
|
-
).float(message.fps);
|
|
16802
|
+
/* id 7, wireType 5 =*/
|
|
16803
|
+
61
|
|
16804
|
+
).float(message.fps);
|
|
16805
|
+
return writer;
|
|
16806
|
+
};
|
|
16807
|
+
EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16808
|
+
return this.encode(message, writer).ldelim();
|
|
16809
|
+
};
|
|
16810
|
+
EncoderConfig.decode = function decode(reader, length, error) {
|
|
16811
|
+
if (!(reader instanceof $Reader))
|
|
16812
|
+
reader = $Reader.create(reader);
|
|
16813
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
16814
|
+
while (reader.pos < end) {
|
|
16815
|
+
let tag = reader.uint32();
|
|
16816
|
+
if (tag === error)
|
|
16817
|
+
break;
|
|
16818
|
+
switch (tag >>> 3) {
|
|
16819
|
+
case 1: {
|
|
16820
|
+
message.codec = reader.int32();
|
|
16821
|
+
break;
|
|
16822
|
+
}
|
|
16823
|
+
case 2: {
|
|
16824
|
+
message.preset = reader.int32();
|
|
16825
|
+
break;
|
|
16826
|
+
}
|
|
16827
|
+
case 3: {
|
|
16828
|
+
message.bitrateKbps = reader.uint32();
|
|
16829
|
+
break;
|
|
16830
|
+
}
|
|
16831
|
+
case 4: {
|
|
16832
|
+
message.keyframeInterval = reader.uint32();
|
|
16833
|
+
break;
|
|
16834
|
+
}
|
|
16835
|
+
case 5: {
|
|
16836
|
+
message.width = reader.uint32();
|
|
16837
|
+
break;
|
|
16838
|
+
}
|
|
16839
|
+
case 6: {
|
|
16840
|
+
message.height = reader.uint32();
|
|
16841
|
+
break;
|
|
16842
|
+
}
|
|
16843
|
+
case 7: {
|
|
16844
|
+
message.fps = reader.float();
|
|
16845
|
+
break;
|
|
16846
|
+
}
|
|
16847
|
+
default:
|
|
16848
|
+
reader.skipType(tag & 7);
|
|
16849
|
+
break;
|
|
16850
|
+
}
|
|
16851
|
+
}
|
|
16852
|
+
return message;
|
|
16853
|
+
};
|
|
16854
|
+
EncoderConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
16855
|
+
if (!(reader instanceof $Reader))
|
|
16856
|
+
reader = new $Reader(reader);
|
|
16857
|
+
return this.decode(reader, reader.uint32());
|
|
16858
|
+
};
|
|
16859
|
+
EncoderConfig.verify = function verify(message) {
|
|
16860
|
+
if (typeof message !== "object" || message === null)
|
|
16861
|
+
return "object expected";
|
|
16862
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
16863
|
+
switch (message.codec) {
|
|
16864
|
+
default:
|
|
16865
|
+
return "codec: enum value expected";
|
|
16866
|
+
case 0:
|
|
16867
|
+
case 1:
|
|
16868
|
+
case 2:
|
|
16869
|
+
case 3:
|
|
16870
|
+
case 4:
|
|
16871
|
+
case 5:
|
|
16872
|
+
case 6:
|
|
16873
|
+
case 7:
|
|
16874
|
+
case 64:
|
|
16875
|
+
case 65:
|
|
16876
|
+
case 66:
|
|
16877
|
+
case 67:
|
|
16878
|
+
break;
|
|
16879
|
+
}
|
|
16880
|
+
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
16881
|
+
switch (message.preset) {
|
|
16882
|
+
default:
|
|
16883
|
+
return "preset: enum value expected";
|
|
16884
|
+
case 0:
|
|
16885
|
+
case 1:
|
|
16886
|
+
case 2:
|
|
16887
|
+
case 3:
|
|
16888
|
+
break;
|
|
16889
|
+
}
|
|
16890
|
+
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
|
|
16891
|
+
if (!$util.isInteger(message.bitrateKbps))
|
|
16892
|
+
return "bitrateKbps: integer expected";
|
|
16893
|
+
}
|
|
16894
|
+
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
|
|
16895
|
+
if (!$util.isInteger(message.keyframeInterval))
|
|
16896
|
+
return "keyframeInterval: integer expected";
|
|
16897
|
+
}
|
|
16898
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
16899
|
+
if (!$util.isInteger(message.width))
|
|
16900
|
+
return "width: integer expected";
|
|
16901
|
+
}
|
|
16902
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
16903
|
+
if (!$util.isInteger(message.height))
|
|
16904
|
+
return "height: integer expected";
|
|
16905
|
+
}
|
|
16906
|
+
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
16907
|
+
if (typeof message.fps !== "number")
|
|
16908
|
+
return "fps: number expected";
|
|
16909
|
+
}
|
|
16910
|
+
return null;
|
|
16911
|
+
};
|
|
16912
|
+
EncoderConfig.fromObject = function fromObject(object) {
|
|
16913
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
|
|
16914
|
+
return object;
|
|
16915
|
+
let message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
16916
|
+
switch (object.codec) {
|
|
16917
|
+
default:
|
|
16918
|
+
if (typeof object.codec === "number") {
|
|
16919
|
+
message.codec = object.codec;
|
|
16920
|
+
break;
|
|
16921
|
+
}
|
|
16922
|
+
break;
|
|
16923
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
16924
|
+
case 0:
|
|
16925
|
+
message.codec = 0;
|
|
16926
|
+
break;
|
|
16927
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
16928
|
+
case 1:
|
|
16929
|
+
message.codec = 1;
|
|
16930
|
+
break;
|
|
16931
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
16932
|
+
case 2:
|
|
16933
|
+
message.codec = 2;
|
|
16934
|
+
break;
|
|
16935
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
16936
|
+
case 3:
|
|
16937
|
+
message.codec = 3;
|
|
16938
|
+
break;
|
|
16939
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
16940
|
+
case 4:
|
|
16941
|
+
message.codec = 4;
|
|
16942
|
+
break;
|
|
16943
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
16944
|
+
case 5:
|
|
16945
|
+
message.codec = 5;
|
|
16946
|
+
break;
|
|
16947
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
16948
|
+
case 6:
|
|
16949
|
+
message.codec = 6;
|
|
16950
|
+
break;
|
|
16951
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
16952
|
+
case 7:
|
|
16953
|
+
message.codec = 7;
|
|
16954
|
+
break;
|
|
16955
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
16956
|
+
case 64:
|
|
16957
|
+
message.codec = 64;
|
|
16958
|
+
break;
|
|
16959
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
16960
|
+
case 65:
|
|
16961
|
+
message.codec = 65;
|
|
16962
|
+
break;
|
|
16963
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
16964
|
+
case 66:
|
|
16965
|
+
message.codec = 66;
|
|
16966
|
+
break;
|
|
16967
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
16968
|
+
case 67:
|
|
16969
|
+
message.codec = 67;
|
|
16970
|
+
break;
|
|
16971
|
+
}
|
|
16972
|
+
switch (object.preset) {
|
|
16973
|
+
default:
|
|
16974
|
+
if (typeof object.preset === "number") {
|
|
16975
|
+
message.preset = object.preset;
|
|
16976
|
+
break;
|
|
16977
|
+
}
|
|
16978
|
+
break;
|
|
16979
|
+
case "ENCODER_PRESET_UNSPECIFIED":
|
|
16980
|
+
case 0:
|
|
16981
|
+
message.preset = 0;
|
|
16982
|
+
break;
|
|
16983
|
+
case "ENCODER_PRESET_LOW_LATENCY":
|
|
16984
|
+
case 1:
|
|
16985
|
+
message.preset = 1;
|
|
16986
|
+
break;
|
|
16987
|
+
case "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY":
|
|
16988
|
+
case 2:
|
|
16989
|
+
message.preset = 2;
|
|
16990
|
+
break;
|
|
16991
|
+
case "ENCODER_PRESET_HIGH_QUALITY":
|
|
16992
|
+
case 3:
|
|
16993
|
+
message.preset = 3;
|
|
16994
|
+
break;
|
|
16995
|
+
}
|
|
16996
|
+
if (object.bitrateKbps != null)
|
|
16997
|
+
message.bitrateKbps = object.bitrateKbps >>> 0;
|
|
16998
|
+
if (object.keyframeInterval != null)
|
|
16999
|
+
message.keyframeInterval = object.keyframeInterval >>> 0;
|
|
17000
|
+
if (object.width != null)
|
|
17001
|
+
message.width = object.width >>> 0;
|
|
17002
|
+
if (object.height != null)
|
|
17003
|
+
message.height = object.height >>> 0;
|
|
17004
|
+
if (object.fps != null)
|
|
17005
|
+
message.fps = Number(object.fps);
|
|
17006
|
+
return message;
|
|
17007
|
+
};
|
|
17008
|
+
EncoderConfig.toObject = function toObject(message, options) {
|
|
17009
|
+
if (!options)
|
|
17010
|
+
options = {};
|
|
17011
|
+
let object = {};
|
|
17012
|
+
if (options.defaults) {
|
|
17013
|
+
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
17014
|
+
object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
|
|
17015
|
+
object.bitrateKbps = 0;
|
|
17016
|
+
object.keyframeInterval = 0;
|
|
17017
|
+
object.width = 0;
|
|
17018
|
+
object.height = 0;
|
|
17019
|
+
object.fps = 0;
|
|
17020
|
+
}
|
|
17021
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
17022
|
+
object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
|
|
17023
|
+
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
17024
|
+
object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
|
|
17025
|
+
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
|
|
17026
|
+
object.bitrateKbps = message.bitrateKbps;
|
|
17027
|
+
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
|
|
17028
|
+
object.keyframeInterval = message.keyframeInterval;
|
|
17029
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
17030
|
+
object.width = message.width;
|
|
17031
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
17032
|
+
object.height = message.height;
|
|
17033
|
+
if (message.fps != null && message.hasOwnProperty("fps"))
|
|
17034
|
+
object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
|
|
17035
|
+
return object;
|
|
17036
|
+
};
|
|
17037
|
+
EncoderConfig.prototype.toJSON = function toJSON() {
|
|
17038
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
17039
|
+
};
|
|
17040
|
+
EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17041
|
+
if (typeUrlPrefix === void 0) {
|
|
17042
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17043
|
+
}
|
|
17044
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
|
|
17045
|
+
};
|
|
17046
|
+
return EncoderConfig;
|
|
17047
|
+
}();
|
|
17048
|
+
outputs.EncoderAddRequest = function() {
|
|
17049
|
+
function EncoderAddRequest(properties) {
|
|
17050
|
+
if (properties) {
|
|
17051
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17052
|
+
if (properties[keys[i]] != null)
|
|
17053
|
+
this[keys[i]] = properties[keys[i]];
|
|
17054
|
+
}
|
|
17055
|
+
}
|
|
17056
|
+
EncoderAddRequest.prototype.id = "";
|
|
17057
|
+
EncoderAddRequest.prototype.compositionId = "";
|
|
17058
|
+
EncoderAddRequest.prototype.encoder = null;
|
|
17059
|
+
EncoderAddRequest.create = function create(properties) {
|
|
17060
|
+
return new EncoderAddRequest(properties);
|
|
17061
|
+
};
|
|
17062
|
+
EncoderAddRequest.encode = function encode(message, writer) {
|
|
17063
|
+
if (!writer)
|
|
17064
|
+
writer = $Writer.create();
|
|
17065
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
17066
|
+
writer.uint32(
|
|
17067
|
+
/* id 1, wireType 2 =*/
|
|
17068
|
+
10
|
|
17069
|
+
).string(message.id);
|
|
17070
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
17071
|
+
writer.uint32(
|
|
17072
|
+
/* id 2, wireType 2 =*/
|
|
17073
|
+
18
|
|
17074
|
+
).string(message.compositionId);
|
|
17075
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
17076
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
17077
|
+
/* id 3, wireType 2 =*/
|
|
17078
|
+
26
|
|
17079
|
+
).fork()).ldelim();
|
|
17080
|
+
return writer;
|
|
17081
|
+
};
|
|
17082
|
+
EncoderAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17083
|
+
return this.encode(message, writer).ldelim();
|
|
17084
|
+
};
|
|
17085
|
+
EncoderAddRequest.decode = function decode(reader, length, error) {
|
|
17086
|
+
if (!(reader instanceof $Reader))
|
|
17087
|
+
reader = $Reader.create(reader);
|
|
17088
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderAddRequest();
|
|
17089
|
+
while (reader.pos < end) {
|
|
17090
|
+
let tag = reader.uint32();
|
|
17091
|
+
if (tag === error)
|
|
17092
|
+
break;
|
|
17093
|
+
switch (tag >>> 3) {
|
|
17094
|
+
case 1: {
|
|
17095
|
+
message.id = reader.string();
|
|
17096
|
+
break;
|
|
17097
|
+
}
|
|
17098
|
+
case 2: {
|
|
17099
|
+
message.compositionId = reader.string();
|
|
17100
|
+
break;
|
|
17101
|
+
}
|
|
17102
|
+
case 3: {
|
|
17103
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
17104
|
+
break;
|
|
17105
|
+
}
|
|
17106
|
+
default:
|
|
17107
|
+
reader.skipType(tag & 7);
|
|
17108
|
+
break;
|
|
17109
|
+
}
|
|
17110
|
+
}
|
|
17111
|
+
return message;
|
|
17112
|
+
};
|
|
17113
|
+
EncoderAddRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
17114
|
+
if (!(reader instanceof $Reader))
|
|
17115
|
+
reader = new $Reader(reader);
|
|
17116
|
+
return this.decode(reader, reader.uint32());
|
|
17117
|
+
};
|
|
17118
|
+
EncoderAddRequest.verify = function verify(message) {
|
|
17119
|
+
if (typeof message !== "object" || message === null)
|
|
17120
|
+
return "object expected";
|
|
17121
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
17122
|
+
if (!$util.isString(message.id))
|
|
17123
|
+
return "id: string expected";
|
|
17124
|
+
}
|
|
17125
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
17126
|
+
if (!$util.isString(message.compositionId))
|
|
17127
|
+
return "compositionId: string expected";
|
|
17128
|
+
}
|
|
17129
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
17130
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
17131
|
+
if (error)
|
|
17132
|
+
return "encoder." + error;
|
|
17133
|
+
}
|
|
17134
|
+
return null;
|
|
17135
|
+
};
|
|
17136
|
+
EncoderAddRequest.fromObject = function fromObject(object) {
|
|
17137
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderAddRequest)
|
|
17138
|
+
return object;
|
|
17139
|
+
let message = new $root.sesame.v1.outputs.EncoderAddRequest();
|
|
17140
|
+
if (object.id != null)
|
|
17141
|
+
message.id = String(object.id);
|
|
17142
|
+
if (object.compositionId != null)
|
|
17143
|
+
message.compositionId = String(object.compositionId);
|
|
17144
|
+
if (object.encoder != null) {
|
|
17145
|
+
if (typeof object.encoder !== "object")
|
|
17146
|
+
throw TypeError(".sesame.v1.outputs.EncoderAddRequest.encoder: object expected");
|
|
17147
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
17148
|
+
}
|
|
17149
|
+
return message;
|
|
17150
|
+
};
|
|
17151
|
+
EncoderAddRequest.toObject = function toObject(message, options) {
|
|
17152
|
+
if (!options)
|
|
17153
|
+
options = {};
|
|
17154
|
+
let object = {};
|
|
17155
|
+
if (options.defaults) {
|
|
17156
|
+
object.id = "";
|
|
17157
|
+
object.compositionId = "";
|
|
17158
|
+
object.encoder = null;
|
|
17159
|
+
}
|
|
17160
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
17161
|
+
object.id = message.id;
|
|
17162
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
17163
|
+
object.compositionId = message.compositionId;
|
|
17164
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
17165
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
17166
|
+
return object;
|
|
17167
|
+
};
|
|
17168
|
+
EncoderAddRequest.prototype.toJSON = function toJSON() {
|
|
17169
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
17170
|
+
};
|
|
17171
|
+
EncoderAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17172
|
+
if (typeUrlPrefix === void 0) {
|
|
17173
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17174
|
+
}
|
|
17175
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderAddRequest";
|
|
17176
|
+
};
|
|
17177
|
+
return EncoderAddRequest;
|
|
17178
|
+
}();
|
|
17179
|
+
outputs.EncoderUpdateRequest = function() {
|
|
17180
|
+
function EncoderUpdateRequest(properties) {
|
|
17181
|
+
if (properties) {
|
|
17182
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17183
|
+
if (properties[keys[i]] != null)
|
|
17184
|
+
this[keys[i]] = properties[keys[i]];
|
|
17185
|
+
}
|
|
17186
|
+
}
|
|
17187
|
+
EncoderUpdateRequest.prototype.id = "";
|
|
17188
|
+
EncoderUpdateRequest.prototype.compositionId = "";
|
|
17189
|
+
EncoderUpdateRequest.prototype.encoder = null;
|
|
17190
|
+
EncoderUpdateRequest.create = function create(properties) {
|
|
17191
|
+
return new EncoderUpdateRequest(properties);
|
|
17192
|
+
};
|
|
17193
|
+
EncoderUpdateRequest.encode = function encode(message, writer) {
|
|
17194
|
+
if (!writer)
|
|
17195
|
+
writer = $Writer.create();
|
|
17196
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
17197
|
+
writer.uint32(
|
|
17198
|
+
/* id 1, wireType 2 =*/
|
|
17199
|
+
10
|
|
17200
|
+
).string(message.id);
|
|
17201
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
17202
|
+
writer.uint32(
|
|
17203
|
+
/* id 2, wireType 2 =*/
|
|
17204
|
+
18
|
|
17205
|
+
).string(message.compositionId);
|
|
17206
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
17207
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
17208
|
+
/* id 3, wireType 2 =*/
|
|
17209
|
+
26
|
|
17210
|
+
).fork()).ldelim();
|
|
17211
|
+
return writer;
|
|
17212
|
+
};
|
|
17213
|
+
EncoderUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17214
|
+
return this.encode(message, writer).ldelim();
|
|
17215
|
+
};
|
|
17216
|
+
EncoderUpdateRequest.decode = function decode(reader, length, error) {
|
|
17217
|
+
if (!(reader instanceof $Reader))
|
|
17218
|
+
reader = $Reader.create(reader);
|
|
17219
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
|
|
17220
|
+
while (reader.pos < end) {
|
|
17221
|
+
let tag = reader.uint32();
|
|
17222
|
+
if (tag === error)
|
|
17223
|
+
break;
|
|
17224
|
+
switch (tag >>> 3) {
|
|
17225
|
+
case 1: {
|
|
17226
|
+
message.id = reader.string();
|
|
17227
|
+
break;
|
|
17228
|
+
}
|
|
17229
|
+
case 2: {
|
|
17230
|
+
message.compositionId = reader.string();
|
|
17231
|
+
break;
|
|
17232
|
+
}
|
|
17233
|
+
case 3: {
|
|
17234
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
17235
|
+
break;
|
|
17236
|
+
}
|
|
17237
|
+
default:
|
|
17238
|
+
reader.skipType(tag & 7);
|
|
17239
|
+
break;
|
|
17240
|
+
}
|
|
17241
|
+
}
|
|
17242
|
+
return message;
|
|
17243
|
+
};
|
|
17244
|
+
EncoderUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
17245
|
+
if (!(reader instanceof $Reader))
|
|
17246
|
+
reader = new $Reader(reader);
|
|
17247
|
+
return this.decode(reader, reader.uint32());
|
|
17248
|
+
};
|
|
17249
|
+
EncoderUpdateRequest.verify = function verify(message) {
|
|
17250
|
+
if (typeof message !== "object" || message === null)
|
|
17251
|
+
return "object expected";
|
|
17252
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
17253
|
+
if (!$util.isString(message.id))
|
|
17254
|
+
return "id: string expected";
|
|
17255
|
+
}
|
|
17256
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
17257
|
+
if (!$util.isString(message.compositionId))
|
|
17258
|
+
return "compositionId: string expected";
|
|
17259
|
+
}
|
|
17260
|
+
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
17261
|
+
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
17262
|
+
if (error)
|
|
17263
|
+
return "encoder." + error;
|
|
17264
|
+
}
|
|
17265
|
+
return null;
|
|
17266
|
+
};
|
|
17267
|
+
EncoderUpdateRequest.fromObject = function fromObject(object) {
|
|
17268
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderUpdateRequest)
|
|
17269
|
+
return object;
|
|
17270
|
+
let message = new $root.sesame.v1.outputs.EncoderUpdateRequest();
|
|
17271
|
+
if (object.id != null)
|
|
17272
|
+
message.id = String(object.id);
|
|
17273
|
+
if (object.compositionId != null)
|
|
17274
|
+
message.compositionId = String(object.compositionId);
|
|
17275
|
+
if (object.encoder != null) {
|
|
17276
|
+
if (typeof object.encoder !== "object")
|
|
17277
|
+
throw TypeError(".sesame.v1.outputs.EncoderUpdateRequest.encoder: object expected");
|
|
17278
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
17279
|
+
}
|
|
17280
|
+
return message;
|
|
17281
|
+
};
|
|
17282
|
+
EncoderUpdateRequest.toObject = function toObject(message, options) {
|
|
17283
|
+
if (!options)
|
|
17284
|
+
options = {};
|
|
17285
|
+
let object = {};
|
|
17286
|
+
if (options.defaults) {
|
|
17287
|
+
object.id = "";
|
|
17288
|
+
object.compositionId = "";
|
|
17289
|
+
object.encoder = null;
|
|
17290
|
+
}
|
|
17291
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
17292
|
+
object.id = message.id;
|
|
17293
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
17294
|
+
object.compositionId = message.compositionId;
|
|
17295
|
+
if (message.encoder != null && message.hasOwnProperty("encoder"))
|
|
17296
|
+
object.encoder = $root.sesame.v1.outputs.EncoderConfig.toObject(message.encoder, options);
|
|
17297
|
+
return object;
|
|
17298
|
+
};
|
|
17299
|
+
EncoderUpdateRequest.prototype.toJSON = function toJSON() {
|
|
17300
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
17301
|
+
};
|
|
17302
|
+
EncoderUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17303
|
+
if (typeUrlPrefix === void 0) {
|
|
17304
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17305
|
+
}
|
|
17306
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderUpdateRequest";
|
|
17307
|
+
};
|
|
17308
|
+
return EncoderUpdateRequest;
|
|
17309
|
+
}();
|
|
17310
|
+
outputs.EncoderRemoveRequest = function() {
|
|
17311
|
+
function EncoderRemoveRequest(properties) {
|
|
17312
|
+
if (properties) {
|
|
17313
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17314
|
+
if (properties[keys[i]] != null)
|
|
17315
|
+
this[keys[i]] = properties[keys[i]];
|
|
17316
|
+
}
|
|
17317
|
+
}
|
|
17318
|
+
EncoderRemoveRequest.prototype.id = "";
|
|
17319
|
+
EncoderRemoveRequest.create = function create(properties) {
|
|
17320
|
+
return new EncoderRemoveRequest(properties);
|
|
17321
|
+
};
|
|
17322
|
+
EncoderRemoveRequest.encode = function encode(message, writer) {
|
|
17323
|
+
if (!writer)
|
|
17324
|
+
writer = $Writer.create();
|
|
17325
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
17326
|
+
writer.uint32(
|
|
17327
|
+
/* id 1, wireType 2 =*/
|
|
17328
|
+
10
|
|
17329
|
+
).string(message.id);
|
|
15690
17330
|
return writer;
|
|
15691
17331
|
};
|
|
15692
|
-
|
|
17332
|
+
EncoderRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15693
17333
|
return this.encode(message, writer).ldelim();
|
|
15694
17334
|
};
|
|
15695
|
-
|
|
17335
|
+
EncoderRemoveRequest.decode = function decode(reader, length, error) {
|
|
15696
17336
|
if (!(reader instanceof $Reader))
|
|
15697
17337
|
reader = $Reader.create(reader);
|
|
15698
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.
|
|
17338
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
|
|
15699
17339
|
while (reader.pos < end) {
|
|
15700
17340
|
let tag = reader.uint32();
|
|
15701
17341
|
if (tag === error)
|
|
15702
17342
|
break;
|
|
15703
17343
|
switch (tag >>> 3) {
|
|
15704
17344
|
case 1: {
|
|
15705
|
-
message.
|
|
15706
|
-
break;
|
|
15707
|
-
}
|
|
15708
|
-
case 2: {
|
|
15709
|
-
message.preset = reader.int32();
|
|
15710
|
-
break;
|
|
15711
|
-
}
|
|
15712
|
-
case 3: {
|
|
15713
|
-
message.bitrateKbps = reader.uint32();
|
|
15714
|
-
break;
|
|
15715
|
-
}
|
|
15716
|
-
case 4: {
|
|
15717
|
-
message.keyframeInterval = reader.uint32();
|
|
15718
|
-
break;
|
|
15719
|
-
}
|
|
15720
|
-
case 5: {
|
|
15721
|
-
message.width = reader.uint32();
|
|
15722
|
-
break;
|
|
15723
|
-
}
|
|
15724
|
-
case 6: {
|
|
15725
|
-
message.height = reader.uint32();
|
|
15726
|
-
break;
|
|
15727
|
-
}
|
|
15728
|
-
case 7: {
|
|
15729
|
-
message.fps = reader.float();
|
|
17345
|
+
message.id = reader.string();
|
|
15730
17346
|
break;
|
|
15731
17347
|
}
|
|
15732
17348
|
default:
|
|
@@ -15736,199 +17352,48 @@ var sesame = $root.sesame = (() => {
|
|
|
15736
17352
|
}
|
|
15737
17353
|
return message;
|
|
15738
17354
|
};
|
|
15739
|
-
|
|
17355
|
+
EncoderRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
15740
17356
|
if (!(reader instanceof $Reader))
|
|
15741
17357
|
reader = new $Reader(reader);
|
|
15742
17358
|
return this.decode(reader, reader.uint32());
|
|
15743
17359
|
};
|
|
15744
|
-
|
|
17360
|
+
EncoderRemoveRequest.verify = function verify(message) {
|
|
15745
17361
|
if (typeof message !== "object" || message === null)
|
|
15746
17362
|
return "object expected";
|
|
15747
|
-
if (message.
|
|
15748
|
-
|
|
15749
|
-
|
|
15750
|
-
return "codec: enum value expected";
|
|
15751
|
-
case 0:
|
|
15752
|
-
case 1:
|
|
15753
|
-
case 2:
|
|
15754
|
-
case 3:
|
|
15755
|
-
case 4:
|
|
15756
|
-
case 5:
|
|
15757
|
-
case 6:
|
|
15758
|
-
case 7:
|
|
15759
|
-
case 64:
|
|
15760
|
-
case 65:
|
|
15761
|
-
case 66:
|
|
15762
|
-
case 67:
|
|
15763
|
-
break;
|
|
15764
|
-
}
|
|
15765
|
-
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
15766
|
-
switch (message.preset) {
|
|
15767
|
-
default:
|
|
15768
|
-
return "preset: enum value expected";
|
|
15769
|
-
case 0:
|
|
15770
|
-
case 1:
|
|
15771
|
-
case 2:
|
|
15772
|
-
case 3:
|
|
15773
|
-
break;
|
|
15774
|
-
}
|
|
15775
|
-
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
|
|
15776
|
-
if (!$util.isInteger(message.bitrateKbps))
|
|
15777
|
-
return "bitrateKbps: integer expected";
|
|
15778
|
-
}
|
|
15779
|
-
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
|
|
15780
|
-
if (!$util.isInteger(message.keyframeInterval))
|
|
15781
|
-
return "keyframeInterval: integer expected";
|
|
15782
|
-
}
|
|
15783
|
-
if (message.width != null && message.hasOwnProperty("width")) {
|
|
15784
|
-
if (!$util.isInteger(message.width))
|
|
15785
|
-
return "width: integer expected";
|
|
15786
|
-
}
|
|
15787
|
-
if (message.height != null && message.hasOwnProperty("height")) {
|
|
15788
|
-
if (!$util.isInteger(message.height))
|
|
15789
|
-
return "height: integer expected";
|
|
15790
|
-
}
|
|
15791
|
-
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
15792
|
-
if (typeof message.fps !== "number")
|
|
15793
|
-
return "fps: number expected";
|
|
17363
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
17364
|
+
if (!$util.isString(message.id))
|
|
17365
|
+
return "id: string expected";
|
|
15794
17366
|
}
|
|
15795
17367
|
return null;
|
|
15796
17368
|
};
|
|
15797
|
-
|
|
15798
|
-
if (object instanceof $root.sesame.v1.outputs.
|
|
17369
|
+
EncoderRemoveRequest.fromObject = function fromObject(object) {
|
|
17370
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderRemoveRequest)
|
|
15799
17371
|
return object;
|
|
15800
|
-
let message = new $root.sesame.v1.outputs.
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
if (typeof object.codec === "number") {
|
|
15804
|
-
message.codec = object.codec;
|
|
15805
|
-
break;
|
|
15806
|
-
}
|
|
15807
|
-
break;
|
|
15808
|
-
case "CODEC_TYPE_UNSPECIFIED":
|
|
15809
|
-
case 0:
|
|
15810
|
-
message.codec = 0;
|
|
15811
|
-
break;
|
|
15812
|
-
case "CODEC_TYPE_VIDEO_VP8":
|
|
15813
|
-
case 1:
|
|
15814
|
-
message.codec = 1;
|
|
15815
|
-
break;
|
|
15816
|
-
case "CODEC_TYPE_VIDEO_VP9":
|
|
15817
|
-
case 2:
|
|
15818
|
-
message.codec = 2;
|
|
15819
|
-
break;
|
|
15820
|
-
case "CODEC_TYPE_VIDEO_AVC":
|
|
15821
|
-
case 3:
|
|
15822
|
-
message.codec = 3;
|
|
15823
|
-
break;
|
|
15824
|
-
case "CODEC_TYPE_VIDEO_HEVC":
|
|
15825
|
-
case 4:
|
|
15826
|
-
message.codec = 4;
|
|
15827
|
-
break;
|
|
15828
|
-
case "CODEC_TYPE_VIDEO_AV1":
|
|
15829
|
-
case 5:
|
|
15830
|
-
message.codec = 5;
|
|
15831
|
-
break;
|
|
15832
|
-
case "CODEC_TYPE_VIDEO_PRORES":
|
|
15833
|
-
case 6:
|
|
15834
|
-
message.codec = 6;
|
|
15835
|
-
break;
|
|
15836
|
-
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
15837
|
-
case 7:
|
|
15838
|
-
message.codec = 7;
|
|
15839
|
-
break;
|
|
15840
|
-
case "CODEC_TYPE_AUDIO_OPUS":
|
|
15841
|
-
case 64:
|
|
15842
|
-
message.codec = 64;
|
|
15843
|
-
break;
|
|
15844
|
-
case "CODEC_TYPE_AUDIO_AAC":
|
|
15845
|
-
case 65:
|
|
15846
|
-
message.codec = 65;
|
|
15847
|
-
break;
|
|
15848
|
-
case "CODEC_TYPE_AUDIO_PCM":
|
|
15849
|
-
case 66:
|
|
15850
|
-
message.codec = 66;
|
|
15851
|
-
break;
|
|
15852
|
-
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
15853
|
-
case 67:
|
|
15854
|
-
message.codec = 67;
|
|
15855
|
-
break;
|
|
15856
|
-
}
|
|
15857
|
-
switch (object.preset) {
|
|
15858
|
-
default:
|
|
15859
|
-
if (typeof object.preset === "number") {
|
|
15860
|
-
message.preset = object.preset;
|
|
15861
|
-
break;
|
|
15862
|
-
}
|
|
15863
|
-
break;
|
|
15864
|
-
case "ENCODER_PRESET_UNSPECIFIED":
|
|
15865
|
-
case 0:
|
|
15866
|
-
message.preset = 0;
|
|
15867
|
-
break;
|
|
15868
|
-
case "ENCODER_PRESET_LOW_LATENCY":
|
|
15869
|
-
case 1:
|
|
15870
|
-
message.preset = 1;
|
|
15871
|
-
break;
|
|
15872
|
-
case "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY":
|
|
15873
|
-
case 2:
|
|
15874
|
-
message.preset = 2;
|
|
15875
|
-
break;
|
|
15876
|
-
case "ENCODER_PRESET_HIGH_QUALITY":
|
|
15877
|
-
case 3:
|
|
15878
|
-
message.preset = 3;
|
|
15879
|
-
break;
|
|
15880
|
-
}
|
|
15881
|
-
if (object.bitrateKbps != null)
|
|
15882
|
-
message.bitrateKbps = object.bitrateKbps >>> 0;
|
|
15883
|
-
if (object.keyframeInterval != null)
|
|
15884
|
-
message.keyframeInterval = object.keyframeInterval >>> 0;
|
|
15885
|
-
if (object.width != null)
|
|
15886
|
-
message.width = object.width >>> 0;
|
|
15887
|
-
if (object.height != null)
|
|
15888
|
-
message.height = object.height >>> 0;
|
|
15889
|
-
if (object.fps != null)
|
|
15890
|
-
message.fps = Number(object.fps);
|
|
17372
|
+
let message = new $root.sesame.v1.outputs.EncoderRemoveRequest();
|
|
17373
|
+
if (object.id != null)
|
|
17374
|
+
message.id = String(object.id);
|
|
15891
17375
|
return message;
|
|
15892
17376
|
};
|
|
15893
|
-
|
|
17377
|
+
EncoderRemoveRequest.toObject = function toObject(message, options) {
|
|
15894
17378
|
if (!options)
|
|
15895
17379
|
options = {};
|
|
15896
17380
|
let object = {};
|
|
15897
|
-
if (options.defaults)
|
|
15898
|
-
object.
|
|
15899
|
-
|
|
15900
|
-
object.
|
|
15901
|
-
object.keyframeInterval = 0;
|
|
15902
|
-
object.width = 0;
|
|
15903
|
-
object.height = 0;
|
|
15904
|
-
object.fps = 0;
|
|
15905
|
-
}
|
|
15906
|
-
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
15907
|
-
object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
|
|
15908
|
-
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
15909
|
-
object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
|
|
15910
|
-
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
|
|
15911
|
-
object.bitrateKbps = message.bitrateKbps;
|
|
15912
|
-
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
|
|
15913
|
-
object.keyframeInterval = message.keyframeInterval;
|
|
15914
|
-
if (message.width != null && message.hasOwnProperty("width"))
|
|
15915
|
-
object.width = message.width;
|
|
15916
|
-
if (message.height != null && message.hasOwnProperty("height"))
|
|
15917
|
-
object.height = message.height;
|
|
15918
|
-
if (message.fps != null && message.hasOwnProperty("fps"))
|
|
15919
|
-
object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
|
|
17381
|
+
if (options.defaults)
|
|
17382
|
+
object.id = "";
|
|
17383
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
17384
|
+
object.id = message.id;
|
|
15920
17385
|
return object;
|
|
15921
17386
|
};
|
|
15922
|
-
|
|
17387
|
+
EncoderRemoveRequest.prototype.toJSON = function toJSON() {
|
|
15923
17388
|
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
15924
17389
|
};
|
|
15925
|
-
|
|
17390
|
+
EncoderRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
15926
17391
|
if (typeUrlPrefix === void 0) {
|
|
15927
17392
|
typeUrlPrefix = "type.googleapis.com";
|
|
15928
17393
|
}
|
|
15929
|
-
return typeUrlPrefix + "/sesame.v1.outputs.
|
|
17394
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderRemoveRequest";
|
|
15930
17395
|
};
|
|
15931
|
-
return
|
|
17396
|
+
return EncoderRemoveRequest;
|
|
15932
17397
|
}();
|
|
15933
17398
|
outputs.DecklinkOutputConfig = function() {
|
|
15934
17399
|
function DecklinkOutputConfig(properties) {
|
|
@@ -16100,7 +17565,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16100
17565
|
}
|
|
16101
17566
|
}
|
|
16102
17567
|
EncodedWebSocketOutputConfig.prototype.channel = "";
|
|
16103
|
-
EncodedWebSocketOutputConfig.prototype.
|
|
17568
|
+
EncodedWebSocketOutputConfig.prototype.encoderId = "";
|
|
16104
17569
|
EncodedWebSocketOutputConfig.prototype.metadataTracks = $util.emptyArray;
|
|
16105
17570
|
EncodedWebSocketOutputConfig.create = function create(properties) {
|
|
16106
17571
|
return new EncodedWebSocketOutputConfig(properties);
|
|
@@ -16113,11 +17578,11 @@ var sesame = $root.sesame = (() => {
|
|
|
16113
17578
|
/* id 1, wireType 2 =*/
|
|
16114
17579
|
10
|
|
16115
17580
|
).string(message.channel);
|
|
16116
|
-
if (message.
|
|
16117
|
-
|
|
17581
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
17582
|
+
writer.uint32(
|
|
16118
17583
|
/* id 2, wireType 2 =*/
|
|
16119
17584
|
18
|
|
16120
|
-
).
|
|
17585
|
+
).string(message.encoderId);
|
|
16121
17586
|
if (message.metadataTracks != null && message.metadataTracks.length)
|
|
16122
17587
|
for (let i = 0; i < message.metadataTracks.length; ++i)
|
|
16123
17588
|
writer.uint32(
|
|
@@ -16143,7 +17608,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16143
17608
|
break;
|
|
16144
17609
|
}
|
|
16145
17610
|
case 2: {
|
|
16146
|
-
message.
|
|
17611
|
+
message.encoderId = reader.string();
|
|
16147
17612
|
break;
|
|
16148
17613
|
}
|
|
16149
17614
|
case 3: {
|
|
@@ -16171,10 +17636,9 @@ var sesame = $root.sesame = (() => {
|
|
|
16171
17636
|
if (!$util.isString(message.channel))
|
|
16172
17637
|
return "channel: string expected";
|
|
16173
17638
|
}
|
|
16174
|
-
if (message.
|
|
16175
|
-
|
|
16176
|
-
|
|
16177
|
-
return "encoder." + error;
|
|
17639
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
17640
|
+
if (!$util.isString(message.encoderId))
|
|
17641
|
+
return "encoderId: string expected";
|
|
16178
17642
|
}
|
|
16179
17643
|
if (message.metadataTracks != null && message.hasOwnProperty("metadataTracks")) {
|
|
16180
17644
|
if (!Array.isArray(message.metadataTracks))
|
|
@@ -16191,11 +17655,8 @@ var sesame = $root.sesame = (() => {
|
|
|
16191
17655
|
let message = new $root.sesame.v1.outputs.EncodedWebSocketOutputConfig();
|
|
16192
17656
|
if (object.channel != null)
|
|
16193
17657
|
message.channel = String(object.channel);
|
|
16194
|
-
if (object.
|
|
16195
|
-
|
|
16196
|
-
throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.encoder: object expected");
|
|
16197
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
16198
|
-
}
|
|
17658
|
+
if (object.encoderId != null)
|
|
17659
|
+
message.encoderId = String(object.encoderId);
|
|
16199
17660
|
if (object.metadataTracks) {
|
|
16200
17661
|
if (!Array.isArray(object.metadataTracks))
|
|
16201
17662
|
throw TypeError(".sesame.v1.outputs.EncodedWebSocketOutputConfig.metadataTracks: array expected");
|
|
@@ -16213,12 +17674,12 @@ var sesame = $root.sesame = (() => {
|
|
|
16213
17674
|
object.metadataTracks = [];
|
|
16214
17675
|
if (options.defaults) {
|
|
16215
17676
|
object.channel = "";
|
|
16216
|
-
object.
|
|
17677
|
+
object.encoderId = "";
|
|
16217
17678
|
}
|
|
16218
17679
|
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
16219
17680
|
object.channel = message.channel;
|
|
16220
|
-
if (message.
|
|
16221
|
-
object.
|
|
17681
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
17682
|
+
object.encoderId = message.encoderId;
|
|
16222
17683
|
if (message.metadataTracks && message.metadataTracks.length) {
|
|
16223
17684
|
object.metadataTracks = [];
|
|
16224
17685
|
for (let j = 0; j < message.metadataTracks.length; ++j)
|
|
@@ -16245,7 +17706,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16245
17706
|
this[keys[i]] = properties[keys[i]];
|
|
16246
17707
|
}
|
|
16247
17708
|
}
|
|
16248
|
-
EncodedRecorderOutputConfig.prototype.
|
|
17709
|
+
EncodedRecorderOutputConfig.prototype.encoderId = "";
|
|
16249
17710
|
EncodedRecorderOutputConfig.prototype.filename = "";
|
|
16250
17711
|
EncodedRecorderOutputConfig.prototype.sizeGb = 0;
|
|
16251
17712
|
EncodedRecorderOutputConfig.prototype.groupId = "";
|
|
@@ -16256,11 +17717,11 @@ var sesame = $root.sesame = (() => {
|
|
|
16256
17717
|
EncodedRecorderOutputConfig.encode = function encode(message, writer) {
|
|
16257
17718
|
if (!writer)
|
|
16258
17719
|
writer = $Writer.create();
|
|
16259
|
-
if (message.
|
|
16260
|
-
|
|
17720
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
17721
|
+
writer.uint32(
|
|
16261
17722
|
/* id 1, wireType 2 =*/
|
|
16262
17723
|
10
|
|
16263
|
-
).
|
|
17724
|
+
).string(message.encoderId);
|
|
16264
17725
|
if (message.filename != null && Object.hasOwnProperty.call(message, "filename"))
|
|
16265
17726
|
writer.uint32(
|
|
16266
17727
|
/* id 2, wireType 2 =*/
|
|
@@ -16296,7 +17757,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16296
17757
|
break;
|
|
16297
17758
|
switch (tag >>> 3) {
|
|
16298
17759
|
case 1: {
|
|
16299
|
-
message.
|
|
17760
|
+
message.encoderId = reader.string();
|
|
16300
17761
|
break;
|
|
16301
17762
|
}
|
|
16302
17763
|
case 2: {
|
|
@@ -16330,10 +17791,9 @@ var sesame = $root.sesame = (() => {
|
|
|
16330
17791
|
EncodedRecorderOutputConfig.verify = function verify(message) {
|
|
16331
17792
|
if (typeof message !== "object" || message === null)
|
|
16332
17793
|
return "object expected";
|
|
16333
|
-
if (message.
|
|
16334
|
-
|
|
16335
|
-
|
|
16336
|
-
return "encoder." + error;
|
|
17794
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
17795
|
+
if (!$util.isString(message.encoderId))
|
|
17796
|
+
return "encoderId: string expected";
|
|
16337
17797
|
}
|
|
16338
17798
|
if (message.filename != null && message.hasOwnProperty("filename")) {
|
|
16339
17799
|
if (!$util.isString(message.filename))
|
|
@@ -16362,11 +17822,8 @@ var sesame = $root.sesame = (() => {
|
|
|
16362
17822
|
if (object instanceof $root.sesame.v1.outputs.EncodedRecorderOutputConfig)
|
|
16363
17823
|
return object;
|
|
16364
17824
|
let message = new $root.sesame.v1.outputs.EncodedRecorderOutputConfig();
|
|
16365
|
-
if (object.
|
|
16366
|
-
|
|
16367
|
-
throw TypeError(".sesame.v1.outputs.EncodedRecorderOutputConfig.encoder: object expected");
|
|
16368
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
16369
|
-
}
|
|
17825
|
+
if (object.encoderId != null)
|
|
17826
|
+
message.encoderId = String(object.encoderId);
|
|
16370
17827
|
if (object.filename != null)
|
|
16371
17828
|
message.filename = String(object.filename);
|
|
16372
17829
|
if (object.sizeGb != null)
|
|
@@ -16400,14 +17857,14 @@ var sesame = $root.sesame = (() => {
|
|
|
16400
17857
|
options = {};
|
|
16401
17858
|
let object = {};
|
|
16402
17859
|
if (options.defaults) {
|
|
16403
|
-
object.
|
|
17860
|
+
object.encoderId = "";
|
|
16404
17861
|
object.filename = "";
|
|
16405
17862
|
object.sizeGb = 0;
|
|
16406
17863
|
object.groupId = "";
|
|
16407
17864
|
object.recorderType = options.enums === String ? "RECORDER_TYPE_UNSPECIFIED" : 0;
|
|
16408
|
-
}
|
|
16409
|
-
if (message.
|
|
16410
|
-
object.
|
|
17865
|
+
}
|
|
17866
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
17867
|
+
object.encoderId = message.encoderId;
|
|
16411
17868
|
if (message.filename != null && message.hasOwnProperty("filename"))
|
|
16412
17869
|
object.filename = message.filename;
|
|
16413
17870
|
if (message.sizeGb != null && message.hasOwnProperty("sizeGb"))
|
|
@@ -16700,7 +18157,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16700
18157
|
}
|
|
16701
18158
|
}
|
|
16702
18159
|
EncodedSrtOutputConfig.prototype.url = "";
|
|
16703
|
-
EncodedSrtOutputConfig.prototype.
|
|
18160
|
+
EncodedSrtOutputConfig.prototype.encoderId = "";
|
|
16704
18161
|
EncodedSrtOutputConfig.create = function create(properties) {
|
|
16705
18162
|
return new EncodedSrtOutputConfig(properties);
|
|
16706
18163
|
};
|
|
@@ -16712,11 +18169,11 @@ var sesame = $root.sesame = (() => {
|
|
|
16712
18169
|
/* id 1, wireType 2 =*/
|
|
16713
18170
|
10
|
|
16714
18171
|
).string(message.url);
|
|
16715
|
-
if (message.
|
|
16716
|
-
|
|
18172
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
18173
|
+
writer.uint32(
|
|
16717
18174
|
/* id 2, wireType 2 =*/
|
|
16718
18175
|
18
|
|
16719
|
-
).
|
|
18176
|
+
).string(message.encoderId);
|
|
16720
18177
|
return writer;
|
|
16721
18178
|
};
|
|
16722
18179
|
EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -16736,7 +18193,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16736
18193
|
break;
|
|
16737
18194
|
}
|
|
16738
18195
|
case 2: {
|
|
16739
|
-
message.
|
|
18196
|
+
message.encoderId = reader.string();
|
|
16740
18197
|
break;
|
|
16741
18198
|
}
|
|
16742
18199
|
default:
|
|
@@ -16758,10 +18215,9 @@ var sesame = $root.sesame = (() => {
|
|
|
16758
18215
|
if (!$util.isString(message.url))
|
|
16759
18216
|
return "url: string expected";
|
|
16760
18217
|
}
|
|
16761
|
-
if (message.
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
return "encoder." + error;
|
|
18218
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
18219
|
+
if (!$util.isString(message.encoderId))
|
|
18220
|
+
return "encoderId: string expected";
|
|
16765
18221
|
}
|
|
16766
18222
|
return null;
|
|
16767
18223
|
};
|
|
@@ -16771,11 +18227,8 @@ var sesame = $root.sesame = (() => {
|
|
|
16771
18227
|
let message = new $root.sesame.v1.outputs.EncodedSrtOutputConfig();
|
|
16772
18228
|
if (object.url != null)
|
|
16773
18229
|
message.url = String(object.url);
|
|
16774
|
-
if (object.
|
|
16775
|
-
|
|
16776
|
-
throw TypeError(".sesame.v1.outputs.EncodedSrtOutputConfig.encoder: object expected");
|
|
16777
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
16778
|
-
}
|
|
18230
|
+
if (object.encoderId != null)
|
|
18231
|
+
message.encoderId = String(object.encoderId);
|
|
16779
18232
|
return message;
|
|
16780
18233
|
};
|
|
16781
18234
|
EncodedSrtOutputConfig.toObject = function toObject(message, options) {
|
|
@@ -16784,12 +18237,12 @@ var sesame = $root.sesame = (() => {
|
|
|
16784
18237
|
let object = {};
|
|
16785
18238
|
if (options.defaults) {
|
|
16786
18239
|
object.url = "";
|
|
16787
|
-
object.
|
|
18240
|
+
object.encoderId = "";
|
|
16788
18241
|
}
|
|
16789
18242
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
16790
18243
|
object.url = message.url;
|
|
16791
|
-
if (message.
|
|
16792
|
-
object.
|
|
18244
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18245
|
+
object.encoderId = message.encoderId;
|
|
16793
18246
|
return object;
|
|
16794
18247
|
};
|
|
16795
18248
|
EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -16812,7 +18265,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16812
18265
|
this[keys[i]] = properties[keys[i]];
|
|
16813
18266
|
}
|
|
16814
18267
|
}
|
|
16815
|
-
EncodedMoqOutputConfig.prototype.
|
|
18268
|
+
EncodedMoqOutputConfig.prototype.encoderId = "";
|
|
16816
18269
|
EncodedMoqOutputConfig.prototype.url = "";
|
|
16817
18270
|
EncodedMoqOutputConfig.prototype.broadcast = "";
|
|
16818
18271
|
EncodedMoqOutputConfig.prototype.key = "";
|
|
@@ -16823,11 +18276,11 @@ var sesame = $root.sesame = (() => {
|
|
|
16823
18276
|
EncodedMoqOutputConfig.encode = function encode(message, writer) {
|
|
16824
18277
|
if (!writer)
|
|
16825
18278
|
writer = $Writer.create();
|
|
16826
|
-
if (message.
|
|
16827
|
-
|
|
18279
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
18280
|
+
writer.uint32(
|
|
16828
18281
|
/* id 1, wireType 2 =*/
|
|
16829
18282
|
10
|
|
16830
|
-
).
|
|
18283
|
+
).string(message.encoderId);
|
|
16831
18284
|
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
16832
18285
|
writer.uint32(
|
|
16833
18286
|
/* id 2, wireType 2 =*/
|
|
@@ -16864,7 +18317,7 @@ var sesame = $root.sesame = (() => {
|
|
|
16864
18317
|
break;
|
|
16865
18318
|
switch (tag >>> 3) {
|
|
16866
18319
|
case 1: {
|
|
16867
|
-
message.
|
|
18320
|
+
message.encoderId = reader.string();
|
|
16868
18321
|
break;
|
|
16869
18322
|
}
|
|
16870
18323
|
case 2: {
|
|
@@ -16900,10 +18353,9 @@ var sesame = $root.sesame = (() => {
|
|
|
16900
18353
|
EncodedMoqOutputConfig.verify = function verify(message) {
|
|
16901
18354
|
if (typeof message !== "object" || message === null)
|
|
16902
18355
|
return "object expected";
|
|
16903
|
-
if (message.
|
|
16904
|
-
|
|
16905
|
-
|
|
16906
|
-
return "encoder." + error;
|
|
18356
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
18357
|
+
if (!$util.isString(message.encoderId))
|
|
18358
|
+
return "encoderId: string expected";
|
|
16907
18359
|
}
|
|
16908
18360
|
if (message.url != null && message.hasOwnProperty("url")) {
|
|
16909
18361
|
if (!$util.isString(message.url))
|
|
@@ -16930,11 +18382,8 @@ var sesame = $root.sesame = (() => {
|
|
|
16930
18382
|
if (object instanceof $root.sesame.v1.outputs.EncodedMoqOutputConfig)
|
|
16931
18383
|
return object;
|
|
16932
18384
|
let message = new $root.sesame.v1.outputs.EncodedMoqOutputConfig();
|
|
16933
|
-
if (object.
|
|
16934
|
-
|
|
16935
|
-
throw TypeError(".sesame.v1.outputs.EncodedMoqOutputConfig.encoder: object expected");
|
|
16936
|
-
message.encoder = $root.sesame.v1.outputs.EncoderConfig.fromObject(object.encoder);
|
|
16937
|
-
}
|
|
18385
|
+
if (object.encoderId != null)
|
|
18386
|
+
message.encoderId = String(object.encoderId);
|
|
16938
18387
|
if (object.url != null)
|
|
16939
18388
|
message.url = String(object.url);
|
|
16940
18389
|
if (object.broadcast != null)
|
|
@@ -16957,13 +18406,13 @@ var sesame = $root.sesame = (() => {
|
|
|
16957
18406
|
if (options.arrays || options.defaults)
|
|
16958
18407
|
object.metadataTracks = [];
|
|
16959
18408
|
if (options.defaults) {
|
|
16960
|
-
object.
|
|
18409
|
+
object.encoderId = "";
|
|
16961
18410
|
object.url = "";
|
|
16962
18411
|
object.broadcast = "";
|
|
16963
18412
|
object.key = "";
|
|
16964
18413
|
}
|
|
16965
|
-
if (message.
|
|
16966
|
-
object.
|
|
18414
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
18415
|
+
object.encoderId = message.encoderId;
|
|
16967
18416
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
16968
18417
|
object.url = message.url;
|
|
16969
18418
|
if (message.broadcast != null && message.hasOwnProperty("broadcast"))
|
|
@@ -18019,6 +19468,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18019
19468
|
OutputStatus.prototype.url = "";
|
|
18020
19469
|
OutputStatus.prototype.bufferSize = 0;
|
|
18021
19470
|
OutputStatus.prototype.srtStats = null;
|
|
19471
|
+
OutputStatus.prototype.encoderId = "";
|
|
18022
19472
|
let $oneOfFields;
|
|
18023
19473
|
Object.defineProperty(OutputStatus.prototype, "_msg", {
|
|
18024
19474
|
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
@@ -18069,6 +19519,11 @@ var sesame = $root.sesame = (() => {
|
|
|
18069
19519
|
/* id 7, wireType 2 =*/
|
|
18070
19520
|
58
|
|
18071
19521
|
).fork()).ldelim();
|
|
19522
|
+
if (message.encoderId != null && Object.hasOwnProperty.call(message, "encoderId"))
|
|
19523
|
+
writer.uint32(
|
|
19524
|
+
/* id 8, wireType 2 =*/
|
|
19525
|
+
66
|
|
19526
|
+
).string(message.encoderId);
|
|
18072
19527
|
return writer;
|
|
18073
19528
|
};
|
|
18074
19529
|
OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -18111,6 +19566,10 @@ var sesame = $root.sesame = (() => {
|
|
|
18111
19566
|
message.srtStats = $root.sesame.v1.status.SRTSendStatistics.decode(reader, reader.uint32());
|
|
18112
19567
|
break;
|
|
18113
19568
|
}
|
|
19569
|
+
case 8: {
|
|
19570
|
+
message.encoderId = reader.string();
|
|
19571
|
+
break;
|
|
19572
|
+
}
|
|
18114
19573
|
default:
|
|
18115
19574
|
reader.skipType(tag & 7);
|
|
18116
19575
|
break;
|
|
@@ -18179,6 +19638,10 @@ var sesame = $root.sesame = (() => {
|
|
|
18179
19638
|
return "srtStats." + error;
|
|
18180
19639
|
}
|
|
18181
19640
|
}
|
|
19641
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId")) {
|
|
19642
|
+
if (!$util.isString(message.encoderId))
|
|
19643
|
+
return "encoderId: string expected";
|
|
19644
|
+
}
|
|
18182
19645
|
return null;
|
|
18183
19646
|
};
|
|
18184
19647
|
OutputStatus.fromObject = function fromObject(object) {
|
|
@@ -18274,6 +19737,8 @@ var sesame = $root.sesame = (() => {
|
|
|
18274
19737
|
throw TypeError(".sesame.v1.outputs.OutputStatus.srtStats: object expected");
|
|
18275
19738
|
message.srtStats = $root.sesame.v1.status.SRTSendStatistics.fromObject(object.srtStats);
|
|
18276
19739
|
}
|
|
19740
|
+
if (object.encoderId != null)
|
|
19741
|
+
message.encoderId = String(object.encoderId);
|
|
18277
19742
|
return message;
|
|
18278
19743
|
};
|
|
18279
19744
|
OutputStatus.toObject = function toObject(message, options) {
|
|
@@ -18286,6 +19751,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18286
19751
|
object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
|
|
18287
19752
|
object.url = "";
|
|
18288
19753
|
object.bufferSize = 0;
|
|
19754
|
+
object.encoderId = "";
|
|
18289
19755
|
}
|
|
18290
19756
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
18291
19757
|
object.id = message.id;
|
|
@@ -18307,6 +19773,8 @@ var sesame = $root.sesame = (() => {
|
|
|
18307
19773
|
if (options.oneofs)
|
|
18308
19774
|
object._srtStats = "srtStats";
|
|
18309
19775
|
}
|
|
19776
|
+
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
19777
|
+
object.encoderId = message.encoderId;
|
|
18310
19778
|
return object;
|
|
18311
19779
|
};
|
|
18312
19780
|
OutputStatus.prototype.toJSON = function toJSON() {
|
|
@@ -18320,6 +19788,241 @@ var sesame = $root.sesame = (() => {
|
|
|
18320
19788
|
};
|
|
18321
19789
|
return OutputStatus;
|
|
18322
19790
|
}();
|
|
19791
|
+
outputs.EncoderStatus = function() {
|
|
19792
|
+
function EncoderStatus(properties) {
|
|
19793
|
+
if (properties) {
|
|
19794
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19795
|
+
if (properties[keys[i]] != null)
|
|
19796
|
+
this[keys[i]] = properties[keys[i]];
|
|
19797
|
+
}
|
|
19798
|
+
}
|
|
19799
|
+
EncoderStatus.prototype.id = "";
|
|
19800
|
+
EncoderStatus.prototype.type = 0;
|
|
19801
|
+
EncoderStatus.prototype.state = 0;
|
|
19802
|
+
EncoderStatus.prototype.msg = null;
|
|
19803
|
+
EncoderStatus.prototype.compositionId = "";
|
|
19804
|
+
let $oneOfFields;
|
|
19805
|
+
Object.defineProperty(EncoderStatus.prototype, "_msg", {
|
|
19806
|
+
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
19807
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19808
|
+
});
|
|
19809
|
+
EncoderStatus.create = function create(properties) {
|
|
19810
|
+
return new EncoderStatus(properties);
|
|
19811
|
+
};
|
|
19812
|
+
EncoderStatus.encode = function encode(message, writer) {
|
|
19813
|
+
if (!writer)
|
|
19814
|
+
writer = $Writer.create();
|
|
19815
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
19816
|
+
writer.uint32(
|
|
19817
|
+
/* id 1, wireType 2 =*/
|
|
19818
|
+
10
|
|
19819
|
+
).string(message.id);
|
|
19820
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
19821
|
+
writer.uint32(
|
|
19822
|
+
/* id 2, wireType 0 =*/
|
|
19823
|
+
16
|
|
19824
|
+
).int32(message.type);
|
|
19825
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
19826
|
+
writer.uint32(
|
|
19827
|
+
/* id 3, wireType 0 =*/
|
|
19828
|
+
24
|
|
19829
|
+
).int32(message.state);
|
|
19830
|
+
if (message.msg != null && Object.hasOwnProperty.call(message, "msg"))
|
|
19831
|
+
writer.uint32(
|
|
19832
|
+
/* id 4, wireType 2 =*/
|
|
19833
|
+
34
|
|
19834
|
+
).string(message.msg);
|
|
19835
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
19836
|
+
writer.uint32(
|
|
19837
|
+
/* id 5, wireType 2 =*/
|
|
19838
|
+
42
|
|
19839
|
+
).string(message.compositionId);
|
|
19840
|
+
return writer;
|
|
19841
|
+
};
|
|
19842
|
+
EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19843
|
+
return this.encode(message, writer).ldelim();
|
|
19844
|
+
};
|
|
19845
|
+
EncoderStatus.decode = function decode(reader, length, error) {
|
|
19846
|
+
if (!(reader instanceof $Reader))
|
|
19847
|
+
reader = $Reader.create(reader);
|
|
19848
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderStatus();
|
|
19849
|
+
while (reader.pos < end) {
|
|
19850
|
+
let tag = reader.uint32();
|
|
19851
|
+
if (tag === error)
|
|
19852
|
+
break;
|
|
19853
|
+
switch (tag >>> 3) {
|
|
19854
|
+
case 1: {
|
|
19855
|
+
message.id = reader.string();
|
|
19856
|
+
break;
|
|
19857
|
+
}
|
|
19858
|
+
case 2: {
|
|
19859
|
+
message.type = reader.int32();
|
|
19860
|
+
break;
|
|
19861
|
+
}
|
|
19862
|
+
case 3: {
|
|
19863
|
+
message.state = reader.int32();
|
|
19864
|
+
break;
|
|
19865
|
+
}
|
|
19866
|
+
case 4: {
|
|
19867
|
+
message.msg = reader.string();
|
|
19868
|
+
break;
|
|
19869
|
+
}
|
|
19870
|
+
case 5: {
|
|
19871
|
+
message.compositionId = reader.string();
|
|
19872
|
+
break;
|
|
19873
|
+
}
|
|
19874
|
+
default:
|
|
19875
|
+
reader.skipType(tag & 7);
|
|
19876
|
+
break;
|
|
19877
|
+
}
|
|
19878
|
+
}
|
|
19879
|
+
return message;
|
|
19880
|
+
};
|
|
19881
|
+
EncoderStatus.decodeDelimited = function decodeDelimited(reader) {
|
|
19882
|
+
if (!(reader instanceof $Reader))
|
|
19883
|
+
reader = new $Reader(reader);
|
|
19884
|
+
return this.decode(reader, reader.uint32());
|
|
19885
|
+
};
|
|
19886
|
+
EncoderStatus.verify = function verify(message) {
|
|
19887
|
+
if (typeof message !== "object" || message === null)
|
|
19888
|
+
return "object expected";
|
|
19889
|
+
let properties = {};
|
|
19890
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
19891
|
+
if (!$util.isString(message.id))
|
|
19892
|
+
return "id: string expected";
|
|
19893
|
+
}
|
|
19894
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
19895
|
+
switch (message.type) {
|
|
19896
|
+
default:
|
|
19897
|
+
return "type: enum value expected";
|
|
19898
|
+
case 0:
|
|
19899
|
+
case 1:
|
|
19900
|
+
break;
|
|
19901
|
+
}
|
|
19902
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
19903
|
+
switch (message.state) {
|
|
19904
|
+
default:
|
|
19905
|
+
return "state: enum value expected";
|
|
19906
|
+
case 0:
|
|
19907
|
+
case 1:
|
|
19908
|
+
case 2:
|
|
19909
|
+
case 3:
|
|
19910
|
+
case 4:
|
|
19911
|
+
case 5:
|
|
19912
|
+
case 6:
|
|
19913
|
+
break;
|
|
19914
|
+
}
|
|
19915
|
+
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
19916
|
+
properties._msg = 1;
|
|
19917
|
+
if (!$util.isString(message.msg))
|
|
19918
|
+
return "msg: string expected";
|
|
19919
|
+
}
|
|
19920
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
19921
|
+
if (!$util.isString(message.compositionId))
|
|
19922
|
+
return "compositionId: string expected";
|
|
19923
|
+
}
|
|
19924
|
+
return null;
|
|
19925
|
+
};
|
|
19926
|
+
EncoderStatus.fromObject = function fromObject(object) {
|
|
19927
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderStatus)
|
|
19928
|
+
return object;
|
|
19929
|
+
let message = new $root.sesame.v1.outputs.EncoderStatus();
|
|
19930
|
+
if (object.id != null)
|
|
19931
|
+
message.id = String(object.id);
|
|
19932
|
+
switch (object.type) {
|
|
19933
|
+
default:
|
|
19934
|
+
if (typeof object.type === "number") {
|
|
19935
|
+
message.type = object.type;
|
|
19936
|
+
break;
|
|
19937
|
+
}
|
|
19938
|
+
break;
|
|
19939
|
+
case "ENCODER_TYPE_UNSPECIFIED":
|
|
19940
|
+
case 0:
|
|
19941
|
+
message.type = 0;
|
|
19942
|
+
break;
|
|
19943
|
+
case "ENCODER_TYPE_VIDEO":
|
|
19944
|
+
case 1:
|
|
19945
|
+
message.type = 1;
|
|
19946
|
+
break;
|
|
19947
|
+
}
|
|
19948
|
+
switch (object.state) {
|
|
19949
|
+
default:
|
|
19950
|
+
if (typeof object.state === "number") {
|
|
19951
|
+
message.state = object.state;
|
|
19952
|
+
break;
|
|
19953
|
+
}
|
|
19954
|
+
break;
|
|
19955
|
+
case "CONNECTION_STATE_UNSPECIFIED":
|
|
19956
|
+
case 0:
|
|
19957
|
+
message.state = 0;
|
|
19958
|
+
break;
|
|
19959
|
+
case "CONNECTION_STATE_INITIALIZING":
|
|
19960
|
+
case 1:
|
|
19961
|
+
message.state = 1;
|
|
19962
|
+
break;
|
|
19963
|
+
case "CONNECTION_STATE_CONNECTING":
|
|
19964
|
+
case 2:
|
|
19965
|
+
message.state = 2;
|
|
19966
|
+
break;
|
|
19967
|
+
case "CONNECTION_STATE_ONLINE":
|
|
19968
|
+
case 3:
|
|
19969
|
+
message.state = 3;
|
|
19970
|
+
break;
|
|
19971
|
+
case "CONNECTION_STATE_DEGRADED":
|
|
19972
|
+
case 4:
|
|
19973
|
+
message.state = 4;
|
|
19974
|
+
break;
|
|
19975
|
+
case "CONNECTION_STATE_OFFLINE":
|
|
19976
|
+
case 5:
|
|
19977
|
+
message.state = 5;
|
|
19978
|
+
break;
|
|
19979
|
+
case "CONNECTION_STATE_ERROR":
|
|
19980
|
+
case 6:
|
|
19981
|
+
message.state = 6;
|
|
19982
|
+
break;
|
|
19983
|
+
}
|
|
19984
|
+
if (object.msg != null)
|
|
19985
|
+
message.msg = String(object.msg);
|
|
19986
|
+
if (object.compositionId != null)
|
|
19987
|
+
message.compositionId = String(object.compositionId);
|
|
19988
|
+
return message;
|
|
19989
|
+
};
|
|
19990
|
+
EncoderStatus.toObject = function toObject(message, options) {
|
|
19991
|
+
if (!options)
|
|
19992
|
+
options = {};
|
|
19993
|
+
let object = {};
|
|
19994
|
+
if (options.defaults) {
|
|
19995
|
+
object.id = "";
|
|
19996
|
+
object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
|
|
19997
|
+
object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
|
|
19998
|
+
object.compositionId = "";
|
|
19999
|
+
}
|
|
20000
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
20001
|
+
object.id = message.id;
|
|
20002
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
20003
|
+
object.type = options.enums === String ? $root.sesame.v1.outputs.EncoderType[message.type] === void 0 ? message.type : $root.sesame.v1.outputs.EncoderType[message.type] : message.type;
|
|
20004
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
20005
|
+
object.state = options.enums === String ? $root.sesame.v1.common.ConnectionState[message.state] === void 0 ? message.state : $root.sesame.v1.common.ConnectionState[message.state] : message.state;
|
|
20006
|
+
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
20007
|
+
object.msg = message.msg;
|
|
20008
|
+
if (options.oneofs)
|
|
20009
|
+
object._msg = "msg";
|
|
20010
|
+
}
|
|
20011
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
20012
|
+
object.compositionId = message.compositionId;
|
|
20013
|
+
return object;
|
|
20014
|
+
};
|
|
20015
|
+
EncoderStatus.prototype.toJSON = function toJSON() {
|
|
20016
|
+
return this.constructor.toObject(this, import_minimal.default.util.toJSONOptions);
|
|
20017
|
+
};
|
|
20018
|
+
EncoderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
20019
|
+
if (typeUrlPrefix === void 0) {
|
|
20020
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
20021
|
+
}
|
|
20022
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderStatus";
|
|
20023
|
+
};
|
|
20024
|
+
return EncoderStatus;
|
|
20025
|
+
}();
|
|
18323
20026
|
return outputs;
|
|
18324
20027
|
}();
|
|
18325
20028
|
v1.compositor = function() {
|
|
@@ -23738,6 +25441,21 @@ var CommandList = class {
|
|
|
23738
25441
|
item.removeOutput = { id };
|
|
23739
25442
|
return this.add(item, timeOffsetMs);
|
|
23740
25443
|
}
|
|
25444
|
+
encoderAdd(id, cfg, timeOffsetMs) {
|
|
25445
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
25446
|
+
item.addEncoder = { id, ...cfg };
|
|
25447
|
+
return this.add(item, timeOffsetMs);
|
|
25448
|
+
}
|
|
25449
|
+
encoderUpdate(id, cfg, timeOffsetMs) {
|
|
25450
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
25451
|
+
item.updateEncoder = { id, ...cfg };
|
|
25452
|
+
return this.add(item, timeOffsetMs);
|
|
25453
|
+
}
|
|
25454
|
+
encoderRemove(id, timeOffsetMs) {
|
|
25455
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
25456
|
+
item.removeEncoder = { id };
|
|
25457
|
+
return this.add(item, timeOffsetMs);
|
|
25458
|
+
}
|
|
23741
25459
|
audioMixerAdd(id, cfg, timeOffsetMs) {
|
|
23742
25460
|
let item = new sesame.v1.commands.CommandListItem();
|
|
23743
25461
|
item.addAudioMixer = { id, config: cfg };
|