rtsp

package
v0.0.0-...-70b8bd4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Port       int    `json:"port,omitempty"`
	Path       string `json:"path,omitempty"`
	Type       string `json:"type,omitempty"` // "video" or "audio"
	SampleRate int    `json:"sample_rate,omitempty"`
	Channels   int    `json:"channels,omitempty"`
}

Configuration for RTSP sink

type Sink

type Sink struct {
	// contains filtered or unexported fields
}

Sink implements RTSP streaming using gortsplib

func (*Sink) GetConfig

func (s *Sink) GetConfig() map[string]interface{}

GetConfig returns the sink configuration

func (*Sink) GetKind

func (s *Sink) GetKind() string

GetKind returns the sink type

func (*Sink) Start

func (s *Sink) Start() error

Start starts the RTSP server

func (*Sink) Stop

func (s *Sink) Stop(force bool) error

Stop stops the RTSP sink

func (*Sink) Write

func (s *Sink) Write(ctx context.Context, data []byte, metadata map[string]interface{}) error

Write sends data to the RTSP stream

Jump to

Keyboard shortcuts

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