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 1.0KB

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