Documentation
¶
Overview ¶
Package rtsp provides RTSP utilities.
Index ¶
- func Credentials(rt *base.Request) *auth.Credentials
- func FindSingleMPEGTSFormat(desc *description.Session) (*description.Media, *format.MPEGTS)
- func RequestForLog(req *base.Request) string
- func ToStream(source rtspSource, medias []*description.Media, pathConf *conf.Path, ...)
- type MPEGTSDemuxer
- type MPEGTSDemuxerOnTracksFunc
- type MPEGTSDemuxerSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Credentials ¶ added in v1.12.3
func Credentials(rt *base.Request) *auth.Credentials
Credentials extracts credentials from a RTSP request.
func FindSingleMPEGTSFormat ¶ added in v1.21.0
func FindSingleMPEGTSFormat(desc *description.Session) (*description.Media, *format.MPEGTS)
FindSingleMPEGTSFormat returns the single MPEG-TS format in a description, if present.
func RequestForLog ¶ added in v1.21.0
RequestForLog returns a string representation of a request fit for logging. Credentials are redacted.
Types ¶
type MPEGTSDemuxer ¶ added in v1.21.0
type MPEGTSDemuxer struct {
Source MPEGTSDemuxerSource
Log logger.Writer
Media *description.Media
Format *format.MPEGTS
DecodeErrors *errordumper.Dumper
OnTracks MPEGTSDemuxerOnTracksFunc
OnError func(error)
// contains filtered or unexported fields
}
MPEGTSDemuxer demuxes an MPEG-TS stream received via RTP into component streams.
func (*MPEGTSDemuxer) Close ¶ added in v1.21.0
func (d *MPEGTSDemuxer) Close()
Close closes the demuxer.
func (*MPEGTSDemuxer) Initialize ¶ added in v1.21.0
func (d *MPEGTSDemuxer) Initialize() error
Initialize initializes the demuxer.
type MPEGTSDemuxerOnTracksFunc ¶ added in v1.21.0
type MPEGTSDemuxerOnTracksFunc func(*description.Session) (*stream.SubStream, error)
MPEGTSDemuxerOnTracksFunc is called when MPEG-TS tracks have been detected.
type MPEGTSDemuxerSource ¶ added in v1.21.0
type MPEGTSDemuxerSource interface {
OnPacketRTP(*description.Media, format.Format, gortsplib.OnPacketRTPFunc)
}
MPEGTSDemuxerSource is a source that provides MPEG-TS RTP packets.
Click to show internal directories.
Click to hide internal directories.