Documentation
¶
Index ¶
- type Channel
- func (channel *Channel) Make(deviceUniqID string, channelUniqID string, logger *logrus.Logger)
- func (channel *Channel) Registered(clientAddress string, clientProto int) (*pubsub.QueueCursor, string, error)
- func (channel *Channel) SelectMeta() ([]byte, error)
- func (channel *Channel) SelectRecordTime() uint32
- func (channel *Channel) SelectSnapshotURL() string
- func (channel *Channel) Start()
- func (channel *Channel) Stop()
- func (channel *Channel) UnRegistered(clientUniqID string) error
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) Registered ¶
func (channel *Channel) Registered(clientAddress string, clientProto int) (*pubsub.QueueCursor, string, error)
Registered - registerer viewer
func (*Channel) SelectMeta ¶
SelectMeta - select meta data
func (*Channel) SelectRecordTime ¶
SelectRecordTime - return record time
func (*Channel) SelectSnapshotURL ¶
SelectSnapshotURL - return snapshot url
func (*Channel) UnRegistered ¶
UnRegistered - unregister viewer
Click to show internal directories.
Click to hide internal directories.