webrtc

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataChannelMTU             = 16384              // 16 KB
	BufferedAmountLowThreshold = 1 * DataChannelMTU // 2^0 MTU
	MaxBufferedAmount          = 8 * DataChannelMTU // 2^3 MTUs
)
View Source
const DataChannelName = "oneshot"

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	PrivateKey     []byte `yaml:"privateKey" mapstructure:"privateKey"`
	PrivateKeyPath string `yaml:"privateKeyPath" mapstructure:"privateKeyPath"`
	Type           string `yaml:"type" mapstructure:"type"` //rsa or ecdsa
}

type Configuration

type Configuration struct {
	ICEServers   []*ICEServer   `yaml:"iceServers" mapstructure:"iceServers"`
	RelayOnly    bool           `yaml:"relayOnly" mapstructure:"relayOnly"`
	Certificates []*Certificate `yaml:"certificates" mapstructure:"certificates"`
}

func (*Configuration) WebRTCConfiguration

func (c *Configuration) WebRTCConfiguration() (*webrtc.Configuration, error)

type DataChannelByteReader

type DataChannelByteReader struct {
	datachannel.ReadWriteCloser
}

func (*DataChannelByteReader) Read

func (r *DataChannelByteReader) Read(p []byte) (int, error)

type ICEServer

type ICEServer struct {
	URLs                  []string `yaml:"urls" mapstructure:"urls"`
	Username              string   `yaml:"username" mapstructure:"username"`
	Credential            []byte   `yaml:"credential" mapstructure:"credential"`
	CredentialPath        string   `yaml:"credentialPath" mapstructure:"credentialPath"`
	CredentialTypeIsOAuth bool     `yaml:"credentialTypeIsOAuth" mapstructure:"credentialTypeIsOAuth"`
}

Directories

Path Synopsis
sdp

Jump to

Keyboard shortcuts

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