rtc

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 9 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Target_name = map[int32]string{
		0: "PUBLISHER",
		1: "SUBSCRIBER",
	}
	Target_value = map[string]int32{
		"PUBLISHER":  0,
		"SUBSCRIBER": 1,
	}
)

Enum value maps for Target.

View Source
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.

View Source
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.

View Source
var File_proto_rtc_rtc_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetReason

func (x *Error) GetReason() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use JoinReply.ProtoReflect.Descriptor instead.

func (*JoinReply) GetDescription added in v1.10.0

func (x *JoinReply) GetDescription() *SessionDescription

func (*JoinReply) GetError

func (x *JoinReply) GetError() *Error

func (*JoinReply) GetSuccess

func (x *JoinReply) GetSuccess() bool

func (*JoinReply) ProtoMessage

func (*JoinReply) ProtoMessage()

func (*JoinReply) ProtoReflect

func (x *JoinReply) ProtoReflect() protoreflect.Message

func (*JoinReply) Reset

func (x *JoinReply) Reset()

func (*JoinReply) String

func (x *JoinReply) String() string

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
const (
	MediaType_MediaUnknown  MediaType = 0
	MediaType_UserMedia     MediaType = 1
	MediaType_ScreenCapture MediaType = 2
	MediaType_Cavans        MediaType = 3
	MediaType_Streaming     MediaType = 4
	MediaType_VoIP          MediaType = 5
)

func (MediaType) Descriptor added in v1.10.0

func (MediaType) Descriptor() protoreflect.EnumDescriptor

func (MediaType) Enum added in v1.10.0

func (x MediaType) Enum() *MediaType

func (MediaType) EnumDescriptor deprecated added in v1.10.0

func (MediaType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MediaType.Descriptor instead.

func (MediaType) Number added in v1.10.0

func (x MediaType) Number() protoreflect.EnumNumber

func (MediaType) String added in v1.10.0

func (x MediaType) String() string

func (MediaType) Type added in v1.10.0

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_SignalClient interface {
	Send(*Request) error
	Recv() (*Reply, error)
	grpc.ClientStream
}

type RTC_SignalServer

type RTC_SignalServer interface {
	Send(*Reply) error
	Recv() (*Request, error)
	grpc.ServerStream
}

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) Descriptor() ([]byte, []int)

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetDescription added in v1.10.0

func (x *Reply) GetDescription() *SessionDescription

func (*Reply) GetError added in v1.10.0

func (x *Reply) GetError() *Error

func (*Reply) GetJoin added in v1.10.0

func (x *Reply) GetJoin() *JoinReply

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 (x *Reply) GetTrickle() *Trickle

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

func (*Reply) Reset added in v1.10.0

func (x *Reply) Reset()

func (*Reply) String added in v1.10.0

func (x *Reply) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

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 (x *Request) GetTrickle() *Trickle

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

func (*Request) Reset added in v1.10.0

func (x *Request) Reset()

func (*Request) String added in v1.10.0

func (x *Request) String() string

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
const (
	Target_PUBLISHER  Target = 0
	Target_SUBSCRIBER Target = 1
)

func (Target) Descriptor

func (Target) Descriptor() protoreflect.EnumDescriptor

func (Target) Enum

func (x Target) Enum() *Target

func (Target) EnumDescriptor deprecated

func (Target) EnumDescriptor() ([]byte, []int)

Deprecated: Use Target.Descriptor instead.

func (Target) Number

func (x Target) Number() protoreflect.EnumNumber

func (Target) String

func (x Target) String() string

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) Enum added in v1.10.0

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 (TrackEvent_State) String added in v1.10.0

func (x TrackEvent_State) String() string

func (TrackEvent_State) Type added in v1.10.0

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) Descriptor() ([]byte, []int)

Deprecated: Use TrackInfo.ProtoReflect.Descriptor instead.

func (*TrackInfo) GetFrameRate added in v1.10.0

func (x *TrackInfo) GetFrameRate() uint32

func (*TrackInfo) GetHeight added in v1.10.0

func (x *TrackInfo) GetHeight() uint32

func (*TrackInfo) GetId added in v1.10.0

func (x *TrackInfo) GetId() string

func (*TrackInfo) GetKind added in v1.10.0

func (x *TrackInfo) GetKind() string

func (*TrackInfo) GetLabel added in v1.10.0

func (x *TrackInfo) GetLabel() string

func (*TrackInfo) GetLayer added in v1.10.0

func (x *TrackInfo) GetLayer() string

func (*TrackInfo) GetMuted added in v1.10.0

func (x *TrackInfo) GetMuted() bool

func (*TrackInfo) GetStreamId added in v1.10.0

func (x *TrackInfo) GetStreamId() string

func (*TrackInfo) GetType added in v1.10.0

func (x *TrackInfo) GetType() MediaType

func (*TrackInfo) GetWidth added in v1.10.0

func (x *TrackInfo) GetWidth() uint32

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

func (*TrackInfo) Reset added in v1.10.0

func (x *TrackInfo) Reset()

func (*TrackInfo) String added in v1.10.0

func (x *TrackInfo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Trickle.ProtoReflect.Descriptor instead.

func (*Trickle) GetInit added in v1.10.0

func (x *Trickle) GetInit() string

func (*Trickle) GetTarget

func (x *Trickle) GetTarget() Target

func (*Trickle) ProtoMessage

func (*Trickle) ProtoMessage()

func (*Trickle) ProtoReflect

func (x *Trickle) ProtoReflect() protoreflect.Message

func (*Trickle) Reset

func (x *Trickle) Reset()

func (*Trickle) String

func (x *Trickle) String() string

type UnimplementedRTCServer

type UnimplementedRTCServer struct {
}

UnimplementedRTCServer must be embedded to have forward compatible implementations.

func (UnimplementedRTCServer) Signal

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL