Documentation ¶
Index ¶
- Constants
- func Delete(id string)
- func GetAll() (names []string)
- func GetConsumer(url string) (core.Consumer, func(), error)
- func GetProducer(url string) (core.Producer, error)
- func HandleConsumerFunc(scheme string, handler ConsumerHandler)
- func HandleFunc(scheme string, handler Handler)
- func HasProducer(url string) bool
- func Init()
- func Location(url string) (string, error)
- func ParseQuery(s string) url.Values
- func Publish(stream *Stream, destination any)
- func RedirectFunc(scheme string, redirect Redirect)
- func Streams() map[string]*Stream
- type ConsumerHandler
- type Handler
- type Producer
- func (p *Producer) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiver) error
- func (p *Producer) Dial() error
- func (p *Producer) GetMedias() []*core.Media
- func (p *Producer) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)
- func (p *Producer) MarshalJSON() ([]byte, error)
- func (p *Producer) SetSource(s string)
- type Redirect
- type Stream
- func (s *Stream) AddConsumer(cons core.Consumer) (err error)
- func (s *Stream) AddInternalConsumer(conn core.Consumer)
- func (s *Stream) AddInternalProducer(conn core.Producer)
- func (s *Stream) AddProducer(prod core.Producer)
- func (s *Stream) MarshalJSON() ([]byte, error)
- func (s *Stream) Play(source string) error
- func (s *Stream) Publish(url string) error
- func (s *Stream) RemoveConsumer(cons core.Consumer)
- func (s *Stream) RemoveInternalConsumer(conn core.Consumer)
- func (s *Stream) RemoveProducer(prod core.Producer)
- func (s *Stream) SetSource(source string)
- func (s *Stream) Sources() (sources []string)
Constants ¶
View Source
const SourceTemplate = "{input}"
Variables ¶
This section is empty.
Functions ¶
func HandleConsumerFunc ¶ added in v1.8.0
func HandleConsumerFunc(scheme string, handler ConsumerHandler)
func HandleFunc ¶
func HasProducer ¶
func ParseQuery ¶ added in v1.6.0
func RedirectFunc ¶ added in v1.7.0
Types ¶
type ConsumerHandler ¶ added in v1.8.0
type Producer ¶
func NewProducer ¶ added in v1.6.1
func (*Producer) MarshalJSON ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func GetOrPatch ¶ added in v1.6.1
func (*Stream) AddInternalConsumer ¶
func (*Stream) AddInternalProducer ¶
func (*Stream) AddProducer ¶
func (*Stream) MarshalJSON ¶
func (*Stream) RemoveConsumer ¶
func (*Stream) RemoveInternalConsumer ¶
func (*Stream) RemoveProducer ¶
Click to show internal directories.
Click to hide internal directories.