vidlistener

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStream

type LocalStream struct {
	StreamID  string
	Timestamp int64
}

type VidListener

type VidListener struct {
	RtmpServer *joy4rtmp.Server
}

func (*VidListener) HandleRTMPPublish

func (self *VidListener) HandleRTMPPublish(
	makeStreamID func(url *url.URL) (strmID stream.AppData),
	gotStream func(url *url.URL, rtmpStrm stream.RTMPVideoStream) error,
	endStream func(url *url.URL, rtmpStrm stream.RTMPVideoStream) error)

HandleRTMPPublish takes 3 parameters - makeStreamID, gotStream, and endStream. makeStreamID is called when the stream starts. It should return a streamID from the requestURL. gotStream is called when the stream starts. It gives you access to the stream. endStream is called when the stream ends. It gives you access to the stream.

Jump to

Keyboard shortcuts

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