GithubHelp home page GithubHelp logo

shanghaif / arjccm_std Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arjccm/arjccm_std

0.0 0.0 0.0 453.63 MB

arjccm_std

Java 29.72% HTML 2.61% JavaScript 63.38% CSS 4.09% PHP 0.01% FreeMarker 0.12% SCSS 0.08%

arjccm_std's Introduction

arjcm_std

平台配置

即时通讯端口映射:

KMS服务端口: IP:8888
信令服务端口: IP:9090
即时通讯服务IM端口 IP:2048 stun/turn 服务端口 IP:3478 TCP/UDP 进出都需要开放

layim.jsp 配置 文件位置:arjccm_std\WebContent\WEB-INF\views\layim\page\layim.jsp

//layim接口地址 153为外网映射地址 10为内网地址 47为阿里云测试地址 var arjimRest="http://153.0.171.153:8090/arjim-server/"; // var arjimRest="http://"+window.location.host+"/arjim-server/"; var arjWebRtc="https://47.94.247.75:9090"; if(window.location.hostname.startsWith("10") || window.location.hostname.startsWith("local") || window.location.hostname.startsWith("127")){ arjimRest="http://10.224.13.146:8080/arjim-server/" arjWebRtc="https://10.224.13.146:9090"; }else if(window.location.hostname.startsWith("153")){ arjimRest="http://153.0.171.153:8090/arjim-server/" arjWebRtc="https://153.0.171.158:9091"; }

websocketconfig.js 配置 文件位置 arjccm_std\WebContent\static\layim\js\websocketconfig.js var websocketurl="ws://153.0.171.158:2048/ws"; //ws://{ip}:{端口}/{java后端websocket配置的上下文}

if(window.location.hostname.startsWith("10") || window.location.hostname.startsWith("local") || window.location.hostname.startsWith("127") ){ websocketurl="ws://10.224.13.146:2048/ws";
}else if(window.location.hostname.startsWith("153")){ websocketurl="ws://153.0.171.158:2048/ws"; }

find.jsp 配置 文件位置 arjccm_std\WebContent\static\layim\layui\css\modules\layim\html\find.jsp var arjimRest="http://153.0.171.153:8090/arjim-server/"; //var arjimRest="http://"+window.location.host+"/arjim-server/"; if(window.location.hostname.startsWith("10") || window.location.hostname.startsWith("local") || window.location.hostname.startsWith("127")){ arjimRest="http://10.224.13.146:8080/arjim-server/" }else if(window.location.hostname.startsWith("153")){ arjimRest="http://153.0.171.153:8090/arjim-server/" }

arjwebrtc 信令服务配置 配置文件 主要配置KMS 服务器地址

点对点配置 index.js //var ws = new WebSocket('wss://' + location.host + '/call'); var ws ;//= new WebSocket('wss://' + location.host + '/call'); //var initWebSocket = function(){ var iceservers; if(location.host.startsWith("local") || location.host.startsWith("127") || location.host.startsWith("10")){ ws = new WebSocket('wss://' + location.host + '/call'); iceservers={ "iceServers":[ { //urls:"stun:47.94.247.75:3478" urls:"stun:10.224.13.145:3478" }, { //urls:["turn:47.94.247.75:3478"], urls:["turn:10.224.13.145:3478"], username:"mytest", credential: "123456" } ] }; }else if(location.host.startsWith("153")){ ws = new WebSocket('wss://153.0.171.158:9091/call'); iceservers={ "iceServers":[ { //urls:"stun:47.94.247.75:3478" urls:"stun:153.0.171.158:3478" }, { //urls:["turn:47.94.247.75:3478"], urls:["turn:153.0.171.158:3478"], username:"mytest", credential: "123456" } ] }; } 群聊配置

//var ws = new WebSocket('wss://' + location.host + '/groupcall'); var ws ;//= new WebSocket('wss://' + location.host + '/call'); var iceservers; if(location.host.startsWith("local") || location.host.startsWith("127") || location.host.startsWith("10")){ ws = new WebSocket('wss://' + location.host + '/groupcall'); iceservers={ "iceServers":[ { urls:"stun:10.224.13.145:3478" //urls:"stun:47.94.247.75:3478" }, { urls:["turn:10.224.13.145:3478"], //urls:["turn:47.94.247.75:3478"], username:"mytest", credential: "123456" } ] } }else if(location.host.startsWith("153")){ ws = new WebSocket('wss://153.0.171.158:9091/groupcall'); iceservers={ "iceServers":[ { urls:"stun:153.0.171.158:3478" //urls:"stun:47.94.247.75:3478" }, { urls:["turn:153.0.171.158:3478"], //urls:["turn:47.94.247.75:3478"], username:"mytest", credential: "123456" } ] } } console.log("iceservers: " ,iceservers);

KMS 配置turn/stun 服务地址 配置文件位置: /etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini turnURL=mytest:[email protected]:3478?transport=udp 注意此处配置的是服务器内网地址,此地址已经被映射了外网地址,所以直接配置内网地址即可; Coturn 配置 配置文件位置:/my/turnserver.conf

#监听的网卡 #relay-device=eth0 #云主机内网IP #listening-ip=172.17.219.47 #监听端口 listening-port=3478

#tls-listening-port=5349 #relay-ip=172.17.219.47 #外网ip #公网ip external-ip=153.0.171.158 #relay-threads=50

#lt-cred-mech #openssl证书路径 #cert=/etc/turn_server_cert.pem #openssl公钥路径 #pkey=/etc/turn_server_pkey.pem

#pidfile=”/var/run/turnserver.pid”

#一般与turnadmin创建用户时指定的realm一致 #realm=mycompany.org realm=mytest

min-port=49152 max-port=65535 #用户名:密码 user=mytest:123456 cli-password=123456 log-file=stdout #syslog no-stun

注意:配置完coturn 之后,需要在服务端打开 出入的TCP/UDP 3478 端口,如果不打开,视频是通讯不了的

arjccm_std's People

Contributors

c996xingchen avatar chenboyuan-arjccm avatar dependabot[bot] avatar genghaoshuai avatar huhuwj avatar pymxb1991 avatar shenzhilei avatar tangzhaohui2018 avatar wangxixi123-abc avatar yi21 avatar zhaotong-4195 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.