-
Notifications
You must be signed in to change notification settings - Fork 0
/
livekit_ingress.pb.go
1893 lines (1677 loc) · 73.2 KB
/
livekit_ingress.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 LiveKit, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.23.4
// source: livekit_ingress.proto
package livekit
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type IngressInput int32
const (
IngressInput_RTMP_INPUT IngressInput = 0
IngressInput_WHIP_INPUT IngressInput = 1
IngressInput_URL_INPUT IngressInput = 2 // Pull from the provided URL. Only HTTP url are supported, serving either a single media file or a HLS stream
)
// Enum value maps for IngressInput.
var (
IngressInput_name = map[int32]string{
0: "RTMP_INPUT",
1: "WHIP_INPUT",
2: "URL_INPUT",
}
IngressInput_value = map[string]int32{
"RTMP_INPUT": 0,
"WHIP_INPUT": 1,
"URL_INPUT": 2,
}
)
func (x IngressInput) Enum() *IngressInput {
p := new(IngressInput)
*p = x
return p
}
func (x IngressInput) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IngressInput) Descriptor() protoreflect.EnumDescriptor {
return file_livekit_ingress_proto_enumTypes[0].Descriptor()
}
func (IngressInput) Type() protoreflect.EnumType {
return &file_livekit_ingress_proto_enumTypes[0]
}
func (x IngressInput) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IngressInput.Descriptor instead.
func (IngressInput) EnumDescriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{0}
}
type IngressAudioEncodingPreset int32
const (
IngressAudioEncodingPreset_OPUS_STEREO_96KBPS IngressAudioEncodingPreset = 0 // OPUS, 2 channels, 96kbps
IngressAudioEncodingPreset_OPUS_MONO_64KBS IngressAudioEncodingPreset = 1 // OPUS, 1 channel, 64kbps
)
// Enum value maps for IngressAudioEncodingPreset.
var (
IngressAudioEncodingPreset_name = map[int32]string{
0: "OPUS_STEREO_96KBPS",
1: "OPUS_MONO_64KBS",
}
IngressAudioEncodingPreset_value = map[string]int32{
"OPUS_STEREO_96KBPS": 0,
"OPUS_MONO_64KBS": 1,
}
)
func (x IngressAudioEncodingPreset) Enum() *IngressAudioEncodingPreset {
p := new(IngressAudioEncodingPreset)
*p = x
return p
}
func (x IngressAudioEncodingPreset) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IngressAudioEncodingPreset) Descriptor() protoreflect.EnumDescriptor {
return file_livekit_ingress_proto_enumTypes[1].Descriptor()
}
func (IngressAudioEncodingPreset) Type() protoreflect.EnumType {
return &file_livekit_ingress_proto_enumTypes[1]
}
func (x IngressAudioEncodingPreset) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IngressAudioEncodingPreset.Descriptor instead.
func (IngressAudioEncodingPreset) EnumDescriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{1}
}
type IngressVideoEncodingPreset int32
const (
IngressVideoEncodingPreset_H264_720P_30FPS_3_LAYERS IngressVideoEncodingPreset = 0 // 1280x720, 30fps, 1900kbps main layer, 3 layers total
IngressVideoEncodingPreset_H264_1080P_30FPS_3_LAYERS IngressVideoEncodingPreset = 1 // 1980x1080, 30fps, 3500kbps main layer, 3 layers total
IngressVideoEncodingPreset_H264_540P_25FPS_2_LAYERS IngressVideoEncodingPreset = 2 // 960x540, 25fps, 1000kbps main layer, 2 layers total
IngressVideoEncodingPreset_H264_720P_30FPS_1_LAYER IngressVideoEncodingPreset = 3 // 1280x720, 30fps, 1900kbps, no simulcast
IngressVideoEncodingPreset_H264_1080P_30FPS_1_LAYER IngressVideoEncodingPreset = 4 // 1980x1080, 30fps, 3500kbps, no simulcast
IngressVideoEncodingPreset_H264_720P_30FPS_3_LAYERS_HIGH_MOTION IngressVideoEncodingPreset = 5 // 1280x720, 30fps, 2500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content
IngressVideoEncodingPreset_H264_1080P_30FPS_3_LAYERS_HIGH_MOTION IngressVideoEncodingPreset = 6 // 1980x1080, 30fps, 4500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content
IngressVideoEncodingPreset_H264_540P_25FPS_2_LAYERS_HIGH_MOTION IngressVideoEncodingPreset = 7 // 960x540, 25fps, 1300kbps main layer, 2 layers total, higher bitrate for high motion, harder to encode content
IngressVideoEncodingPreset_H264_720P_30FPS_1_LAYER_HIGH_MOTION IngressVideoEncodingPreset = 8 // 1280x720, 30fps, 2500kbps, no simulcast, higher bitrate for high motion, harder to encode content
IngressVideoEncodingPreset_H264_1080P_30FPS_1_LAYER_HIGH_MOTION IngressVideoEncodingPreset = 9 // 1980x1080, 30fps, 4500kbps, no simulcast, higher bitrate for high motion, harder to encode content
)
// Enum value maps for IngressVideoEncodingPreset.
var (
IngressVideoEncodingPreset_name = map[int32]string{
0: "H264_720P_30FPS_3_LAYERS",
1: "H264_1080P_30FPS_3_LAYERS",
2: "H264_540P_25FPS_2_LAYERS",
3: "H264_720P_30FPS_1_LAYER",
4: "H264_1080P_30FPS_1_LAYER",
5: "H264_720P_30FPS_3_LAYERS_HIGH_MOTION",
6: "H264_1080P_30FPS_3_LAYERS_HIGH_MOTION",
7: "H264_540P_25FPS_2_LAYERS_HIGH_MOTION",
8: "H264_720P_30FPS_1_LAYER_HIGH_MOTION",
9: "H264_1080P_30FPS_1_LAYER_HIGH_MOTION",
}
IngressVideoEncodingPreset_value = map[string]int32{
"H264_720P_30FPS_3_LAYERS": 0,
"H264_1080P_30FPS_3_LAYERS": 1,
"H264_540P_25FPS_2_LAYERS": 2,
"H264_720P_30FPS_1_LAYER": 3,
"H264_1080P_30FPS_1_LAYER": 4,
"H264_720P_30FPS_3_LAYERS_HIGH_MOTION": 5,
"H264_1080P_30FPS_3_LAYERS_HIGH_MOTION": 6,
"H264_540P_25FPS_2_LAYERS_HIGH_MOTION": 7,
"H264_720P_30FPS_1_LAYER_HIGH_MOTION": 8,
"H264_1080P_30FPS_1_LAYER_HIGH_MOTION": 9,
}
)
func (x IngressVideoEncodingPreset) Enum() *IngressVideoEncodingPreset {
p := new(IngressVideoEncodingPreset)
*p = x
return p
}
func (x IngressVideoEncodingPreset) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IngressVideoEncodingPreset) Descriptor() protoreflect.EnumDescriptor {
return file_livekit_ingress_proto_enumTypes[2].Descriptor()
}
func (IngressVideoEncodingPreset) Type() protoreflect.EnumType {
return &file_livekit_ingress_proto_enumTypes[2]
}
func (x IngressVideoEncodingPreset) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IngressVideoEncodingPreset.Descriptor instead.
func (IngressVideoEncodingPreset) EnumDescriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{2}
}
type IngressState_Status int32
const (
IngressState_ENDPOINT_INACTIVE IngressState_Status = 0
IngressState_ENDPOINT_BUFFERING IngressState_Status = 1
IngressState_ENDPOINT_PUBLISHING IngressState_Status = 2
IngressState_ENDPOINT_ERROR IngressState_Status = 3
IngressState_ENDPOINT_COMPLETE IngressState_Status = 4
)
// Enum value maps for IngressState_Status.
var (
IngressState_Status_name = map[int32]string{
0: "ENDPOINT_INACTIVE",
1: "ENDPOINT_BUFFERING",
2: "ENDPOINT_PUBLISHING",
3: "ENDPOINT_ERROR",
4: "ENDPOINT_COMPLETE",
}
IngressState_Status_value = map[string]int32{
"ENDPOINT_INACTIVE": 0,
"ENDPOINT_BUFFERING": 1,
"ENDPOINT_PUBLISHING": 2,
"ENDPOINT_ERROR": 3,
"ENDPOINT_COMPLETE": 4,
}
)
func (x IngressState_Status) Enum() *IngressState_Status {
p := new(IngressState_Status)
*p = x
return p
}
func (x IngressState_Status) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IngressState_Status) Descriptor() protoreflect.EnumDescriptor {
return file_livekit_ingress_proto_enumTypes[3].Descriptor()
}
func (IngressState_Status) Type() protoreflect.EnumType {
return &file_livekit_ingress_proto_enumTypes[3]
}
func (x IngressState_Status) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IngressState_Status.Descriptor instead.
func (IngressState_Status) EnumDescriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{6, 0}
}
type CreateIngressRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
InputType IngressInput `protobuf:"varint,1,opt,name=input_type,json=inputType,proto3,enum=livekit.IngressInput" json:"input_type,omitempty"`
// Where to pull media from, only for URL input type
Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"`
// User provided identifier for the ingress
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// room to publish to
RoomName string `protobuf:"bytes,3,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"`
// publish as participant
ParticipantIdentity string `protobuf:"bytes,4,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"`
// name of publishing participant (used for display only)
ParticipantName string `protobuf:"bytes,5,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"`
// whether to pass through the incoming media without transcoding, only compatible with some input types
BypassTranscoding bool `protobuf:"varint,8,opt,name=bypass_transcoding,json=bypassTranscoding,proto3" json:"bypass_transcoding,omitempty"`
Audio *IngressAudioOptions `protobuf:"bytes,6,opt,name=audio,proto3" json:"audio,omitempty"`
Video *IngressVideoOptions `protobuf:"bytes,7,opt,name=video,proto3" json:"video,omitempty"`
}
func (x *CreateIngressRequest) Reset() {
*x = CreateIngressRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_livekit_ingress_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateIngressRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateIngressRequest) ProtoMessage() {}
func (x *CreateIngressRequest) ProtoReflect() protoreflect.Message {
mi := &file_livekit_ingress_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateIngressRequest.ProtoReflect.Descriptor instead.
func (*CreateIngressRequest) Descriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{0}
}
func (x *CreateIngressRequest) GetInputType() IngressInput {
if x != nil {
return x.InputType
}
return IngressInput_RTMP_INPUT
}
func (x *CreateIngressRequest) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *CreateIngressRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CreateIngressRequest) GetRoomName() string {
if x != nil {
return x.RoomName
}
return ""
}
func (x *CreateIngressRequest) GetParticipantIdentity() string {
if x != nil {
return x.ParticipantIdentity
}
return ""
}
func (x *CreateIngressRequest) GetParticipantName() string {
if x != nil {
return x.ParticipantName
}
return ""
}
func (x *CreateIngressRequest) GetBypassTranscoding() bool {
if x != nil {
return x.BypassTranscoding
}
return false
}
func (x *CreateIngressRequest) GetAudio() *IngressAudioOptions {
if x != nil {
return x.Audio
}
return nil
}
func (x *CreateIngressRequest) GetVideo() *IngressVideoOptions {
if x != nil {
return x.Video
}
return nil
}
type IngressAudioOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Source TrackSource `protobuf:"varint,2,opt,name=source,proto3,enum=livekit.TrackSource" json:"source,omitempty"`
// Types that are assignable to EncodingOptions:
//
// *IngressAudioOptions_Preset
// *IngressAudioOptions_Options
EncodingOptions isIngressAudioOptions_EncodingOptions `protobuf_oneof:"encoding_options"`
}
func (x *IngressAudioOptions) Reset() {
*x = IngressAudioOptions{}
if protoimpl.UnsafeEnabled {
mi := &file_livekit_ingress_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IngressAudioOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IngressAudioOptions) ProtoMessage() {}
func (x *IngressAudioOptions) ProtoReflect() protoreflect.Message {
mi := &file_livekit_ingress_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IngressAudioOptions.ProtoReflect.Descriptor instead.
func (*IngressAudioOptions) Descriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{1}
}
func (x *IngressAudioOptions) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *IngressAudioOptions) GetSource() TrackSource {
if x != nil {
return x.Source
}
return TrackSource_UNKNOWN
}
func (m *IngressAudioOptions) GetEncodingOptions() isIngressAudioOptions_EncodingOptions {
if m != nil {
return m.EncodingOptions
}
return nil
}
func (x *IngressAudioOptions) GetPreset() IngressAudioEncodingPreset {
if x, ok := x.GetEncodingOptions().(*IngressAudioOptions_Preset); ok {
return x.Preset
}
return IngressAudioEncodingPreset_OPUS_STEREO_96KBPS
}
func (x *IngressAudioOptions) GetOptions() *IngressAudioEncodingOptions {
if x, ok := x.GetEncodingOptions().(*IngressAudioOptions_Options); ok {
return x.Options
}
return nil
}
type isIngressAudioOptions_EncodingOptions interface {
isIngressAudioOptions_EncodingOptions()
}
type IngressAudioOptions_Preset struct {
Preset IngressAudioEncodingPreset `protobuf:"varint,3,opt,name=preset,proto3,enum=livekit.IngressAudioEncodingPreset,oneof"`
}
type IngressAudioOptions_Options struct {
Options *IngressAudioEncodingOptions `protobuf:"bytes,4,opt,name=options,proto3,oneof"`
}
func (*IngressAudioOptions_Preset) isIngressAudioOptions_EncodingOptions() {}
func (*IngressAudioOptions_Options) isIngressAudioOptions_EncodingOptions() {}
type IngressVideoOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Source TrackSource `protobuf:"varint,2,opt,name=source,proto3,enum=livekit.TrackSource" json:"source,omitempty"`
// Types that are assignable to EncodingOptions:
//
// *IngressVideoOptions_Preset
// *IngressVideoOptions_Options
EncodingOptions isIngressVideoOptions_EncodingOptions `protobuf_oneof:"encoding_options"`
}
func (x *IngressVideoOptions) Reset() {
*x = IngressVideoOptions{}
if protoimpl.UnsafeEnabled {
mi := &file_livekit_ingress_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IngressVideoOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IngressVideoOptions) ProtoMessage() {}
func (x *IngressVideoOptions) ProtoReflect() protoreflect.Message {
mi := &file_livekit_ingress_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IngressVideoOptions.ProtoReflect.Descriptor instead.
func (*IngressVideoOptions) Descriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{2}
}
func (x *IngressVideoOptions) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *IngressVideoOptions) GetSource() TrackSource {
if x != nil {
return x.Source
}
return TrackSource_UNKNOWN
}
func (m *IngressVideoOptions) GetEncodingOptions() isIngressVideoOptions_EncodingOptions {
if m != nil {
return m.EncodingOptions
}
return nil
}
func (x *IngressVideoOptions) GetPreset() IngressVideoEncodingPreset {
if x, ok := x.GetEncodingOptions().(*IngressVideoOptions_Preset); ok {
return x.Preset
}
return IngressVideoEncodingPreset_H264_720P_30FPS_3_LAYERS
}
func (x *IngressVideoOptions) GetOptions() *IngressVideoEncodingOptions {
if x, ok := x.GetEncodingOptions().(*IngressVideoOptions_Options); ok {
return x.Options
}
return nil
}
type isIngressVideoOptions_EncodingOptions interface {
isIngressVideoOptions_EncodingOptions()
}
type IngressVideoOptions_Preset struct {
Preset IngressVideoEncodingPreset `protobuf:"varint,3,opt,name=preset,proto3,enum=livekit.IngressVideoEncodingPreset,oneof"`
}
type IngressVideoOptions_Options struct {
Options *IngressVideoEncodingOptions `protobuf:"bytes,4,opt,name=options,proto3,oneof"`
}
func (*IngressVideoOptions_Preset) isIngressVideoOptions_EncodingOptions() {}
func (*IngressVideoOptions_Options) isIngressVideoOptions_EncodingOptions() {}
type IngressAudioEncodingOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// desired audio codec to publish to room
AudioCodec AudioCodec `protobuf:"varint,1,opt,name=audio_codec,json=audioCodec,proto3,enum=livekit.AudioCodec" json:"audio_codec,omitempty"`
Bitrate uint32 `protobuf:"varint,2,opt,name=bitrate,proto3" json:"bitrate,omitempty"`
DisableDtx bool `protobuf:"varint,3,opt,name=disable_dtx,json=disableDtx,proto3" json:"disable_dtx,omitempty"`
Channels uint32 `protobuf:"varint,4,opt,name=channels,proto3" json:"channels,omitempty"`
}
func (x *IngressAudioEncodingOptions) Reset() {
*x = IngressAudioEncodingOptions{}
if protoimpl.UnsafeEnabled {
mi := &file_livekit_ingress_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IngressAudioEncodingOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IngressAudioEncodingOptions) ProtoMessage() {}
func (x *IngressAudioEncodingOptions) ProtoReflect() protoreflect.Message {
mi := &file_livekit_ingress_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IngressAudioEncodingOptions.ProtoReflect.Descriptor instead.
func (*IngressAudioEncodingOptions) Descriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{3}
}
func (x *IngressAudioEncodingOptions) GetAudioCodec() AudioCodec {
if x != nil {
return x.AudioCodec
}
return AudioCodec_DEFAULT_AC
}
func (x *IngressAudioEncodingOptions) GetBitrate() uint32 {
if x != nil {
return x.Bitrate
}
return 0
}
func (x *IngressAudioEncodingOptions) GetDisableDtx() bool {
if x != nil {
return x.DisableDtx
}
return false
}
func (x *IngressAudioEncodingOptions) GetChannels() uint32 {
if x != nil {
return x.Channels
}
return 0
}
type IngressVideoEncodingOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// desired codec to publish to room
VideoCodec VideoCodec `protobuf:"varint,1,opt,name=video_codec,json=videoCodec,proto3,enum=livekit.VideoCodec" json:"video_codec,omitempty"`
FrameRate float64 `protobuf:"fixed64,2,opt,name=frame_rate,json=frameRate,proto3" json:"frame_rate,omitempty"`
// simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions
Layers []*VideoLayer `protobuf:"bytes,3,rep,name=layers,proto3" json:"layers,omitempty"`
}
func (x *IngressVideoEncodingOptions) Reset() {
*x = IngressVideoEncodingOptions{}
if protoimpl.UnsafeEnabled {
mi := &file_livekit_ingress_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IngressVideoEncodingOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IngressVideoEncodingOptions) ProtoMessage() {}
func (x *IngressVideoEncodingOptions) ProtoReflect() protoreflect.Message {
mi := &file_livekit_ingress_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IngressVideoEncodingOptions.ProtoReflect.Descriptor instead.
func (*IngressVideoEncodingOptions) Descriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{4}
}
func (x *IngressVideoEncodingOptions) GetVideoCodec() VideoCodec {
if x != nil {
return x.VideoCodec
}
return VideoCodec_DEFAULT_VC
}
func (x *IngressVideoEncodingOptions) GetFrameRate() float64 {
if x != nil {
return x.FrameRate
}
return 0
}
func (x *IngressVideoEncodingOptions) GetLayers() []*VideoLayer {
if x != nil {
return x.Layers
}
return nil
}
type IngressInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
StreamKey string `protobuf:"bytes,3,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"`
Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // URL to point the encoder to for push (RTMP, WHIP), or location to pull media from for pull (URL)
// for RTMP input, it'll be a rtmp:// URL
// for FILE input, it'll be a http:// URL
// for SRT input, it'll be a srt:// URL
InputType IngressInput `protobuf:"varint,5,opt,name=input_type,json=inputType,proto3,enum=livekit.IngressInput" json:"input_type,omitempty"`
BypassTranscoding bool `protobuf:"varint,13,opt,name=bypass_transcoding,json=bypassTranscoding,proto3" json:"bypass_transcoding,omitempty"`
Audio *IngressAudioOptions `protobuf:"bytes,6,opt,name=audio,proto3" json:"audio,omitempty"`
Video *IngressVideoOptions `protobuf:"bytes,7,opt,name=video,proto3" json:"video,omitempty"`
RoomName string `protobuf:"bytes,8,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"`
ParticipantIdentity string `protobuf:"bytes,9,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"`
ParticipantName string `protobuf:"bytes,10,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"`
Reusable bool `protobuf:"varint,11,opt,name=reusable,proto3" json:"reusable,omitempty"`
State *IngressState `protobuf:"bytes,12,opt,name=state,proto3" json:"state,omitempty"` // Description of error/stream non compliance and debug info for publisher otherwise (received bitrate, resolution, bandwidth)
}
func (x *IngressInfo) Reset() {
*x = IngressInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_livekit_ingress_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IngressInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IngressInfo) ProtoMessage() {}
func (x *IngressInfo) ProtoReflect() protoreflect.Message {
mi := &file_livekit_ingress_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IngressInfo.ProtoReflect.Descriptor instead.
func (*IngressInfo) Descriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{5}
}
func (x *IngressInfo) GetIngressId() string {
if x != nil {
return x.IngressId
}
return ""
}
func (x *IngressInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *IngressInfo) GetStreamKey() string {
if x != nil {
return x.StreamKey
}
return ""
}
func (x *IngressInfo) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *IngressInfo) GetInputType() IngressInput {
if x != nil {
return x.InputType
}
return IngressInput_RTMP_INPUT
}
func (x *IngressInfo) GetBypassTranscoding() bool {
if x != nil {
return x.BypassTranscoding
}
return false
}
func (x *IngressInfo) GetAudio() *IngressAudioOptions {
if x != nil {
return x.Audio
}
return nil
}
func (x *IngressInfo) GetVideo() *IngressVideoOptions {
if x != nil {
return x.Video
}
return nil
}
func (x *IngressInfo) GetRoomName() string {
if x != nil {
return x.RoomName
}
return ""
}
func (x *IngressInfo) GetParticipantIdentity() string {
if x != nil {
return x.ParticipantIdentity
}
return ""
}
func (x *IngressInfo) GetParticipantName() string {
if x != nil {
return x.ParticipantName
}
return ""
}
func (x *IngressInfo) GetReusable() bool {
if x != nil {
return x.Reusable
}
return false
}
func (x *IngressInfo) GetState() *IngressState {
if x != nil {
return x.State
}
return nil
}
type IngressState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Status IngressState_Status `protobuf:"varint,1,opt,name=status,proto3,enum=livekit.IngressState_Status" json:"status,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Error/non compliance description if any
Video *InputVideoState `protobuf:"bytes,3,opt,name=video,proto3" json:"video,omitempty"`
Audio *InputAudioState `protobuf:"bytes,4,opt,name=audio,proto3" json:"audio,omitempty"`
RoomId string `protobuf:"bytes,5,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // ID of the current/previous room published to
StartedAt int64 `protobuf:"varint,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
EndedAt int64 `protobuf:"varint,8,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"`
ResourceId string `protobuf:"bytes,9,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
Tracks []*TrackInfo `protobuf:"bytes,6,rep,name=tracks,proto3" json:"tracks,omitempty"`
}
func (x *IngressState) Reset() {
*x = IngressState{}
if protoimpl.UnsafeEnabled {
mi := &file_livekit_ingress_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IngressState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IngressState) ProtoMessage() {}
func (x *IngressState) ProtoReflect() protoreflect.Message {
mi := &file_livekit_ingress_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IngressState.ProtoReflect.Descriptor instead.
func (*IngressState) Descriptor() ([]byte, []int) {
return file_livekit_ingress_proto_rawDescGZIP(), []int{6}
}
func (x *IngressState) GetStatus() IngressState_Status {
if x != nil {
return x.Status
}
return IngressState_ENDPOINT_INACTIVE
}
func (x *IngressState) GetError() string {
if x != nil {
return x.Error
}
return ""
}
func (x *IngressState) GetVideo() *InputVideoState {
if x != nil {
return x.Video
}
return nil
}
func (x *IngressState) GetAudio() *InputAudioState {
if x != nil {
return x.Audio
}
return nil
}
func (x *IngressState) GetRoomId() string {
if x != nil {
return x.RoomId
}
return ""
}
func (x *IngressState) GetStartedAt() int64 {
if x != nil {
return x.StartedAt
}
return 0
}
func (x *IngressState) GetEndedAt() int64 {
if x != nil {
return x.EndedAt
}
return 0
}
func (x *IngressState) GetResourceId() string {
if x != nil {
return x.ResourceId
}
return ""
}
func (x *IngressState) GetTracks() []*TrackInfo {
if x != nil {
return x.Tracks
}
return nil
}
type InputVideoState struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
AverageBitrate uint32 `protobuf:"varint,2,opt,name=average_bitrate,json=averageBitrate,proto3" json:"average_bitrate,omitempty"`
Width uint32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
Height uint32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
Framerate float64 `protobuf:"fixed64,5,opt,name=framerate,proto3" json:"framerate,omitempty"`
}
func (x *InputVideoState) Reset() {
*x = InputVideoState{}
if protoimpl.UnsafeEnabled {
mi := &file_livekit_ingress_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InputVideoState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InputVideoState) ProtoMessage() {}
func (x *InputVideoState) ProtoReflect() protoreflect.Message {
mi := &file_livekit_ingress_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}