func init() { logger = log.NewStderrLogger() logHandler = logger.LoggerModule(RTMP_LOG_NAME) }
import ( "bufio" "errors" "fmt" "github.com/zhangpeihao/goamf" "github.com/zhangpeihao/log" "io" "net" "strconv" "strings" "time" ) var DefaultObjectEncoding uint = amf.AMF0 var logger *log.Logger = log.NewStderrLogger() var logHandler = logger.LoggerModule(RTMP_LOG_NAME) const ( RTMP_LOG_NAME = "rtmp" ) // Chunk Message Header - "fmt" field values const ( HEADER_FMT_FULL = 0x00 HEADER_FMT_SAME_STREAM = 0x01 HEADER_FMT_SAME_LENGTH_AND_STREAM = 0x02 HEADER_FMT_CONTINUATION = 0x03 ) // Result codes