Documentation ¶
Index ¶
- func GetCachedPublicIP() (net.IP, error)
- func GetPublicIP() (net.IP, error)
- func IsIP(host string) bool
- func LookupIP(address string) (string, error)
- func MimeType(codec *streamer.Codec) string
- func NewAPI(address string) (*webrtc.API, error)
- func NewCandidate(network, address string) (string, error)
- func RegisterDefaultCodecs(m *webrtc.MediaEngine) error
- type Conn
- func (c *Conn) AddCandidate(candidate string)
- func (c *Conn) AddTrack(media *streamer.Media, track *streamer.Track) *streamer.Track
- func (c *Conn) GetAnswer() (answer string, err error)
- func (c *Conn) GetCompleteAnswer() (answer string, err error)
- func (c *Conn) GetMedias() []*streamer.Media
- func (c *Conn) Init()
- func (c *Conn) MarshalJSON() ([]byte, error)
- func (c *Conn) SetOffer(offer string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCachedPublicIP ¶
func GetPublicIP ¶
GetPublicIP example from https://github.com/pion/stun
func NewCandidate ¶
func RegisterDefaultCodecs ¶
func RegisterDefaultCodecs(m *webrtc.MediaEngine) error
Types ¶
type Conn ¶
type Conn struct { streamer.Element UserAgent string Conn *webrtc.PeerConnection // contains filtered or unexported fields }
func (*Conn) AddCandidate ¶
func (*Conn) GetCompleteAnswer ¶
func (*Conn) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.