mirror of https://bitbucket.org/ausocean/av.git
Got rid of session interface and made session struct exported
This commit is contained in:
parent
441b97ed44
commit
87e9e383b1
|
@ -215,15 +215,8 @@ var RTMPProtocolStringsLower = [...]string{
|
|||
"rtmfp",
|
||||
}
|
||||
|
||||
// Session provides an interface for sending flv tags over rtmp.
|
||||
type Session interface {
|
||||
Open() error
|
||||
Write([]byte) (int, error)
|
||||
Close() error
|
||||
}
|
||||
|
||||
// session provides parameters required for an rtmp communication session.
|
||||
type session struct {
|
||||
type Session struct {
|
||||
rtmp *C.RTMP
|
||||
url string
|
||||
timeout uint
|
||||
|
|
Loading…
Reference in New Issue