搭建apprtc服务器(篇章二)

在开启服务之后会报一个错误,pushState 字样的。

路径 /root/apprtc/src/web_app/js/appcontroller.js

 


AppController.prototype.pushCallNavigation_ = function(roomId, roomLink) {

    //不用看
    //roomLink=roomLink.replace(/192\.168\.0\.176\//,'192.168.0.176:8080');
  if (!isChromeApp()) {

//看这里注释掉
 //  window.history.pushState({'roomId': roomId, 'roomLink': roomLink}, roomId,
 //       roomLink);
  }
};

AppController.prototype.displaySharingInfo_ = function(roomId, roomLink) {

    //不用看
    //roomLink=roomLink.replace(/192\.168\.0\.176\//,'192.168.0.176:8080');
  this.roomLinkHref_.href = roomLink;
  this.roomLinkHref_.text = roomLink;
  this.roomLink_ = roomLink;
  this.pushCallNavigation_(roomId, roomLink);
  this.activate_(this.sharingDiv_);
};

 

 

 

------------nginx ---------没错请忽略。。。。。。。。。。。。

upstream roomserver{
    server 192.168.0.176:8080;
}

server {
    listen 80;
    server_name 192.168.0.176;
    return 301 https://$server_name$request_uri;
}

server {
    root /usr/share/nginx/html;
    index index.php index.html index.htm;
    listen 443;
    ssl on;
    ssl_certificate /root/cert/hxtest.crt.pem;
    ssl_certificate_key /root/cert/hxtest.key.pem;
    server_name 192.168.0.176;
    access_log /var/log/nginx/hxtest.log;
    location / {
        proxy_pass http://roomserver$request_uri;
        proxy_set_header Host $host;
    }
    location ~.php$ {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }
}

 

转载于:https://my.oschina.net/u/2358780/blog/1036834

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值