123456789101112131415161718 |
-
- const EventEmitter = require('events');
-
- let sessions = new Map();
-
- let publishers = new Map();//RTMP推流客户端
-
- let nodeEvent = new EventEmitter();
-
- let stat = {
- inbytes: 0,
- outbytes: 0,
- accepted: 0
- };
-
- let ssrcs = new Map(); //ssrc和注册用户映射关系表,键是ssrc, 值是 {id,chid,play}
-
- module.exports = { sessions, publishers, nodeEvent, stat , ssrcs};
|