Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStream ¶
type VidListener ¶
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.
Click to show internal directories.
Click to hide internal directories.