12345678910111213141516 |
- const express = require('express');
- const vagController = require('../controllers/vag');
-
- module.exports = (context) => {
- let router = express.Router();
- router.get('/ssrcs', vagController.getSsrcs.bind(context));
- router.get('/devices', vagController.getSessions.bind(context));
- router.get('/devices/:device', vagController.getCatalog.bind(context));
- router.get('/devices/:device/:channel/realplay/:action/:host/:port/:mode', vagController.realplay.bind(context));
- router.get('/devices/:device/:channel/playback/:action/:begin/:end/:host/:port/:mode', vagController.playback.bind(context));
- router.get('/devices/:device/:channel/playback/control/:begin/:end/:cmd/:value', vagController.playControl.bind(context));
- router.get('/devices/:device/:channel/ptz/:value', vagController.ptzControl.bind(context));
- router.get('/devices/:device/:channel/record/query/:begin/:end', vagController.recordQuery.bind(context));
- router.post('/ZLMediaKit/on_stream_none_reader',vagController.closeStream.bind(context));
- return router;
- };
|