webrtc

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 21 Imported by: 0

README

Config

  • supported TCP: fixed port (default), disabled
  • supported UDP: random port (default), fixed port
Config examples TCP UDP
listen: ":8555/tcp" fixed random
listen: ":8555" fixed fixed
listen: "" no random

Documentation

Index

Constants

View Source
const MimeSDP = "application/sdp"

Variables

View Source
var PeerConnection func(active bool) (*pion.PeerConnection, error)

Functions

func AddCandidate

func AddCandidate(address, network string)

func Dial added in v1.7.1

func Dial(rawURL string) (*websocket.Conn, *http.Response, error)

Dial - websocket.Dial with Basic auth support

func ExchangeSDP

func ExchangeSDP(stream *streams.Stream, offer, desc, userAgent string) (answer string, err error)

func GetCandidates

func GetCandidates() (candidates []string)

func Init

func Init()

func IsConsumer

func IsConsumer(conn *webrtc.Conn) bool

Types

type Address

type Address struct {
	Host    string
	Port    string
	Network string
	Offset  int
}

func (*Address) Marshal added in v1.8.2

func (a *Address) Marshal() string

Jump to

Keyboard shortcuts

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