janus

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: 12 Imported by: 0

README

Janus Input

Currently this input is specific to the janus.plugin.ftl implementation, but could be easily adjusted for the janus.plugin.videoroom plugin.

Hastily written code to make testing a bit easier.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(address string, channelID int) control.Input

Types

type JSEP

type JSEP struct {
	Type    string `json:"type"`
	Sdp     string `json:"sdp"`
	Trickle bool   `json:"trickle,omitempty"`
}

type Source

type Source struct {

	// Address to connect to for Janus
	Address   string
	ChannelID int `mapstructure:"channel_id"`
	// contains filtered or unexported fields
}

func (*Source) Listen

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

func (*Source) SetControl

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

func (*Source) SetLogger

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

Jump to

Keyboard shortcuts

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