irtmp

package
v0.0.0-...-d6eaca8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckUserFunc

type CheckUserFunc func(*url.URL) (model.ChannelAuth, error)

type DeJitter

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

DeJitter fixes timestamps that got rounded to the nearest millisecond. It assumes a standard framerate is in use and nudges the timestamp on each packet.

func (*DeJitter) ModifyPacket

func (j *DeJitter) ModifyPacket(pkt *av.Packet, streams []av.CodecData, videoidx int, audioidx int) (drop bool, err error)

type PublishFunc

type PublishFunc func(auth model.ChannelAuth, kind, remoteAddr string, src av.Demuxer) error

type Server

type Server struct {
	rtmp.Server
	CheckUser CheckUserFunc
	Publish   PublishFunc
}

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

Jump to

Keyboard shortcuts

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