From 72d67f343b304800150dd82383f6a93b1abc4b07 Mon Sep 17 00:00:00 2001 From: "milkywayrivers@gmail.com" Date: Sat, 2 Mar 2019 10:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=8A=E4=B8=AA?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=BF=AE=E6=94=B9=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=92=AD=E6=94=BE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtsp/rtsp-session.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rtsp/rtsp-session.go b/rtsp/rtsp-session.go index 01105189..c80ae9bb 100644 --- a/rtsp/rtsp-session.go +++ b/rtsp/rtsp-session.go @@ -368,13 +368,13 @@ func (session *Session) handleRequest(req *Request) { session.connWLock.Unlock() session.OutBytes += len(outBytes) switch req.Method { - // case "PLAY", "RECORD": - // switch session.Type { - // case SESSEION_TYPE_PLAYER: - // session.Pusher.AddPlayer(session.Player) - // case SESSION_TYPE_PUSHER: - // session.Server.AddPusher(session.Pusher) - // } + case "PLAY", "RECORD": + switch session.Type { + case SESSEION_TYPE_PLAYER: + session.Pusher.AddPlayer(session.Player) + // case SESSION_TYPE_PUSHER: + // session.Server.AddPusher(session.Pusher) + } case "TEARDOWN": { session.Stop()