// ServerConnHandler methods func (handler *ServerHandler) OnStatus(conn rtmp.ServerConn) { status, err := conn.Status() log.Printf("OnStatus: %d (%s), err: %v\n", status, rtmp.StatusDisplay(status), err) }
func (handler *PublishingClientConnHandler) OnStatus(conn rtmp.ClientConn) { var err error status, err = obConn.Status() log.Printf("OnStatus: %d (%s), err: %v\n", status, rtmp.StatusDisplay(status), err) }
func (handler *PlayingClientConnHandler) OnStatus(conn rtmp.ClientConn) { var err error var status uint status, err = conn.Status() log.Printf("play:OnStatus: %d (%s), err: %v\n", status, rtmp.StatusDisplay(status), err) }