mirror of https://github.com/q191201771/lal.git
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.
18 lines
334 B
Go
18 lines
334 B
Go
6 years ago
|
package rtmp
|
||
|
|
||
|
type PushSession struct {
|
||
|
*ClientSession
|
||
|
}
|
||
|
|
||
6 years ago
|
func NewPushSession(connectTimeout int64) *PushSession {
|
||
6 years ago
|
return &PushSession{
|
||
6 years ago
|
ClientSession: NewClientSession(CSTPushSession, nil, connectTimeout),
|
||
6 years ago
|
}
|
||
|
}
|
||
|
|
||
|
func (s *PushSession) Push(rawURL string) error {
|
||
|
return s.Do(rawURL)
|
||
|
}
|
||
|
|
||
|
// TODO chef: add function to write av data
|