123456789101112131415161718 |
- const NodeAPIServer = require('./api/server');
- const NodeGB28181Server = require('./GB28181Server');
- const NodeStreamServer = require('./stream/server');
- const config = require('./config');
-
- //信令服务
- let vagSignalService = new NodeGB28181Server(config);
- vagSignalService.run();
-
- //网关API服务
- let vagAPIService = new NodeAPIServer(config);
- vagAPIService.run();
-
- //流媒体服务
- if (config.GB28181.streamServer.enable) {
- let vagStreamService = new NodeStreamServer(config);
- vagStreamService.run();
- }
|