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.
20 lines
369 B
Go
20 lines
369 B
Go
6 years ago
|
package rtmp
|
||
|
|
||
6 years ago
|
type PullSessionObserver interface {
|
||
|
AVMsgObserver
|
||
|
}
|
||
|
|
||
6 years ago
|
type PullSession struct {
|
||
|
*ClientSession
|
||
|
}
|
||
|
|
||
6 years ago
|
func NewPullSession(obs PullSessionObserver, connectTimeout int64) *PullSession {
|
||
6 years ago
|
return &PullSession{
|
||
|
ClientSession: NewClientSession(CSTPullSession, obs, connectTimeout),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (s *PullSession) Pull(rawURL string) error {
|
||
|
return s.Do(rawURL)
|
||
|
}
|