Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChannelAllowed ¶
ChannelAllowed checks if the requested stream is allowed
Types ¶
type CalcBitrate ¶
type CalcBitrate struct { Bitrate int64 Channel *Channel OutputStream *OutputStream // contains filtered or unexported fields }
CalcBitrate holds information for a stream's inbound bitrate
type Channel ¶
type Channel struct { URL string Queue *pubsub.Queue Lock *sync.RWMutex Conn *rtmp.Conn OutputStreams []OutputStream WaitGroup *sync.WaitGroup RxBitrate int64 }
Channel holds connection information and packet queue as well as a list of outbound streams
type OutputStream ¶
OutputStream holds info about outbound rtmp streams
type PubSubMessage ¶
type PubSubMessage struct { ChannelURL string `json:"channel_url"` OutputStreamURL string `json:"output_stream_url"` Action string `json:"action"` }
PubSubMessage holds infomation on which stream to add/remove connections from
type Server ¶
type Server struct { RedisAddr string RtmpAddr string FFMPEGPath string S3Bucket string Lock *sync.RWMutex Conn *rtmp.Conn }
Server holds config for the server
func (Server) HandlePlay ¶
HandlePlay pushes incoming stream to outbound stream
func (Server) HandlePublish ¶
HandlePublish handles an incoming stream
func (Server) NewChannel ¶
NewChannel is an incomming stream from a user
Click to show internal directories.
Click to hide internal directories.