videonetics

package
v0.0.0-...-c80589f Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodSetup = "SETUP"
	MethodPlay  = "PLAY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	SiteID     int64  `json:"site_id"`
	ChannelID  int64  `json:"channel_id"`
	AppID      int64  `json:"app_id"`
	LiveOrRec  int32  `json:"live_or_rec"`
	StreamType int32  `json:"stream_type"`
	StartTS    int64  `json:"start_ts"`
	SessionID  string `json:"session_id"`
}

func ParseVideoneticsUri

func ParseVideoneticsUri(uri string) (string, Channel, error)

type Conn

type Conn struct {
	core.Connection
	// contains filtered or unexported fields
}

func NewClient

func NewClient(uri string, ctx *context.Context) *Conn

func (*Conn) GetMedias

func (c *Conn) GetMedias() []*core.Media

GetMedias implements core.Producer. Subtle: this method shadows the method (Connection).GetMedias of Conn.Connection.

func (*Conn) GetTrack

func (c *Conn) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)

GetTrack implements core.Producer. Subtle: this method shadows the method (Connection).GetTrack of Conn.Connection.

func (*Conn) Reconnect

func (c *Conn) Reconnect() error

func (*Conn) Start

func (c *Conn) Start() (err error)

Start implements core.Producer.

func (*Conn) Stop

func (c *Conn) Stop() (err error)

Stop implements core.Producer. Subtle: this method shadows the method (Connection).Stop of Conn.Connection.

type State

type State byte
const (
	StateNone State = iota
	StateConn
	StatePlay
)

func (State) String

func (s State) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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