暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415
  1. const express = require('express');
  2. const vagController = require('../controllers/vag');
  3. module.exports = (context) => {
  4. let router = express.Router();
  5. router.get('/devices', vagController.getSessions.bind(context));
  6. router.get('/devices/:device', vagController.getCatalog.bind(context));
  7. router.get('/devices/:device/:channel/realplay/:action/:host/:port/:mode', vagController.realplay.bind(context));
  8. router.get('/devices/:device/:channel/playback/:action/:begin/:end/:host/:port/:mode', vagController.playback.bind(context));
  9. router.get('/devices/:device/:channel/playback/control/:begin/:end/:cmd/:value', vagController.playControl.bind(context));
  10. router.get('/devices/:device/:channel/ptz/:value', vagController.ptzControl.bind(context));
  11. router.get('/devices/:device/:channel/record/query/:begin/:end', vagController.recordQuery.bind(context));
  12. router.post('/ZLMediaKit/on_stream_none_reader',vagController.closeStream.bind(context));
  13. return router;
  14. };