From 87e9e383b1f67759b8d7e6ffeeb8552f0ff80812 Mon Sep 17 00:00:00 2001 From: saxon Date: Wed, 8 Aug 2018 17:12:56 +0930 Subject: [PATCH] Got rid of session interface and made session struct exported --- rtmp/rtmp.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 5e14c481..d6cde7b6 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -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