Documentation ¶
Index ¶
- Variables
- func RegisterRTCServer(s grpc.ServiceRegistrar, srv RTCServer)
- type ActiveSpeaker
- type AudioLevelSpeaker
- func (*AudioLevelSpeaker) Descriptor() ([]byte, []int)deprecated
- func (x *AudioLevelSpeaker) GetActive() bool
- func (x *AudioLevelSpeaker) GetLevel() float32
- func (x *AudioLevelSpeaker) GetSid() string
- func (*AudioLevelSpeaker) ProtoMessage()
- func (x *AudioLevelSpeaker) ProtoReflect() protoreflect.Message
- func (x *AudioLevelSpeaker) Reset()
- func (x *AudioLevelSpeaker) String() string
- type Error
- type JoinReply
- func (*JoinReply) Descriptor() ([]byte, []int)deprecated
- func (x *JoinReply) GetDescription() *SessionDescription
- func (x *JoinReply) GetError() *Error
- func (x *JoinReply) GetSuccess() bool
- func (*JoinReply) ProtoMessage()
- func (x *JoinReply) ProtoReflect() protoreflect.Message
- func (x *JoinReply) Reset()
- func (x *JoinReply) String() string
- type JoinRequest
- func (*JoinRequest) Descriptor() ([]byte, []int)deprecated
- func (x *JoinRequest) GetConfig() map[string]string
- func (x *JoinRequest) GetDescription() *SessionDescription
- func (x *JoinRequest) GetSid() string
- func (x *JoinRequest) GetUid() string
- func (*JoinRequest) ProtoMessage()
- func (x *JoinRequest) ProtoReflect() protoreflect.Message
- func (x *JoinRequest) Reset()
- func (x *JoinRequest) String() string
- type MediaType
- type RTCClient
- type RTCServer
- type RTC_SignalClient
- type RTC_SignalServer
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)deprecated
- func (x *Reply) GetDescription() *SessionDescription
- func (x *Reply) GetError() *Error
- func (x *Reply) GetJoin() *JoinReply
- func (m *Reply) GetPayload() isReply_Payload
- func (x *Reply) GetSubscription() *SubscriptionReply
- func (x *Reply) GetTrackEvent() *TrackEvent
- func (x *Reply) GetTrickle() *Trickle
- func (*Reply) ProtoMessage()
- func (x *Reply) ProtoReflect() protoreflect.Message
- func (x *Reply) Reset()
- func (x *Reply) String() string
- type Reply_Description
- type Reply_Error
- type Reply_Join
- type Reply_Subscription
- type Reply_TrackEvent
- type Reply_Trickle
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetDescription() *SessionDescription
- func (x *Request) GetJoin() *JoinRequest
- func (m *Request) GetPayload() isRequest_Payload
- func (x *Request) GetSubscription() *SubscriptionRequest
- func (x *Request) GetTrickle() *Trickle
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Request_Description
- type Request_Join
- type Request_Subscription
- type Request_Trickle
- type SessionDescription
- func (*SessionDescription) Descriptor() ([]byte, []int)deprecated
- func (x *SessionDescription) GetSdp() string
- func (x *SessionDescription) GetTarget() Target
- func (x *SessionDescription) GetTrackInfos() []*TrackInfo
- func (x *SessionDescription) GetType() string
- func (*SessionDescription) ProtoMessage()
- func (x *SessionDescription) ProtoReflect() protoreflect.Message
- func (x *SessionDescription) Reset()
- func (x *SessionDescription) String() string
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)deprecated
- func (x *Subscription) GetLayer() string
- func (x *Subscription) GetMute() bool
- func (x *Subscription) GetSubscribe() bool
- func (x *Subscription) GetTrackId() string
- func (*Subscription) ProtoMessage()
- func (x *Subscription) ProtoReflect() protoreflect.Message
- func (x *Subscription) Reset()
- func (x *Subscription) String() string
- type SubscriptionReply
- func (*SubscriptionReply) Descriptor() ([]byte, []int)deprecated
- func (x *SubscriptionReply) GetError() *Error
- func (x *SubscriptionReply) GetSuccess() bool
- func (*SubscriptionReply) ProtoMessage()
- func (x *SubscriptionReply) ProtoReflect() protoreflect.Message
- func (x *SubscriptionReply) Reset()
- func (x *SubscriptionReply) String() string
- type SubscriptionRequest
- func (*SubscriptionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscriptionRequest) GetSubscriptions() []*Subscription
- func (*SubscriptionRequest) ProtoMessage()
- func (x *SubscriptionRequest) ProtoReflect() protoreflect.Message
- func (x *SubscriptionRequest) Reset()
- func (x *SubscriptionRequest) String() string
- type Target
- type TrackEvent
- func (*TrackEvent) Descriptor() ([]byte, []int)deprecated
- func (x *TrackEvent) GetState() TrackEvent_State
- func (x *TrackEvent) GetTracks() []*TrackInfo
- func (x *TrackEvent) GetUid() string
- func (*TrackEvent) ProtoMessage()
- func (x *TrackEvent) ProtoReflect() protoreflect.Message
- func (x *TrackEvent) Reset()
- func (x *TrackEvent) String() string
- type TrackEvent_State
- func (TrackEvent_State) Descriptor() protoreflect.EnumDescriptor
- func (x TrackEvent_State) Enum() *TrackEvent_State
- func (TrackEvent_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x TrackEvent_State) Number() protoreflect.EnumNumber
- func (x TrackEvent_State) String() string
- func (TrackEvent_State) Type() protoreflect.EnumType
- type TrackInfo
- func (*TrackInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TrackInfo) GetFrameRate() uint32
- func (x *TrackInfo) GetHeight() uint32
- func (x *TrackInfo) GetId() string
- func (x *TrackInfo) GetKind() string
- func (x *TrackInfo) GetLabel() string
- func (x *TrackInfo) GetLayer() string
- func (x *TrackInfo) GetMuted() bool
- func (x *TrackInfo) GetStreamId() string
- func (x *TrackInfo) GetType() MediaType
- func (x *TrackInfo) GetWidth() uint32
- func (*TrackInfo) ProtoMessage()
- func (x *TrackInfo) ProtoReflect() protoreflect.Message
- func (x *TrackInfo) Reset()
- func (x *TrackInfo) String() string
- type Trickle
- type UnimplementedRTCServer
- type UnsafeRTCServer
- type UpdateTrackReply
- func (*UpdateTrackReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTrackReply) GetError() *Error
- func (x *UpdateTrackReply) GetSuccess() bool
- func (*UpdateTrackReply) ProtoMessage()
- func (x *UpdateTrackReply) ProtoReflect() protoreflect.Message
- func (x *UpdateTrackReply) Reset()
- func (x *UpdateTrackReply) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Target_name = map[int32]string{ 0: "PUBLISHER", 1: "SUBSCRIBER", } Target_value = map[string]int32{ "PUBLISHER": 0, "SUBSCRIBER": 1, } )
Enum value maps for Target.
var ( MediaType_name = map[int32]string{ 0: "MediaUnknown", 1: "UserMedia", 2: "ScreenCapture", 3: "Cavans", 4: "Streaming", 5: "VoIP", } MediaType_value = map[string]int32{ "MediaUnknown": 0, "UserMedia": 1, "ScreenCapture": 2, "Cavans": 3, "Streaming": 4, "VoIP": 5, } )
Enum value maps for MediaType.
var ( TrackEvent_State_name = map[int32]string{ 0: "ADD", 1: "UPDATE", 2: "REMOVE", } TrackEvent_State_value = map[string]int32{ "ADD": 0, "UPDATE": 1, "REMOVE": 2, } )
Enum value maps for TrackEvent_State.
var File_proto_rtc_rtc_proto protoreflect.FileDescriptor
var RTC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rtc.RTC", HandlerType: (*RTCServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Signal", Handler: _RTC_Signal_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "proto/rtc/rtc.proto", }
RTC_ServiceDesc is the grpc.ServiceDesc for RTC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRTCServer ¶
func RegisterRTCServer(s grpc.ServiceRegistrar, srv RTCServer)
Types ¶
type ActiveSpeaker ¶ added in v1.10.0
type ActiveSpeaker struct { Speakers []*AudioLevelSpeaker `protobuf:"bytes,1,rep,name=speakers,proto3" json:"speakers,omitempty"` // contains filtered or unexported fields }
func (*ActiveSpeaker) Descriptor
deprecated
added in
v1.10.0
func (*ActiveSpeaker) Descriptor() ([]byte, []int)
Deprecated: Use ActiveSpeaker.ProtoReflect.Descriptor instead.
func (*ActiveSpeaker) GetSpeakers ¶ added in v1.10.0
func (x *ActiveSpeaker) GetSpeakers() []*AudioLevelSpeaker
func (*ActiveSpeaker) ProtoMessage ¶ added in v1.10.0
func (*ActiveSpeaker) ProtoMessage()
func (*ActiveSpeaker) ProtoReflect ¶ added in v1.10.0
func (x *ActiveSpeaker) ProtoReflect() protoreflect.Message
func (*ActiveSpeaker) Reset ¶ added in v1.10.0
func (x *ActiveSpeaker) Reset()
func (*ActiveSpeaker) String ¶ added in v1.10.0
func (x *ActiveSpeaker) String() string
type AudioLevelSpeaker ¶ added in v1.10.0
type AudioLevelSpeaker struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` // audio level Level float32 `protobuf:"fixed32,2,opt,name=level,proto3" json:"level,omitempty"` // speaker active or not Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"` // contains filtered or unexported fields }
func (*AudioLevelSpeaker) Descriptor
deprecated
added in
v1.10.0
func (*AudioLevelSpeaker) Descriptor() ([]byte, []int)
Deprecated: Use AudioLevelSpeaker.ProtoReflect.Descriptor instead.
func (*AudioLevelSpeaker) GetActive ¶ added in v1.10.0
func (x *AudioLevelSpeaker) GetActive() bool
func (*AudioLevelSpeaker) GetLevel ¶ added in v1.10.0
func (x *AudioLevelSpeaker) GetLevel() float32
func (*AudioLevelSpeaker) GetSid ¶ added in v1.10.0
func (x *AudioLevelSpeaker) GetSid() string
func (*AudioLevelSpeaker) ProtoMessage ¶ added in v1.10.0
func (*AudioLevelSpeaker) ProtoMessage()
func (*AudioLevelSpeaker) ProtoReflect ¶ added in v1.10.0
func (x *AudioLevelSpeaker) ProtoReflect() protoreflect.Message
func (*AudioLevelSpeaker) Reset ¶ added in v1.10.0
func (x *AudioLevelSpeaker) Reset()
func (*AudioLevelSpeaker) String ¶ added in v1.10.0
func (x *AudioLevelSpeaker) String() string
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type JoinReply ¶
type JoinReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` Description *SessionDescription `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*JoinReply) Descriptor
deprecated
func (*JoinReply) GetDescription ¶ added in v1.10.0
func (x *JoinReply) GetDescription() *SessionDescription
func (*JoinReply) GetSuccess ¶
func (*JoinReply) ProtoMessage ¶
func (*JoinReply) ProtoMessage()
func (*JoinReply) ProtoReflect ¶
func (x *JoinReply) ProtoReflect() protoreflect.Message
type JoinRequest ¶
type JoinRequest struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` Config map[string]string `` /* 153-byte string literal not displayed */ Description *SessionDescription `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*JoinRequest) Descriptor
deprecated
func (*JoinRequest) Descriptor() ([]byte, []int)
Deprecated: Use JoinRequest.ProtoReflect.Descriptor instead.
func (*JoinRequest) GetConfig ¶ added in v1.10.0
func (x *JoinRequest) GetConfig() map[string]string
func (*JoinRequest) GetDescription ¶ added in v1.10.0
func (x *JoinRequest) GetDescription() *SessionDescription
func (*JoinRequest) GetSid ¶
func (x *JoinRequest) GetSid() string
func (*JoinRequest) GetUid ¶
func (x *JoinRequest) GetUid() string
func (*JoinRequest) ProtoMessage ¶
func (*JoinRequest) ProtoMessage()
func (*JoinRequest) ProtoReflect ¶
func (x *JoinRequest) ProtoReflect() protoreflect.Message
func (*JoinRequest) Reset ¶
func (x *JoinRequest) Reset()
func (*JoinRequest) String ¶
func (x *JoinRequest) String() string
type MediaType ¶ added in v1.10.0
type MediaType int32
func (MediaType) Descriptor ¶ added in v1.10.0
func (MediaType) Descriptor() protoreflect.EnumDescriptor
func (MediaType) EnumDescriptor
deprecated
added in
v1.10.0
func (MediaType) Number ¶ added in v1.10.0
func (x MediaType) Number() protoreflect.EnumNumber
func (MediaType) Type ¶ added in v1.10.0
func (MediaType) Type() protoreflect.EnumType
type RTCClient ¶
type RTCClient interface {
Signal(ctx context.Context, opts ...grpc.CallOption) (RTC_SignalClient, error)
}
RTCClient is the client API for RTC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRTCClient ¶
func NewRTCClient(cc grpc.ClientConnInterface) RTCClient
type RTCServer ¶
type RTCServer interface { Signal(RTC_SignalServer) error // contains filtered or unexported methods }
RTCServer is the server API for RTC service. All implementations must embed UnimplementedRTCServer for forward compatibility
type RTC_SignalClient ¶
type RTC_SignalServer ¶
type Reply ¶ added in v1.10.0
type Reply struct { // Types that are assignable to Payload: // *Reply_Join // *Reply_Description // *Reply_Trickle // *Reply_TrackEvent // *Reply_Subscription // *Reply_Error Payload isReply_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
added in
v1.10.0
func (*Reply) GetDescription ¶ added in v1.10.0
func (x *Reply) GetDescription() *SessionDescription
func (*Reply) GetPayload ¶ added in v1.10.0
func (m *Reply) GetPayload() isReply_Payload
func (*Reply) GetSubscription ¶ added in v1.10.0
func (x *Reply) GetSubscription() *SubscriptionReply
func (*Reply) GetTrackEvent ¶ added in v1.10.0
func (x *Reply) GetTrackEvent() *TrackEvent
func (*Reply) GetTrickle ¶ added in v1.10.0
func (*Reply) ProtoMessage ¶ added in v1.10.0
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶ added in v1.10.0
func (x *Reply) ProtoReflect() protoreflect.Message
type Reply_Description ¶ added in v1.10.0
type Reply_Description struct {
Description *SessionDescription `protobuf:"bytes,2,opt,name=description,proto3,oneof"`
}
type Reply_Error ¶ added in v1.10.0
type Reply_Error struct { // Error Error *Error `protobuf:"bytes,7,opt,name=error,proto3,oneof"` }
type Reply_Join ¶ added in v1.10.0
type Reply_Join struct { // Basic API Reply Join *JoinReply `protobuf:"bytes,1,opt,name=join,proto3,oneof"` }
type Reply_Subscription ¶ added in v1.10.0
type Reply_Subscription struct { // Command Reply Subscription *SubscriptionReply `protobuf:"bytes,5,opt,name=subscription,proto3,oneof"` }
type Reply_TrackEvent ¶ added in v1.10.0
type Reply_TrackEvent struct { // Event TrackEvent *TrackEvent `protobuf:"bytes,4,opt,name=trackEvent,proto3,oneof"` }
type Reply_Trickle ¶ added in v1.10.0
type Reply_Trickle struct {
Trickle *Trickle `protobuf:"bytes,3,opt,name=trickle,proto3,oneof"`
}
type Request ¶ added in v1.10.0
type Request struct { // Types that are assignable to Payload: // *Request_Join // *Request_Description // *Request_Trickle // *Request_Subscription Payload isRequest_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
added in
v1.10.0
func (*Request) GetDescription ¶ added in v1.10.0
func (x *Request) GetDescription() *SessionDescription
func (*Request) GetJoin ¶ added in v1.10.0
func (x *Request) GetJoin() *JoinRequest
func (*Request) GetPayload ¶ added in v1.10.0
func (m *Request) GetPayload() isRequest_Payload
func (*Request) GetSubscription ¶ added in v1.10.0
func (x *Request) GetSubscription() *SubscriptionRequest
func (*Request) GetTrickle ¶ added in v1.10.0
func (*Request) ProtoMessage ¶ added in v1.10.0
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶ added in v1.10.0
func (x *Request) ProtoReflect() protoreflect.Message
type Request_Description ¶ added in v1.10.0
type Request_Description struct {
Description *SessionDescription `protobuf:"bytes,2,opt,name=description,proto3,oneof"`
}
type Request_Join ¶ added in v1.10.0
type Request_Join struct { // Basic API Request Join *JoinRequest `protobuf:"bytes,1,opt,name=join,proto3,oneof"` }
type Request_Subscription ¶ added in v1.10.0
type Request_Subscription struct { // Command Subscription *SubscriptionRequest `protobuf:"bytes,4,opt,name=subscription,proto3,oneof"` }
type Request_Trickle ¶ added in v1.10.0
type Request_Trickle struct {
Trickle *Trickle `protobuf:"bytes,3,opt,name=trickle,proto3,oneof"`
}
type SessionDescription ¶ added in v1.10.0
type SessionDescription struct { Target Target `protobuf:"varint,1,opt,name=target,proto3,enum=rtc.Target" json:"target,omitempty"` // 'offer' | 'answer' Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // sdp contents Sdp string `protobuf:"bytes,3,opt,name=sdp,proto3" json:"sdp,omitempty"` // sdp metdata TrackInfos []*TrackInfo `protobuf:"bytes,4,rep,name=trackInfos,proto3" json:"trackInfos,omitempty"` // contains filtered or unexported fields }
func (*SessionDescription) Descriptor
deprecated
added in
v1.10.0
func (*SessionDescription) Descriptor() ([]byte, []int)
Deprecated: Use SessionDescription.ProtoReflect.Descriptor instead.
func (*SessionDescription) GetSdp ¶ added in v1.10.0
func (x *SessionDescription) GetSdp() string
func (*SessionDescription) GetTarget ¶ added in v1.10.0
func (x *SessionDescription) GetTarget() Target
func (*SessionDescription) GetTrackInfos ¶ added in v1.10.0
func (x *SessionDescription) GetTrackInfos() []*TrackInfo
func (*SessionDescription) GetType ¶ added in v1.10.0
func (x *SessionDescription) GetType() string
func (*SessionDescription) ProtoMessage ¶ added in v1.10.0
func (*SessionDescription) ProtoMessage()
func (*SessionDescription) ProtoReflect ¶ added in v1.10.0
func (x *SessionDescription) ProtoReflect() protoreflect.Message
func (*SessionDescription) Reset ¶ added in v1.10.0
func (x *SessionDescription) Reset()
func (*SessionDescription) String ¶ added in v1.10.0
func (x *SessionDescription) String() string
type Subscription ¶ added in v1.10.0
type Subscription struct { TrackId string `protobuf:"bytes,2,opt,name=trackId,proto3" json:"trackId,omitempty"` Mute bool `protobuf:"varint,3,opt,name=mute,proto3" json:"mute,omitempty"` // mute track or not Subscribe bool `protobuf:"varint,4,opt,name=subscribe,proto3" json:"subscribe,omitempty"` // sub track or not Layer string `protobuf:"bytes,5,opt,name=layer,proto3" json:"layer,omitempty"` // simulcast or svc layer // contains filtered or unexported fields }
func (*Subscription) Descriptor
deprecated
added in
v1.10.0
func (*Subscription) Descriptor() ([]byte, []int)
Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) GetLayer ¶ added in v1.10.0
func (x *Subscription) GetLayer() string
func (*Subscription) GetMute ¶ added in v1.10.0
func (x *Subscription) GetMute() bool
func (*Subscription) GetSubscribe ¶ added in v1.10.0
func (x *Subscription) GetSubscribe() bool
func (*Subscription) GetTrackId ¶ added in v1.10.0
func (x *Subscription) GetTrackId() string
func (*Subscription) ProtoMessage ¶ added in v1.10.0
func (*Subscription) ProtoMessage()
func (*Subscription) ProtoReflect ¶ added in v1.10.0
func (x *Subscription) ProtoReflect() protoreflect.Message
func (*Subscription) Reset ¶ added in v1.10.0
func (x *Subscription) Reset()
func (*Subscription) String ¶ added in v1.10.0
func (x *Subscription) String() string
type SubscriptionReply ¶ added in v1.10.0
type SubscriptionReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*SubscriptionReply) Descriptor
deprecated
added in
v1.10.0
func (*SubscriptionReply) Descriptor() ([]byte, []int)
Deprecated: Use SubscriptionReply.ProtoReflect.Descriptor instead.
func (*SubscriptionReply) GetError ¶ added in v1.10.0
func (x *SubscriptionReply) GetError() *Error
func (*SubscriptionReply) GetSuccess ¶ added in v1.10.0
func (x *SubscriptionReply) GetSuccess() bool
func (*SubscriptionReply) ProtoMessage ¶ added in v1.10.0
func (*SubscriptionReply) ProtoMessage()
func (*SubscriptionReply) ProtoReflect ¶ added in v1.10.0
func (x *SubscriptionReply) ProtoReflect() protoreflect.Message
func (*SubscriptionReply) Reset ¶ added in v1.10.0
func (x *SubscriptionReply) Reset()
func (*SubscriptionReply) String ¶ added in v1.10.0
func (x *SubscriptionReply) String() string
type SubscriptionRequest ¶ added in v1.10.0
type SubscriptionRequest struct { Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` // contains filtered or unexported fields }
func (*SubscriptionRequest) Descriptor
deprecated
added in
v1.10.0
func (*SubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscriptionRequest.ProtoReflect.Descriptor instead.
func (*SubscriptionRequest) GetSubscriptions ¶ added in v1.10.0
func (x *SubscriptionRequest) GetSubscriptions() []*Subscription
func (*SubscriptionRequest) ProtoMessage ¶ added in v1.10.0
func (*SubscriptionRequest) ProtoMessage()
func (*SubscriptionRequest) ProtoReflect ¶ added in v1.10.0
func (x *SubscriptionRequest) ProtoReflect() protoreflect.Message
func (*SubscriptionRequest) Reset ¶ added in v1.10.0
func (x *SubscriptionRequest) Reset()
func (*SubscriptionRequest) String ¶ added in v1.10.0
func (x *SubscriptionRequest) String() string
type Target ¶
type Target int32
func (Target) Descriptor ¶
func (Target) Descriptor() protoreflect.EnumDescriptor
func (Target) EnumDescriptor
deprecated
func (Target) Number ¶
func (x Target) Number() protoreflect.EnumNumber
func (Target) Type ¶
func (Target) Type() protoreflect.EnumType
type TrackEvent ¶ added in v1.10.0
type TrackEvent struct { State TrackEvent_State `protobuf:"varint,1,opt,name=state,proto3,enum=rtc.TrackEvent_State" json:"state,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` Tracks []*TrackInfo `protobuf:"bytes,3,rep,name=tracks,proto3" json:"tracks,omitempty"` // contains filtered or unexported fields }
func (*TrackEvent) Descriptor
deprecated
added in
v1.10.0
func (*TrackEvent) Descriptor() ([]byte, []int)
Deprecated: Use TrackEvent.ProtoReflect.Descriptor instead.
func (*TrackEvent) GetState ¶ added in v1.10.0
func (x *TrackEvent) GetState() TrackEvent_State
func (*TrackEvent) GetTracks ¶ added in v1.10.0
func (x *TrackEvent) GetTracks() []*TrackInfo
func (*TrackEvent) GetUid ¶ added in v1.10.0
func (x *TrackEvent) GetUid() string
func (*TrackEvent) ProtoMessage ¶ added in v1.10.0
func (*TrackEvent) ProtoMessage()
func (*TrackEvent) ProtoReflect ¶ added in v1.10.0
func (x *TrackEvent) ProtoReflect() protoreflect.Message
func (*TrackEvent) Reset ¶ added in v1.10.0
func (x *TrackEvent) Reset()
func (*TrackEvent) String ¶ added in v1.10.0
func (x *TrackEvent) String() string
type TrackEvent_State ¶ added in v1.10.0
type TrackEvent_State int32
const ( TrackEvent_ADD TrackEvent_State = 0 TrackEvent_UPDATE TrackEvent_State = 1 TrackEvent_REMOVE TrackEvent_State = 2 )
func (TrackEvent_State) Descriptor ¶ added in v1.10.0
func (TrackEvent_State) Descriptor() protoreflect.EnumDescriptor
func (TrackEvent_State) Enum ¶ added in v1.10.0
func (x TrackEvent_State) Enum() *TrackEvent_State
func (TrackEvent_State) EnumDescriptor
deprecated
added in
v1.10.0
func (TrackEvent_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use TrackEvent_State.Descriptor instead.
func (TrackEvent_State) Number ¶ added in v1.10.0
func (x TrackEvent_State) Number() protoreflect.EnumNumber
func (TrackEvent_State) String ¶ added in v1.10.0
func (x TrackEvent_State) String() string
func (TrackEvent_State) Type ¶ added in v1.10.0
func (TrackEvent_State) Type() protoreflect.EnumType
type TrackInfo ¶ added in v1.10.0
type TrackInfo struct { // basic info Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Muted bool `protobuf:"varint,3,opt,name=muted,proto3" json:"muted,omitempty"` Type MediaType `protobuf:"varint,4,opt,name=type,proto3,enum=rtc.MediaType" json:"type,omitempty"` StreamId string `protobuf:"bytes,5,opt,name=streamId,proto3" json:"streamId,omitempty"` Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"` // extra info Layer string `protobuf:"bytes,7,opt,name=layer,proto3" json:"layer,omitempty"` // simulcast or svc layer Width uint32 `protobuf:"varint,8,opt,name=width,proto3" json:"width,omitempty"` Height uint32 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` FrameRate uint32 `protobuf:"varint,10,opt,name=frameRate,proto3" json:"frameRate,omitempty"` // contains filtered or unexported fields }
func (*TrackInfo) Descriptor
deprecated
added in
v1.10.0
func (*TrackInfo) GetFrameRate ¶ added in v1.10.0
func (*TrackInfo) GetStreamId ¶ added in v1.10.0
func (*TrackInfo) ProtoMessage ¶ added in v1.10.0
func (*TrackInfo) ProtoMessage()
func (*TrackInfo) ProtoReflect ¶ added in v1.10.0
func (x *TrackInfo) ProtoReflect() protoreflect.Message
type Trickle ¶
type Trickle struct { Target Target `protobuf:"varint,1,opt,name=target,proto3,enum=rtc.Target" json:"target,omitempty"` Init string `protobuf:"bytes,2,opt,name=init,proto3" json:"init,omitempty"` // contains filtered or unexported fields }
func (*Trickle) Descriptor
deprecated
func (*Trickle) ProtoMessage ¶
func (*Trickle) ProtoMessage()
func (*Trickle) ProtoReflect ¶
func (x *Trickle) ProtoReflect() protoreflect.Message
type UnimplementedRTCServer ¶
type UnimplementedRTCServer struct { }
UnimplementedRTCServer must be embedded to have forward compatible implementations.
func (UnimplementedRTCServer) Signal ¶
func (UnimplementedRTCServer) Signal(RTC_SignalServer) error
type UnsafeRTCServer ¶
type UnsafeRTCServer interface {
// contains filtered or unexported methods
}
UnsafeRTCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RTCServer will result in compilation errors.
type UpdateTrackReply ¶ added in v1.10.0
type UpdateTrackReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*UpdateTrackReply) Descriptor
deprecated
added in
v1.10.0
func (*UpdateTrackReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTrackReply.ProtoReflect.Descriptor instead.
func (*UpdateTrackReply) GetError ¶ added in v1.10.0
func (x *UpdateTrackReply) GetError() *Error
func (*UpdateTrackReply) GetSuccess ¶ added in v1.10.0
func (x *UpdateTrackReply) GetSuccess() bool
func (*UpdateTrackReply) ProtoMessage ¶ added in v1.10.0
func (*UpdateTrackReply) ProtoMessage()
func (*UpdateTrackReply) ProtoReflect ¶ added in v1.10.0
func (x *UpdateTrackReply) ProtoReflect() protoreflect.Message
func (*UpdateTrackReply) Reset ¶ added in v1.10.0
func (x *UpdateTrackReply) Reset()
func (*UpdateTrackReply) String ¶ added in v1.10.0
func (x *UpdateTrackReply) String() string