/
message.go
85 lines (65 loc) · 1.44 KB
/
message.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package rtmp
type MessageType byte
const (
MsgSetChunkSize MessageType = 1
MsgAbortMessage MessageType = 2
MsgAcknowledgement MessageType = 3
MsgUserControl MessageType = 4 //
MsgWindowAcknowledgementSize MessageType = 5
MsgSetPeerBandwidth MessageType = 6
MsgCommandAmf0 MessageType = 20
MsgCommandAmf3 MessageType = 17
MsgDataAmf0 MessageType = 18
MsgDataAmf3 MessageType = 15
MsgSharedObjectAmf0 MessageType = 19
MsgSharedObjectAmf3 MessageType = 16
MsgAudio MessageType = 8
MsgVideo MessageType = 9
MsgAggregate MessageType = 22
)
type MessageHeader struct {
}
type Message interface {
}
type ChunkSize struct {
}
type AbortMessage struct {
}
type Acknowledgement struct {
}
// type EventType uint16
// const (
// EventStreamBegin EventType = iota
// EventStreamEOF
// EventStreamDry
// EventSetBufferLength
// EventStreamIsRecorded
// _
// EventPingRequest
// EventPingResponse
// )
// type UserControl struct {
// }
type WindowAcknowledgementSize struct {
}
type LimitType uint8
const (
LimitHard LimitType = iota
LimitSoft
LimitDynamic
)
type SetPeerBandwidth struct {
}
type Command interface {
Message
}
type Data struct {
}
type SharedObject struct {
}
type Audio struct {
}
type Video struct {
}
type Aggregate struct {
}