channel

package
v0.0.0-...-5ecf4e5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Name        string  `yaml:"Name,omitempty" json:"Name,omitempty" groups:"api,configuration,save"`
	DataURL     string  `yaml:"DataURL,omitempty" json:"DataURL,omitempty" groups:"api,configuration,save"`
	SnapshotURL string  `yaml:"SnapshotURL,omitempty" json:"SnapshotURL,omitempty" groups:"api,configuration,save"`
	VOD         bool    `yaml:"VOD,omitempty" json:"VOD,omitempty" groups:"api,configuration,save"`
	Record      bool    `yaml:"Record,omitempty" json:"Record,omitempty" groups:"api,configuration,save"`
	RecordTime  uint32  `yaml:"RecordTime,omitempty" json:"RecordTime,omitempty" groups:"api,configuration,save"`
	Audio       bool    `yaml:"Audio,omitempty" json:"Audio,omitempty" groups:"api,configuration,save"`
	RTPProxy    bool    `yaml:"RTPProxy,omitempty" json:"RTPProxy,omitempty" groups:"api,configuration,save"`
	Debug       bool    `yaml:"Debug,omitempty" json:"Debug,omitempty" groups:"api,configuration,save"`
	Status      uint32  `yaml:"Status,omitempty" json:"Status,omitempty" groups:"api"`
	Bitrate     float32 `yaml:"Bitrate,omitempty" json:"Bitrate,omitempty" groups:"api"`
	DebugRaw    bool    `yaml:"DebugRaw,omitempty" json:"DebugRaw,omitempty" groups:"api,configuration,save"`
	// contains filtered or unexported fields
}

Channel - element

func (*Channel) Make

func (channel *Channel) Make(deviceUniqID string, channelUniqID string, logger *logrus.Logger)

Make - channel

func (*Channel) Registered

func (channel *Channel) Registered(clientAddress string, clientProto int) (*pubsub.QueueCursor, string, error)

Registered - registerer viewer

func (*Channel) SelectMeta

func (channel *Channel) SelectMeta() ([]byte, error)

SelectMeta - select meta data

func (*Channel) SelectRecordTime

func (channel *Channel) SelectRecordTime() uint32

SelectRecordTime - return record time

func (*Channel) SelectSnapshotURL

func (channel *Channel) SelectSnapshotURL() string

SelectSnapshotURL - return snapshot url

func (*Channel) Start

func (channel *Channel) Start()

Start - channel start

func (*Channel) Stop

func (channel *Channel) Stop()

Stop - channel

func (*Channel) UnRegistered

func (channel *Channel) UnRegistered(clientUniqID string) error

UnRegistered - unregister viewer

Jump to

Keyboard shortcuts

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