fake

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	streamer.Element
	Medias []*streamer.Media
	Tracks []*streamer.Track

	RecvPackets int
	SendPackets int
}

func (*Consumer) AddTrack

func (c *Consumer) AddTrack(media *streamer.Media, track *streamer.Track) *streamer.Track

func (*Consumer) GetMedias

func (c *Consumer) GetMedias() []*streamer.Media

type Producer

type Producer struct {
	streamer.Element
	Medias []*streamer.Media
	Tracks []*streamer.Track

	RecvPackets int
	SendPackets int
}

func (*Producer) GetMedias

func (p *Producer) GetMedias() []*streamer.Media

func (*Producer) GetTrack

func (p *Producer) GetTrack(media *streamer.Media, codec *streamer.Codec) *streamer.Track

func (*Producer) Start

func (p *Producer) Start() error

func (*Producer) Stop

func (p *Producer) Stop() error

Jump to

Keyboard shortcuts

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