Got rid of session interface and made session struct exported

This commit is contained in:
saxon 2018-08-08 17:12:56 +09:30
parent 441b97ed44
commit 87e9e383b1
1 changed files with 1 additions and 8 deletions

View File

@ -215,15 +215,8 @@ var RTMPProtocolStringsLower = [...]string{
"rtmfp", "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. // session provides parameters required for an rtmp communication session.
type session struct { type Session struct {
rtmp *C.RTMP rtmp *C.RTMP
url string url string
timeout uint timeout uint