No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vag.js 979B

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. };