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/pkg/rtmp/client_pull_session.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)
}