Documentation ¶
Index ¶
- Constants
- func CandidateManualHostTCPPassive(address string, port int) string
- func CandidateManualHostUDP(host string, port int) string
- func GetCachedPublicIP() (net.IP, error)
- func GetPublicIP() (net.IP, error)
- func IsIP(host string) bool
- func LookupIP(address string) (string, error)
- func MimeType(codec *core.Codec) string
- func NewAPI(address string) (*webrtc.API, error)
- func NewCandidate(network, address string) (string, error)
- func RegisterDefaultCodecs(m *webrtc.MediaEngine) error
- func UnmarshalMedias(descriptions []*sdp.MediaDescription) (medias []*core.Media)
- type Conn
- func (c *Conn) AddCandidate(candidate string) error
- func (c *Conn) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiver) error
- func (c *Conn) Close() error
- func (c *Conn) CreateCompleteOffer(medias []*core.Media) (string, error)
- func (c *Conn) CreateOffer(medias []*core.Media) (string, error)
- func (c *Conn) GetAnswer() (answer string, err error)
- func (c *Conn) GetCompleteAnswer() (answer string, err error)
- func (c *Conn) GetMedias() []*core.Media
- func (c *Conn) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)
- func (c *Conn) MarshalJSON() ([]byte, error)
- func (c *Conn) SetAnswer(answer string) (err error)
- func (c *Conn) SetOffer(offer string) (err error)
- func (c *Conn) Start() error
- func (c *Conn) Stop() error
- type Track
- func (t *Track) Bind(context webrtc.TrackLocalContext) (webrtc.RTPCodecParameters, error)
- func (t *Track) ID() string
- func (t *Track) Kind() webrtc.RTPCodecType
- func (t *Track) RID() string
- func (t *Track) StreamID() string
- func (t *Track) Unbind(context webrtc.TrackLocalContext) error
- func (t *Track) WriteRTP(payloadType uint8, packet *rtp.Packet) error
Constants ¶
View Source
const PriorityComponentRTP = uint32(256 - ice.ComponentRTP)
View Source
const PriorityLocalTCPPassive = (1 << 8) * uint32((1<<13)*4+8191)
View Source
const PriorityLocalUDP = (1 << 8) * uint32(65535)
View Source
const PriorityManualHost = (1 << 24) * uint32(120)
View Source
const ReceiveMTU = 1472
ReceiveMTU = Ethernet MTU (1500) - IP Header (20) - UDP Header (8)
Variables ¶
This section is empty.
Functions ¶
func CandidateManualHostTCPPassive ¶ added in v1.3.0
func CandidateManualHostUDP ¶ added in v1.3.0
func GetCachedPublicIP ¶
func GetPublicIP ¶
GetPublicIP example from https://github.com/pion/stun
func NewCandidate ¶
func RegisterDefaultCodecs ¶
func RegisterDefaultCodecs(m *webrtc.MediaEngine) error
func UnmarshalMedias ¶ added in v1.3.0
Types ¶
type Conn ¶
type Conn struct { core.Listener UserAgent string Desc string Mode core.Mode // contains filtered or unexported fields }
func (*Conn) AddCandidate ¶
func (*Conn) CreateCompleteOffer ¶ added in v1.3.0
func (*Conn) CreateOffer ¶ added in v1.3.0
func (*Conn) GetCompleteAnswer ¶
func (*Conn) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.