Versions in this module Expand all Collapse all v0 v0.1.0 Apr 6, 2021 Changes in this version + func CodecMapFromNames(names []string, rtx bool, rtcpfbs []*RTCPFeedbackInfo) map[string]*CodecInfo + type CandidateInfo struct + func NewCandidateInfo(foundation string, componentID int, transport string, priority int, ...) *CandidateInfo + func (c *CandidateInfo) Clone() *CandidateInfo + func (c *CandidateInfo) GetAddress() string + func (c *CandidateInfo) GetComponentID() int + func (c *CandidateInfo) GetFoundation() string + func (c *CandidateInfo) GetPort() int + func (c *CandidateInfo) GetPriority() int + func (c *CandidateInfo) GetRelAddr() string + func (c *CandidateInfo) GetRelPort() int + func (c *CandidateInfo) GetTransport() string + func (c *CandidateInfo) GetType() string + type Capability struct + Codecs []string + Extensions []string + Rtcpfbs []*RtcpFeedback + Rtx bool + Simulcast bool + func CapabilityFromJSON(cap []byte) (*Capability, error) + type CodecInfo struct + func NewCodecInfo(codec string, ctype int) *CodecInfo + func (c *CodecInfo) AddParam(key, value string) + func (c *CodecInfo) AddParams(params map[string]string) + func (c *CodecInfo) AddRTCPFeedback(rtcpfb *RTCPFeedbackInfo) + func (c *CodecInfo) Clone() *CodecInfo + func (c *CodecInfo) GetCodec() string + func (c *CodecInfo) GetParam(key string) string + func (c *CodecInfo) GetParams() map[string]string + func (c *CodecInfo) GetRTCPFeedbacks() []*RTCPFeedbackInfo + func (c *CodecInfo) GetRTX() int + func (c *CodecInfo) GetType() int + func (c *CodecInfo) HasParam(key string) bool + func (c *CodecInfo) HasRTX() bool + func (c *CodecInfo) SetRTX(rtx int) + func (c *CodecInfo) SetType(ctype int) + type CryptoInfo struct + func NewCryptoInfo(tag int, cipherSuite string, keyParams string, sessionParams string) *CryptoInfo + func (s *CryptoInfo) Clone() *CryptoInfo + func (s *CryptoInfo) GetCipherSuite() string + func (s *CryptoInfo) GetKeyParams() string + func (s *CryptoInfo) GetSessionParams() string + func (s *CryptoInfo) GetTag() int + type DTLSInfo struct + func NewDTLSInfo(setup Setup, hash string, fingerprint string) *DTLSInfo + func (d *DTLSInfo) Clone() *DTLSInfo + func (d *DTLSInfo) GetFingerprint() string + func (d *DTLSInfo) GetHash() string + func (d *DTLSInfo) GetSetup() Setup + func (d *DTLSInfo) SetSetup(setup Setup) + type Direction uint8 + const INACTIVE + const RECVONLY + const SENDONLY + const SENDRECV + func DirectionbyValue(direction string) Direction + func (d Direction) Reverse() Direction + func (d Direction) String() string + type DirectionWay uint8 + const RECV + const SEND + func DirectionWaybyValue(d string) DirectionWay + func (d DirectionWay) Reverse() DirectionWay + func (d DirectionWay) String() string + type ICEInfo struct + func GenerateICEInfo(lite bool) *ICEInfo + func ICEInfoGenerate(lite bool) *ICEInfo + func NewICEInfo(ufrag, password string) *ICEInfo + func (c *ICEInfo) Clone() *ICEInfo + func (c *ICEInfo) GetPassword() string + func (c *ICEInfo) GetUfrag() string + func (c *ICEInfo) IsEndOfCandidate() bool + func (c *ICEInfo) IsLite() bool + func (c *ICEInfo) SetEndOfCandidate(endOfCandidate bool) + func (c *ICEInfo) SetLite(lite bool) + type MediaInfo struct + func MediaInfoCreate(mType string, capability *Capability) *MediaInfo + func NewMediaInfo(id string, mtype string) *MediaInfo + func (m *MediaInfo) AddCodec(codecInfo *CodecInfo) + func (m *MediaInfo) AddExtension(id int, name string) + func (m *MediaInfo) AddRID(ridInfo *RIDInfo) + func (m *MediaInfo) Answer(supportedMedia *MediaInfo) *MediaInfo + func (m *MediaInfo) AnswerCapability(cap *Capability) *MediaInfo + func (m *MediaInfo) Clone() *MediaInfo + func (m *MediaInfo) GetBitrate() int + func (m *MediaInfo) GetCodec(codec string) *CodecInfo + func (m *MediaInfo) GetCodecForType(pt int) *CodecInfo + func (m *MediaInfo) GetCodecs() map[int]*CodecInfo + func (m *MediaInfo) GetDirection() Direction + func (m *MediaInfo) GetExtensions() map[int]string + func (m *MediaInfo) GetID() string + func (m *MediaInfo) GetRID(id string) *RIDInfo + func (m *MediaInfo) GetRIDS() map[string]*RIDInfo + func (m *MediaInfo) GetSimulcast() bool + func (m *MediaInfo) GetSimulcastInfo() *SimulcastInfo + func (m *MediaInfo) GetType() string + func (m *MediaInfo) HasExtension(uri string) bool + func (m *MediaInfo) HasRTX() bool + func (m *MediaInfo) SetBitrate(bitrate int) + func (m *MediaInfo) SetCodecs(codecs map[int]*CodecInfo) + func (m *MediaInfo) SetDirection(direction Direction) + func (m *MediaInfo) SetID(id string) + func (m *MediaInfo) SetSimulcast(simulcast bool) + func (m *MediaInfo) SetSimulcastInfo(info *SimulcastInfo) + type RIDInfo struct + func NewRIDInfo(id string, direction DirectionWay) *RIDInfo + func (r *RIDInfo) AddParam(id, param string) + func (r *RIDInfo) Clone() *RIDInfo + func (r *RIDInfo) GetDirection() DirectionWay + func (r *RIDInfo) GetFormats() []int + func (r *RIDInfo) GetID() string + func (r *RIDInfo) GetParams() map[string]string + func (r *RIDInfo) SetDirection(direction DirectionWay) + func (r *RIDInfo) SetFormats(formats []string) + func (r *RIDInfo) SetParams(params map[string]string) + type RTCPFeedbackInfo struct + func NewRTCPFeedbackInfo(id string, params []string) *RTCPFeedbackInfo + func (r *RTCPFeedbackInfo) Clone() *RTCPFeedbackInfo + func (r *RTCPFeedbackInfo) GetID() string + func (r *RTCPFeedbackInfo) GetParams() []string + type RtcpFeedback struct + ID string + Params []string + type SDPInfo struct + func Create(ice *ICEInfo, dtls *DTLSInfo, candidates []*CandidateInfo, ...) *SDPInfo + func Create2(capabilities map[string]*Capability) *SDPInfo + func NewSDPInfo() *SDPInfo + func Parse(sdp string) (*SDPInfo, error) + func (s *SDPInfo) AddCandidate(candidate *CandidateInfo) + func (s *SDPInfo) AddCandidates(candidates []*CandidateInfo) + func (s *SDPInfo) AddMedia(media *MediaInfo) + func (s *SDPInfo) AddStream(stream *StreamInfo) + func (s *SDPInfo) Answer(ice *ICEInfo, dtls *DTLSInfo, candidates []*CandidateInfo, ...) *SDPInfo + func (s *SDPInfo) Clone() *SDPInfo + func (s *SDPInfo) GetAudioMedia() *MediaInfo + func (s *SDPInfo) GetCandidates() []*CandidateInfo + func (s *SDPInfo) GetCrypto() *CryptoInfo + func (s *SDPInfo) GetDTLS() *DTLSInfo + func (s *SDPInfo) GetFirstStream() *StreamInfo + func (s *SDPInfo) GetICE() *ICEInfo + func (s *SDPInfo) GetMedia(mtype string) *MediaInfo + func (s *SDPInfo) GetMediaByID(mid string) *MediaInfo + func (s *SDPInfo) GetMedias() []*MediaInfo + func (s *SDPInfo) GetMediasByType(mtype string) []*MediaInfo + func (s *SDPInfo) GetStream(id string) *StreamInfo + func (s *SDPInfo) GetStreamByMediaID(mid string) *StreamInfo + func (s *SDPInfo) GetStreams() map[string]*StreamInfo + func (s *SDPInfo) GetTrackByMediaID(mid string) *TrackInfo + func (s *SDPInfo) GetVersion() int + func (s *SDPInfo) GetVideoMedia() *MediaInfo + func (s *SDPInfo) RemoveAllStreams() + func (s *SDPInfo) RemoveStream(stream *StreamInfo) + func (s *SDPInfo) ReplaceMedia(media *MediaInfo) bool + func (s *SDPInfo) SetCrypto(crypto *CryptoInfo) + func (s *SDPInfo) SetDTLS(dtls *DTLSInfo) + func (s *SDPInfo) SetICE(ice *ICEInfo) + func (s *SDPInfo) SetVersion(version int) + func (s *SDPInfo) String() string + func (s *SDPInfo) Unify() *SDPInfo + type Setup string + const SETUPACTIVE + const SETUPACTPASS + const SETUPINACTIVE + const SETUPPASSIVE + func SetupByValue(s string) Setup + func (s Setup) Reverse() Setup + func (s Setup) String() string + type SimulcastInfo struct + func NewSimulcastInfo() *SimulcastInfo + func (s *SimulcastInfo) AddSimulcastAlternativeStreams(direction DirectionWay, streams []*SimulcastStreamInfo) + func (s *SimulcastInfo) AddSimulcastStream(direction DirectionWay, stream *SimulcastStreamInfo) + func (s *SimulcastInfo) Clone() *SimulcastInfo + func (s *SimulcastInfo) GetSimulcastStreams(direction DirectionWay) [][]*SimulcastStreamInfo + type SimulcastStreamInfo struct + func NewSimulcastStreamInfo(id string, paused bool) *SimulcastStreamInfo + func (s *SimulcastStreamInfo) Clone() *SimulcastStreamInfo + func (s *SimulcastStreamInfo) GetID() string + func (s *SimulcastStreamInfo) IsPaused() bool + type SourceGroupInfo struct + func NewSourceGroupInfo(semantics string, ssrcs []uint) *SourceGroupInfo + func (s *SourceGroupInfo) Clone() *SourceGroupInfo + func (s *SourceGroupInfo) GetSSRCs() []uint + func (s *SourceGroupInfo) GetSemantics() string + type SourceInfo struct + func NewSourceInfo(ssrc uint) *SourceInfo + func (s *SourceInfo) Clone() *SourceInfo + func (s *SourceInfo) GetCName() string + func (s *SourceInfo) GetSSRC() uint + func (s *SourceInfo) GetStreamID() string + func (s *SourceInfo) GetTrackID() string + func (s *SourceInfo) SetCName(cname string) + func (s *SourceInfo) SetStreamID(streamID string) + func (s *SourceInfo) SetTrackID(trackID string) + type StreamInfo struct + func NewStreamInfo(streamID string) *StreamInfo + func (s *StreamInfo) AddTrack(track *TrackInfo) + func (s *StreamInfo) Clone() *StreamInfo + func (s *StreamInfo) GetFirstTrack(media string) *TrackInfo + func (s *StreamInfo) GetID() string + func (s *StreamInfo) GetTrack(trackID string) *TrackInfo + func (s *StreamInfo) GetTracks() map[string]*TrackInfo + func (s *StreamInfo) RemoveAllTracks() + func (s *StreamInfo) RemoveTrack(track *TrackInfo) + func (s *StreamInfo) RemoveTrackById(trackId string) + type TrackEncodingInfo struct + func NewTrackEncodingInfo(id string, paused bool) *TrackEncodingInfo + func (t *TrackEncodingInfo) AddCodec(codec *CodecInfo) + func (t *TrackEncodingInfo) AddParam(id, param string) + func (t *TrackEncodingInfo) Clone() *TrackEncodingInfo + func (t *TrackEncodingInfo) GetCodecs() map[string]*CodecInfo + func (t *TrackEncodingInfo) GetID() string + func (t *TrackEncodingInfo) GetParams() map[string]string + func (t *TrackEncodingInfo) IsPaused() bool + func (t *TrackEncodingInfo) SetParams(params map[string]string) + type TrackInfo struct + func NewTrackInfo(id, media string) *TrackInfo + func (t *TrackInfo) AddAlternativeEncodings(alternatives []*TrackEncodingInfo) + func (t *TrackInfo) AddEncoding(encoding *TrackEncodingInfo) + func (t *TrackInfo) AddSSRC(ssrc uint) + func (t *TrackInfo) AddSourceGroup(group *SourceGroupInfo) + func (t *TrackInfo) Clone() *TrackInfo + func (t *TrackInfo) GetEncodings() [][]*TrackEncodingInfo + func (t *TrackInfo) GetID() string + func (t *TrackInfo) GetMedia() string + func (t *TrackInfo) GetMediaID() string + func (t *TrackInfo) GetSSRCS() []uint + func (t *TrackInfo) GetSourceGroup(schematics string) *SourceGroupInfo + func (t *TrackInfo) GetSourceGroupS() []*SourceGroupInfo + func (t *TrackInfo) SetEncodings(encodings [][]*TrackEncodingInfo) + func (t *TrackInfo) SetMediaID(mediaID string)