webrtc

package
v0.0.0-...-3493ba5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package webrtc provides the backend to simulate a WebRTC client to send stream

Package webrtc provides the backend to simulate a WebRTC client to send stream

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNumberConnectedSessions

func GetNumberConnectedSessions(streamID string) int

GetNumberConnectedSessions get the number of currently connected clients

func Serve

func Serve(streams *messaging.Streams, cfg *Options)

Serve WebRTC media streaming server

Types

type Options

type Options struct {
	Enabled     bool
	MinPortUDP  uint16
	MaxPortUDP  uint16
	STUNServers []string
}

Options holds web package configuration

type SessionDescription

type SessionDescription = webrtc.SessionDescription

SessionDescription contains SDP data to initiate a WebRTC connection between one client and this app

Jump to

Keyboard shortcuts

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