Versions in this module Expand all Collapse all v1 v1.0.7 Mar 8, 2023 Changes in this version + const RtpParametersType_None + type WebrtcTransportData struct + DtlsParameters DtlsParameters + DtlsRemoteCert string + DtlsState DtlsState + IceCandidates []IceCandidate + IceParameters IceParameters + IceRole string + IceSelectedTuple TransportTuple + IceState IceState + SctpParameters SctpParameters + SctpState SctpState v1.0.6 Nov 10, 2022 Changes in this version + const ABS_CAPTURE_TIME + const ABS_SEND_TIME + const ConsumerType_Simple + const ConsumerType_Simulcast + const ConsumerType_Svc + const DtlsState_Closed + const DtlsState_Connected + const DtlsState_Connecting + const DtlsState_Failed + const DtlsState_New + const FRAME_MARKING + const FRAME_MARKING_07 + const MID + const MethodConsumerClose + const MethodConsumerDump + const MethodConsumerEnableTraceEvent + const MethodConsumerGetStats + const MethodConsumerPause + const MethodConsumerRequestKeyFrame + const MethodConsumerResume + const MethodConsumerSetPreferredLayers + const MethodConsumerSetPriority + const MethodDataConsumerClose + const MethodDataConsumerDump + const MethodDataConsumerGetBufferedAmount + const MethodDataConsumerGetStats + const MethodDataConsumerSetBufferedAmountLowThreshold + const MethodDataProducerClose + const MethodDataProducerDump + const MethodDataProducerGetStats + const MethodPrefixConsumer + const MethodPrefixProducer + const MethodPrefixRouter + const MethodPrefixRtpObserver + const MethodPrefixTransport + const MethodPrefixWorker + const MethodProducerClose + const MethodProducerDump + const MethodProducerEnableTraceEvent + const MethodProducerGetStats + const MethodProducerPause + const MethodProducerResume + const MethodRouterClose + const MethodRouterCreateActiveSpeakerObserver + const MethodRouterCreateAudioLevelObserver + const MethodRouterCreateDirectTransport + const MethodRouterCreatePipeTransport + const MethodRouterCreatePlainTransport + const MethodRouterCreateWebRtcTransport + const MethodRouterDump + const MethodRtpObserverAddProducer + const MethodRtpObserverClose + const MethodRtpObserverPause + const MethodRtpObserverRemoveProducer + const MethodRtpObserverResume + const MethodTransportClose + const MethodTransportConnect + const MethodTransportConsume + const MethodTransportConsumeData + const MethodTransportDump + const MethodTransportEnableTraceEvent + const MethodTransportGetStats + const MethodTransportProduce + const MethodTransportProduceData + const MethodTransportRestartIce + const MethodTransportSetMaxIncomingBitrate + const MethodTransportSetMaxOutgoingBitrate + const MethodWorkerClose + const MethodWorkerCreateRouter + const MethodWorkerDump + const MethodWorkerGetResourceUsage + const MethodWorkerUpdateSettings + const MimeSubTypeAudioCodec + const MimeSubTypeComplementaryCodec + const MimeSubTypeFeatureCodec + const MimeSubTypeVideoCodec + const PPID_WEBRTC_BINARY + const PPID_WEBRTC_STRING + const ProducerType_Simple + const ProducerType_Simulcast + const ProducerType_Svc + const REPAIRED_RTP_STREAM_ID + const RTP_STREAM_ID + const RtpParametersType_Pipe + const RtpParametersType_Simple + const RtpParametersType_Simulcast + const RtpParametersType_Svc + const SSRC_AUDIO_LEVEL + const SctpState_Closed + const SctpState_Connected + const SctpState_Connecting + const SctpState_Failed + const SctpState_New + const TOFFSET + const TRANSPORT_WIDE_CC_01 + const UNKNOWN + const VIDEO_ORIENTATION + var DYNAMIC_PAYLOAD_TYPES = [...]byte + func Bool(b bool) *bool + func Init() + func NewInvalidStateError(format string, args ...interface{}) error + func NewTypeError(format string, args ...interface{}) error + func NewUnsupportedError(format string, args ...interface{}) error + type ActiveSpeakerObserverOptions struct + AppData interface{} + Interval int + type AudioLevelObserverOptions struct + AppData interface{} + Interval int + MaxEntries int + Threshold int + type ConsumerData struct + Paused bool + ProducerPaused bool + Score ConsumerScore + type ConsumerDump struct + ConsumableRtpEncodings []RtpMappingEncoding + Id string + Kind string + Paused bool + Priority uint8 + ProducerId string + ProducerPaused bool + RtpParameters RtpParameters + RtpStream *RtpStream + RtpStreams []RtpStream + SupportedCodecPayloadTypes []uint32 + TraceEventTypes string + Type string + type ConsumerLayers struct + SpatialLayer uint8 + TemporalLayer uint8 + type ConsumerOptions struct + AppData interface{} + ConsumableRtpEncodings []*RtpEncodingParameters + Kind MediaKind + Mid string + Paused bool + Pipe bool + PreferredLayers *ConsumerLayers + ProducerId string + RtpCapabilities RtpCapabilities + RtpParameters RtpParameters + Type ConsumerType + type ConsumerScore struct + ProducerScore uint16 + ProducerScores []uint16 + Score uint16 + type ConsumerStat = ProducerStat + type ConsumerType = RtpParametersType + type DataConsumerDump struct + BufferedAmount uint32 + BufferedAmountLowThreshold uint32 + DataProducerId string + Id string + Label string + Protocol string + SctpStreamParameters *SctpStreamParameters + Type string + type DataProducerDump struct + Id string + Label string + Protocol string + SctpStreamParameters *SctpStreamParameters + Type DataProducerType + type DataProducerOptions struct + AppData interface{} + DataProducerId string + Label string + Protocol string + SctpStreamParameters *SctpStreamParameters + Type DataProducerType + type DataProducerStat struct + BytesReceived int64 + Label string + MessagesReceived int64 + Protocol string + Timestamp int64 + Type string + type DataProducerType string + const DataProducerType_Direct + const DataProducerType_Sctp + type DirectTransportOptions struct + Direct bool + MaxMessageSize uint32 + type DtlsFingerprint struct + Algorithm string + Value string + type DtlsParameters struct + Fingerprints []DtlsFingerprint + Role DtlsRole + type DtlsRole string + const DtlsRole_Auto + const DtlsRole_Client + const DtlsRole_Server + type DtlsState string + type H map[string]interface + type IceCandidate struct + Foundation string + Ip string + Port uint32 + Priority uint32 + Protocol TransportProtocol + TcpType string + Type string + type IceParameters struct + IceLite bool + Password string + UsernameFragment string + type IceState string + const IceState_Closed + const IceState_Completed + const IceState_Connected + const IceState_Disconnected + const IceState_New + type InvalidStateError struct + func (e InvalidStateError) Error() string + type MediaKind string + const MediaKind_Audio + const MediaKind_Video + type MimeSubType int32 + const MimeSubTypeCN + const MimeSubTypeFLEXFEC + const MimeSubTypeG722 + const MimeSubTypeH264 + const MimeSubTypeH265 + const MimeSubTypeILBC + const MimeSubTypeISAC + const MimeSubTypeMULTIOPUS + const MimeSubTypeOPUS + const MimeSubTypePCMA + const MimeSubTypePCMU + const MimeSubTypeRED + const MimeSubTypeRTX + const MimeSubTypeSILK + const MimeSubTypeTELEPHONE_EVENT + const MimeSubTypeULPFEC + const MimeSubTypeUNSET + const MimeSubTypeVP8 + const MimeSubTypeVP9 + const MimeSubTypeX_H264UC + const MimeSubTypeX_ULPFECUC + type MimeType int32 + const MimeTypeAudio + const MimeTypeUnset + const MimeTypeVideo + type NumSctpStreams struct + MIS uint16 + OS uint16 + type PipeTransportData struct + Rtx bool + SctpParameters SctpParameters + SctpState SctpState + SrtpParameters *SrtpParameters + Tuple TransportTuple + type PipeTransportOptions struct + AppData interface{} + EnableRtx bool + EnableSrtp bool + ListenIp TransportListenIp + Port uint16 + type PlainTransportDump struct + Comedia bool + RtcpMux bool + RtcpTuple *TransportTuple + SrtpParameters *SrtpParameters + Tuple *TransportTuple + type ProducerData struct + ConsumableRtpParameters RtpParameters + Kind MediaKind + RtpParameters RtpParameters + Type ProducerType + type ProducerDump struct + Encodings RtpMappingEncoding + Id string + Kind string + Paused bool + RtpMapping RtpMapping + RtpParameters RtpParameters + RtpStreams []RtpStream + TraceEventTypes string + Type string + type ProducerOptions struct + AppData interface{} + Id string + KeyFrameRequestDelay uint32 + Kind MediaKind + Paused bool + RtpMapping RtpMapping + RtpParameters RtpParameters + func (o ProducerOptions) Valid() bool + type ProducerStat struct + Bitrate uint32 + BitrateByLayer H + ByteCount int64 + FirCount uint32 + FractionLost uint8 + Jitter uint32 + Kind string + MimeType string + NackCount uint32 + NackPacketCount uint32 + PacketCount int64 + PacketsDiscarded uint32 + PacketsLost uint32 + PacketsRepaired uint32 + PacketsRetransmitted uint32 + PliCount uint32 + Rid string + RoundTripTime float32 + RtxPacketsDiscarded uint32 + RtxSsrc uint32 + Score uint32 + Ssrc uint32 + Timestamp int64 + Type string + type ProducerType = RtpParametersType + type RecvRtpHeaderExtensions struct + AbsSendTime uint8 + Mid uint8 + Rid uint8 + Rrid uint8 + TransportWideCc01 uint8 + type RouterDump struct + Id string + MapConsumerIdProducerId map[string]string + MapDataConsumerIdDataProducerId map[string]string + MapDataProducerIdDataConsumerIds map[string][]string + MapProducerIdConsumerIds map[string][]string + MapProducerIdObserverIds map[string][]string + RtpObserverIds []string + TransportIds []string + type RouterOptions struct + AppData interface{} + MediaCodecs []*RtpCodecCapability + type RtcpFeedback struct + Parameter string + Type string + type RtcpParameters struct + Cname string + Mux *bool + ReducedSize *bool + type RtpCapabilities struct + Codecs []*RtpCodecCapability + FecMechanisms []string + HeaderExtensions []*RtpHeaderExtension + func GenerateRouterRtpCapabilities(mediaCodecs []*RtpCodecCapability) (caps RtpCapabilities, err error) + func GetSupportedRtpCapabilities() (rtpCapabilities RtpCapabilities) + type RtpCodecCapability struct + Channels uint8 + ClockRate int + Kind MediaKind + MimeType string + Parameters RtpCodecSpecificParameters + PreferredPayloadType uint8 + RtcpFeedback []RtcpFeedback + type RtpCodecMimeType struct + MimeType string + SubType MimeSubType + Type MimeType + func (r *RtpCodecMimeType) SetMimeType(mimeType string) error + func (r *RtpCodecMimeType) UpdateMimeType() + func (r RtpCodecMimeType) IsComplementaryCodec() bool + func (r RtpCodecMimeType) IsFeatureCodec() bool + func (r RtpCodecMimeType) IsMediaCodec() bool + func (r RtpCodecMimeType) SubType2String() string + func (r RtpCodecMimeType) Type2String() string + type RtpCodecParameters struct + Channels uint8 + ClockRate int + MimeType string + Parameters RtpCodecSpecificParameters + PayloadType uint8 + RtcpFeedback []RtcpFeedback + RtpCodecMimeType RtpCodecMimeType + func (r *RtpCodecParameters) CheckCodec() error + func (r *RtpCodecParameters) Init() error + type RtpCodecSpecificParameters struct + Apt byte + ChannelMapping string + CoupledStreams uint8 + Maxplaybackrate uint32 + NumStreams uint8 + ProfileId uint8 + SpropStereo uint8 + Usedtx uint8 + Useinbandfec uint8 + XGoogleMaxBitrate uint32 + XGoogleMinBitrate uint32 + XGoogleStartBitrate uint32 + type RtpEncodingParameters struct + CodecPayloadType byte + Dtx bool + HasCodecPayloadType bool + MaxBitrate int + Rid string + Rtx *RtpEncodingRtx + ScalabilityMode string + ScaleResolutionDownBy int + SpatialLayers uint8 + Ssrc uint32 + TemporalLayers uint8 + type RtpEncodingRtx struct + Ssrc uint32 + type RtpHeaderExtension struct + Direction RtpHeaderExtensionDirection + Kind MediaKind + PreferredEncrypt bool + PreferredId int + Uri string + type RtpHeaderExtensionDirection string + const Direction_Inactive + const Direction_Recvonly + const Direction_Sendonly + const Direction_Sendrecv + type RtpHeaderExtensionParameters struct + Encrypt bool + Id int + Parameters *RtpCodecSpecificParameters + Type RtpHeaderExtensionUri + Uri string + type RtpHeaderExtensionUri uint8 + func GetRtpHeaderExtensionUri(uri string) RtpHeaderExtensionUri + type RtpListener struct + MidTable map[string]string + RidTable map[string]string + SsrcTable map[string]string + type RtpMapping struct + Codecs []RtpMappingCodec + Encodings []RtpMappingEncoding + func GetProducerRtpParametersMapping(params RtpParameters, caps RtpCapabilities) (rtpMapping RtpMapping, err error) + func (r RtpMapping) Valid() bool + type RtpMappingCodec struct + MappedPayloadType byte + PayloadType byte + func (r RtpMappingCodec) Valid() bool + type RtpMappingEncoding struct + MappedSsrc uint32 + Rid string + ScalabilityMode string + Ssrc uint32 + func (r RtpMappingEncoding) Valid() bool + type RtpParameters struct + Codecs []*RtpCodecParameters + Encodings []*RtpEncodingParameters + HasRtcp bool + HeaderExtensions []RtpHeaderExtensionParameters + Mid string + Rtcp RtcpParameters + func GetConsumableRtpParameters(kind MediaKind, params RtpParameters, caps RtpCapabilities, ...) (consumableParams RtpParameters, err error) + func GetConsumerRtpParameters(consumableParams RtpParameters, caps RtpCapabilities, pipe bool) (consumerParams RtpParameters, err error) + func (r *RtpParameters) GetCodecForEncoding(encoding *RtpEncodingParameters) *RtpCodecParameters + func (r *RtpParameters) GetRtxCodecForEncoding(encoding *RtpEncodingParameters) *RtpCodecParameters + func (r *RtpParameters) Init() error + func (r RtpParameters) GetType() ProducerType + func (r RtpParameters) Valid() bool + type RtpParametersType string + type RtpStream struct + Params RtpStreamParams + RtxStream *RtpStream + Score uint8 + type RtpStreamParams struct + ClockRate uint32 + Cname string + EncodingIdx int + MimeType string + PayloadType uint8 + RRid string + Rid string + RtxPayloadType uint8 + RtxSsrc uint32 + SpatialLayers uint8 + Ssrc uint32 + TemporalLayers uint8 + UseDtx bool + UseFir bool + UseInBandFec bool + UseNack bool + UsePli bool + type ScalabilityMode struct + Ksvc bool + SpatialLayers uint8 + TemporalLayers uint8 + func ParseScalabilityMode(scalabilityMode string) ScalabilityMode + type SctpCapabilities struct + NumStreams NumSctpStreams + type SctpListener struct + StreamIdTable map[string]string + type SctpOptions struct + EnableSctp bool + IsDataChannel bool + MaxSctpMessageSize uint32 + NumSctpStreams NumSctpStreams + SctpSendBufferSize int + type SctpParameters struct + IsDataChannel bool + MIS uint16 + MaxMessageSize uint32 + OS uint16 + Port uint16 + SctpBufferedAmount int + SendBufferSize int + type SctpState string + type SctpStreamParameters struct + MaxPacketLifeTime uint16 + MaxRetransmits uint16 + Ordered *bool + StreamId uint16 + type SimulcastConsumerDump struct + CurrentSpatialLayer int16 + CurrentTemporalLayer int16 + PreferredSpatialLayer int16 + PreferredTemporalLayer int16 + TargetSpatialLayer int16 + TargetTemporalLayer int16 + type SrtpCryptoSuite string + const AES_CM_128_HMAC_SHA1_32 + const AES_CM_128_HMAC_SHA1_80 + type SrtpParameters struct + CryptoSuite SrtpCryptoSuite + KeyBase64 string + SaltBase64 string + type TransportConnectData struct + DtlsLocalRole DtlsRole + Tuple TransportTuple + type TransportConnectOptions struct + DtlsParameters *DtlsParameters + Ip string + Port uint16 + RtcpPort uint16 + SrtpParameters *SrtpParameters + type TransportDump struct + ConsumerIds []string + DataConsumerIds []string + DataProducerIds []string + Direct bool + Id string + MapRtxSsrcConsumerId map[string]string + MapSsrcConsumerId map[string]string + ProducerIds []string + RecvRtpHeaderExtensions *RecvRtpHeaderExtensions + RtpListener *RtpListener + SctpListener *SctpListener + SctpParameters SctpParameters + SctpState SctpState + TraceEventTypes string + type TransportListenIp struct + AnnouncedIp string + Ip string + type TransportOptions struct + InitialAvailableOutgoingBitrate uint32 + type TransportProtocol string + const TransportProtocol_Tcp + const TransportProtocol_Udp + type TransportStat struct + AvailableIncomingBitrate int64 + AvailableOutgoingBitrate int64 + BytesReceived int64 + BytesSent int64 + MaxIncomingBitrate int64 + ProbationBytesSent int64 + ProbationSendBitrate int64 + RecvBitrate int64 + RtpBytesReceived int64 + RtpBytesSent int64 + RtpPacketLossReceived float64 + RtpPacketLossSent float64 + RtpRecvBitrate int64 + RtpSendBitrate int64 + RtxBytesReceived int64 + RtxBytesSent int64 + RtxRecvBitrate int64 + RtxSendBitrate int64 + SctpState SctpState + SendBitrate int64 + Timestamp int64 + TransportId string + Type string + type TransportTraceEventType string + const TransportTraceEventType_Bwe + const TransportTraceEventType_Probation + type TransportTuple struct + LocalIp string + LocalPort uint16 + Protocol string + RemoteIp string + RemotePort uint16 + type TransportType string + const TransportType_Direct + const TransportType_Pipe + const TransportType_Plain + const TransportType_Webrtc + type TypeError struct + func (e TypeError) Error() string + type UnsupportedError struct + func (e UnsupportedError) Error() string + type WebRtcTransportDump struct + DtlsParameters DtlsParameters + DtlsRemoteCert string + DtlsState DtlsState + IceCandidates []IceCandidate + IceParameters IceParameters + IceRole string + IceSelectedTuple TransportTuple + IceState IceState + type WebRtcTransportOptions struct + AppData interface{} + EnableTcp bool + EnableUdp *bool + InitialAvailableOutgoingBitrate uint32 + ListenIps []TransportListenIp + PreferTcp bool + PreferUdp bool + type WebRtcTransportSpecificStat struct + DtlsState DtlsRole + IceRole string + IceSelectedTuple *TransportTuple + IceState IceState + type WorkerDump struct + Pid int + RouterIds []string + type WorkerLogLevel string + const WorkerLogLevel_Debug + const WorkerLogLevel_Error + const WorkerLogLevel_Info + const WorkerLogLevel_None + const WorkerLogLevel_Trace + const WorkerLogLevel_Warn + type WorkerLogTag string + const WorkerLogTag_BWE + const WorkerLogTag_DTLS + const WorkerLogTag_ICE + const WorkerLogTag_INFO + const WorkerLogTag_Message + const WorkerLogTag_RTCP + const WorkerLogTag_RTP + const WorkerLogTag_RTX + const WorkerLogTag_SCTP + const WorkerLogTag_SRTP + const WorkerLogTag_SVC + const WorkerLogTag_Score + const WorkerLogTag_Simulcast + type WorkerResourceUsage struct + RU_Idrss int64 + RU_Inblock int64 + RU_Isrss int64 + RU_Ixrss int64 + RU_Majflt int64 + RU_Maxrss int64 + RU_Minflt int64 + RU_Msgrcv int64 + RU_Msgsnd int64 + RU_Nivcsw int64 + RU_Nsignals int64 + RU_Nswap int64 + RU_Nvcsw int64 + RU_Oublock int64 + RU_Stime int64 + RU_Utime int64 + type WorkerSettings struct + AppData interface{} + CustomOptions map[string]interface{} + DtlsCertificateFile string + DtlsPrivateKeyFile string + LogLevel WorkerLogLevel + LogTags []WorkerLogTag + PipePort int + PrometheusPath string + PrometheusPort int + ReceiveMTU uint32 + RtcListenIp string + RtcMaxPort uint16 + RtcMinPort uint16 + RtcStaticPort uint16 + type WorkerUpdateableSettings struct + LogLevel WorkerLogLevel + LogTags []WorkerLogTag