You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lal/rtmp/pushsession.go

18 lines
334 B
Go

package rtmp
type PushSession struct {
*ClientSession
}
func NewPushSession(connectTimeout int64) *PushSession {
return &PushSession{
ClientSession: NewClientSession(CSTPushSession, nil, connectTimeout),
}
}
func (s *PushSession) Push(rawURL string) error {
return s.Do(rawURL)
}
// TODO chef: add function to write av data