lingyucoder / skyrtc-demo Goto Github PK
View Code? Open in Web Editor NEWA simple demo used SkyRTC
A simple demo used SkyRTC
var express = require('express');
var app = express();
var path = require("path");
const fs = require('fs');
var options = {
key: fs.readFileSync('./privatekey.pem'),
cert: fs.readFileSync('.server.pem')
};
var server = require('https').createServer(options, app);
var SkyRTC = require('skyrtc').listen(server);
var port = process.env.PORT || 80;
server.listen(port);
你好,我在本地见了一个demo,别人访问谷歌提示说要加ssl,我现在把server.js稍微改了一下,但是就运行不了,什么报错也没有,能帮我看看嘛。
非常感谢
这个DEMO我也跑了,ios的音视频在网页就是看不见,就很奇怪
ios 显示网页音视频都是正常的
请问哥们 你们 ios有推送出流给网页吗
D:\pj\SkyRTC-demo-master\node_modules\ws\index.js:9
const WebSocket = require('./lib/WebSocket');
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (D:\pj\SkyRTC-demo-master\node_modules\skyrtc\SkyRTC.js:1:85)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
报错是什么问题
如题……
直接报create stream failed!但是是有接入进来的,
创建新连接
3
新用户a48f097b-ea30-4773-ab27-a82ab3707981加入房间12
解决了,是因为浏览器不支持了
如题 有什么解决办法吗 掘坟了
navigator.mozGetUserMedia 火狐下不能使用创建流失败
同个网段可以,不同网段不行.. 这是bug吗
在win8.1 chrome34下加入房间后,看不到视频画面。在android4.1 chrome34下,加入房间后,浏览器崩溃了。
各位,我来考古了,这个项目如何配置https,有没有详细一点的教程。本人比较小白。
你好,我已经下载了代码,然后安装了nodejs的库,express,ws,和node-uuid,但是发现还是不能运行,错误是:module.js:340
throw err;
^
Error: Cannot find module 'skyrtc'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/Users/raul_qiu/Downloads/SkyRTC-demo-master/server.js:4:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
谢谢
Uncaught TypeError: Failed to construct 'RTCIceCandidate': sdpMid and sdpMLineIndex are both null.
姐姐 四年前的项目了 node LTS 版本都到8了更新一下吧
environment
➜ Repositories git clone https://github.com/LingyuCoder/SkyRTC-demo.git
Cloning into 'SkyRTC-demo'...
remote: Counting objects: 43, done.
remote: Total 43 (delta 0), reused 0 (delta 0), pack-reused 43
Unpacking objects: 100% (43/43), done.
➜ Repositories cd SkyRTC-demo
➜ SkyRTC-demo git:(master) npm install
npm WARN deprecated [email protected]: connect 2.x series is deprecated
npm WARN deprecated [email protected]: Use uuid module instead
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN SkyRTC-demo@ No repository field.
npm WARN SkyRTC-demo@ No license field.
added 22 packages in 181.675s
➜ SkyRTC-demo git:(master) ✗ node server.js
摄像机可以被占用,但是浏览器没有图像显示。
.在终端只能看到有用户进入房间,没有收到接受信息的日志。
自己的声音回声很严重,根本无法正常讲话,不带耳机的话啸叫音又飞起,有没有什么好点的解决方案呢?谢谢~
发消息时显示的是socketid,怎么能让他变成我想要显示的用户名呢?
进入页面提示 create stream failed! 不能视频聊天,也不能文字聊天,是怎么回事呢?
document.getElementById('me').src = URL.createObjectURL(stream);
TypeError: Argument 1 is not valid for any of the 1-argument overloads of URL.createObjectURL.
hi,您好!这个demo是可以运行的,不走网卡完全没问题,但是部署到服务器就有了:getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
这个问题了,项目可以支持https吗?谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.