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