http.hooks.callback.conf 866 B

123456789101112131415161718
  1. # http-hooks or http-callbacks config for srs.
  2. # @see full.conf for detail config.
  3. listen 1935;
  4. max_connections 1000;
  5. daemon off;
  6. srs_log_tank console;
  7. vhost __defaultVhost__ {
  8. http_hooks {
  9. enabled on;
  10. on_connect http://127.0.0.1:8085/api/v1/clients http://localhost:8085/api/v1/clients;
  11. on_close http://127.0.0.1:8085/api/v1/clients http://localhost:8085/api/v1/clients;
  12. on_publish http://127.0.0.1:8085/api/v1/streams http://localhost:8085/api/v1/streams;
  13. on_unpublish http://127.0.0.1:8085/api/v1/streams http://localhost:8085/api/v1/streams;
  14. on_play http://127.0.0.1:8085/api/v1/sessions http://localhost:8085/api/v1/sessions;
  15. on_stop http://127.0.0.1:8085/api/v1/sessions http://localhost:8085/api/v1/sessions;
  16. }
  17. }