whep

package
v0.0.0-...-ad8d7c7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

README

WHEP Output Implementation for WebRTC viewing

Based on: https://www.ietf.org/archive/id/draft-murillo-whep-01.html

Known Remaining Tasks:

  • Expire outstanding peer connections using Expire header on SDP Offer
  • Handle HTTP DELETE options for ending the peer connection early

Documentation

Index

Constants

View Source
const PC_TIMEOUT = time.Minute * 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options func(*Server)

func WithHTTPS

func WithHTTPS(hostname, cert, key string) Options

type Server

type Server struct {
	Address string
	Server  string `mapstructure:"server"`

	HTTPS         bool
	HTTPSHostname string `mapstructure:"https_hostname"`
	HTTPSCert     string `mapstructure:"https_cert"`
	HTTPSKey      string `mapstructure:"https_key"`
	// contains filtered or unexported fields
}

func New

func New(address, server string, opts ...Options) *Server

func (*Server) Listen

func (s *Server) Listen(ctx context.Context)

func (*Server) SetControl

func (s *Server) SetControl(ctrl *control.Control)

func (*Server) SetLogger

func (s *Server) SetLogger(log logrus.FieldLogger)

Jump to

Keyboard shortcuts

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