gbadapter

package
v1.4.21 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewAdapter

func NewAdapter(adapter ipc.Adapter, gbs *gbs.Server, smsCore sms.Core) *Adapter

func (*Adapter) DeleteDevice

func (a *Adapter) DeleteDevice(ctx context.Context, device *ipc.Device) error

DeleteDevice implements ipc.Protocoler.

func (*Adapter) InitDevice

func (a *Adapter) InitDevice(ctx context.Context, device *ipc.Device) error

InitDevice implements ipc.Protocoler.

func (*Adapter) OnStreamChanged

func (a *Adapter) OnStreamChanged(ctx context.Context, app, stream string) error

OnStreamChanged implements ipc.Protocoler. 流注销时停止播放并更新播放状态(仅在 regist=false 时由 zlm_webhook 调用) GB28181 协议的 stream 就是 channel.ID,app 固定为 rtp

func (*Adapter) OnStreamNotFound

func (a *Adapter) OnStreamNotFound(ctx context.Context, app string, stream string) error

OnStreamNotFound implements ipc.Protocoler.

func (*Adapter) PTZControl added in v1.3.34

func (a *Adapter) PTZControl(ctx context.Context, device *ipc.Device, channel *ipc.Channel, cmd ipc.PTZCommand) error

PTZControl implements ipc.Protocoler. GB28181 协议云台控制实现

func (*Adapter) QueryCatalog

func (a *Adapter) QueryCatalog(ctx context.Context, device *ipc.Device) error

QueryCatalog implements ipc.Protocoler.

func (*Adapter) StartPlay

func (a *Adapter) StartPlay(ctx context.Context, device *ipc.Device, channel *ipc.Channel) (*ipc.PlayResponse, error)

StartPlay implements ipc.Protocoler.

func (*Adapter) StopPlay

func (a *Adapter) StopPlay(ctx context.Context, device *ipc.Device, channel *ipc.Channel) error

StopPlay 通过 SIP BYE 通知设备停止推流,并关闭 ZLM 的 RTP 接收端口

func (*Adapter) ValidateDevice

func (a *Adapter) ValidateDevice(ctx context.Context, device *ipc.Device) error

ValidateDevice implements ipc.Protocoler.

Jump to

Keyboard shortcuts

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