【问题标题】:Running PhoneRTC Demo运行 PhoneRTC 演示
【发布时间】:2015-05-14 17:19:05
【问题描述】:

我正在尝试运行 phoneRTC 演示,我构建了 android 演示应用并运行了一个信令服务器,但是当我在 android 上运行客户端应用时,我得到的只是一个空白屏幕。

这些是我采取的步骤:

npm install -g cordova bower grunt-cli

git clone https://github.com/alongubkin/phonertc.git

ionic create phonertc-ionic

cp -R phonertc\demo\client\* phonertc-ionic\

cd phonertc-ionic
npm install
bower install

cordova plugin add org.apache.cordova.device
cordova plugin add org.apache.cordova.console
cordova plugin add https://github.com/alongubkin/phonertc.git

cordova platform add android

cd ../phonertc/demo/server
npm install
node index.js

将 phonertc-ionic/app/scripts/signaling.js 中的服务器详细信息更改为:

var socket = io.connect('http://my_server_ip:3000/');

并在 phonertc-ionic 中运行以下命令:

grunt build --force

cp -R app/* www/

cordova build android

我的信令服务器正在运行,但是当我尝试通过浏览器访问端口时,我收到以下消息:

Error: ENOENT, stat '/home/server/index.html'

当我在手机上运行该应用程序时,我只是得到一个空白屏幕。

我做错了吗?

【问题讨论】:

    标签: android webrtc cordova-plugins phonertc


    【解决方案1】:

    我解决了这个问题,结果发现我使用的 grunt 版本存在错误,使用旧版本或手动添加库而不是使用 grunt 工作。

    【讨论】:

    • 您能否分享您修复的详细答案?你用的是什么版本的咕噜声?什么是手动步骤
    • 我的问题是,仅使用信令服务器(所有东西都在我的 LAN 上运行),我可以连接并查看我的不同设备(在“登录”之后)但是当我打电话时,呼叫者只是卡住了“Calling to ”虽然被叫者可以实际接听电话,但屏幕只显示“Call in progress”
    • @PU2014 说得更具体一点,只有人才能从你的评论中得到一些东西,否则你的回答是没用的
    猜你喜欢
    • 2014-12-12
    • 2016-12-21
    • 2015-01-21
    • 2015-05-19
    • 2016-11-14
    • 2011-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多