示例#1
0
文件: server.go 项目: berndfo/gortmp
// 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)
}
示例#2
0
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)
}
示例#3
0
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)
}