rtp

package module
v0.0.0-...-b0b2ff3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 13 Imported by: 0

README

plugin-rtp

rtp 插件用于给rtsp、webrtc 提供基础功能 主要作用是将RTP包解码传入引擎中

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPortInUse

func IsPortInUse(port int) bool

func ListenRtp

func ListenRtp(port uint16) error

启动一套rtp数据接收生产线

func PrintStack

func PrintStack()

func SplitPorts

func SplitPorts(ports string) (int, int, error)

Types

type PSInfo

type PSInfo struct {
	rtp.Header
	// contains filtered or unexported fields
}

type RTP

type RTP struct {
	NALU
}

func (*RTP) PushPack

func (rtp *RTP) PushPack(pack *RTPPack)

type RTPPack

type RTPPack struct {
	Type      RTPType
	Timestamp uint32
	Payload   []byte
}

type RTPType

type RTPType int
const (
	RTP_TYPE_AUDIO RTPType = iota
	RTP_TYPE_VIDEO
	RTP_TYPE_AUDIOCONTROL
	RTP_TYPE_VIDEOCONTROL
)

func (RTPType) String

func (rt RTPType) String() string

type Session

type Session struct {
	ITransport
	RTP
	PSCache map[uint32]*PSInfo
}

func (*Session) PacketHandler

func (session *Session) PacketHandler() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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