修改了上个版本修改导致的无法播放的问题

pull/154/head
milkywayrivers@gmail.com 6 years ago
parent 613cc26112
commit 72d67f343b

@ -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 "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()

Loading…
Cancel
Save