xref: /xiu/protocol/rtmp/src/session/define.rs (revision fcc2ec9e)
1 pub const WINDOW_ACKNOWLEDGEMENT_SIZE: u32 = 4096;
2 pub const PEER_BANDWIDTH: u32 = 4096;
3 
4 pub mod peer_bandwidth_limit_type {
5     pub const HARD: u8 = 0;
6     pub const SOFT: u8 = 1;
7     pub const DYNAMIC: u8 = 2;
8 }
9 
10 pub const FMSVER: &'static str = "FMS/3,0,1,123";
11 pub const CAPABILITIES: f64 = 31.0;
12 pub const LEVEL: &'static str = "status";
13 
14 pub const OBJENCODING_AMF0: f64 = 0.0;
15 pub const OBJENCODING_AMF3: f64 = 3.0;
16 
17 pub const STREAM_ID: f64 = 1.0;
18 
19 pub const TRANSACTION_ID_CONNECT: u8 = 1;
20 pub const TRANSACTION_ID_CREATE_STREAM: u8 = 2;
21 
22 //pub mod
23 pub const RTMP_LEVEL_WARNING: &'static str = "warning";
24 pub const RTMP_LEVEL_STATUS: &'static str = "status";
25 pub const RTMP_LEVEL_ERROR: &'static str = "error\n";
26 //session subscribe type
27 pub enum SessionSubType {
28     Player,
29     Publisher,
30 }
31 
32 pub enum SessionType {
33     Client,
34     Server,
35 }
36