global.js 799 B

123456789101112131415161718192021222324252627282930313233
  1. /**---------------GB28181服务器信息配置-------------------**/
  2. const serverip="218.59.173.214:8081"
  3. const host = 'http://' + serverip;
  4. /**------------------------------------------------------**/
  5. /**---------------ZLMediaKit流媒体服务器配置---------------**/
  6. const ZLServerIp="218.59.173.214:801";
  7. const ZLSecret="035c73f7-bb6b-4889-a715-d9eb2d1925cc";
  8. const ZLHost='http://' + ZLServerIp+"/index/api";
  9. const baseMediaUrl='ws://' + ZLServerIp + '/';
  10. /**------------------------------------------------------**/
  11. //生成GB28181平台接口url
  12. function genGb28181Url(method){
  13. return host+method;
  14. }
  15. //生成ZLMediaKit平台接口url
  16. function genApiUrl(method){
  17. return ZLHost+method+"?secret="+ZLSecret;
  18. }
  19. export default{
  20. genApiUrl,
  21. genGb28181Url,
  22. baseMediaUrl,
  23. ZLServerIp
  24. }