zegodev / webrtcdemo-js Goto Github PK
View Code? Open in Web Editor NEW示例demo
Home Page: https://zegodev.github.io/webrtcDemo-js/
示例demo
Home Page: https://zegodev.github.io/webrtcDemo-js/
test problem
目前最新版SDK1.1.7已解决该问题
目前测试结果是ios safari 拉流播放一条流时其它流都会暂停,并不是卡住,若选择播放已暂停的流正在播放的流也会自行暂停,推测是ios safari自身策略导致的,目前的解决方法是给video加上控件,让客户自由选择需要播放的流
出现情况及原因:chrome浏览器,屏幕共享在mac和window上能够使用的硬件权限是不一样的,如:共享整个系统时,mac下是不能共享声音的,而window是可以的,若此时你的电脑是mac笔记本,但是安装的window系统,会导致屏幕共享插件提供声音选项,此时会导致共享数据不能被正确推流到服务端;
解决办法:mac电脑安装window系统,在共享整个桌面系统时,不要勾选声音选项
Safari 推流 分辨率在 320*240 会出现花屏的情况,用chrome和foxfire 都没有问题,这是什么原因?需要这么解决呢?
在使用实时音视频功能,web类型 写代码得时候,
发现 弹幕发送提示成功,就是接受得时候没接收到。不知道什么问题,我用官方提供的demo,发送弹幕也没在屏幕上看到有弹幕飘过额,。。。
onPlayStateUpdate: function (type, streamid, error) {
if (type == 0) {
console.info('play success');
} else if (type == 2) {
console.info('play retry');
} else {
console.error("play error " + error.msg);
var _msg = error.msg;
if (error.msg.indexOf('server session closed, reason: ') > -1) {
var code = error.msg.replace('server session closed, reason: ', '');
if (code == 21) {
_msg = '音频编解码不支持(opus)';
} else if (code == 22) {
_msg = '视频编解码不支持(H264)'
} else if (code == 20) {
_msg = 'sdp 解释错误';
}
}
alert('拉流失败,reason = ' + _msg); // 报错:dispatch request error
}
},
错误如题所示:
提示 “推流失败,reason=server session closed,reason:12” 需要怎么解决?
因为demo默认是以标清进行推流,而ios safari目前暂不支持标清的推拉流,高清以及超清是正常可行的。SDK内部标清是根据谷歌标准制定的,适合市面上绝大多数浏览器,SDK暂不会为safari单独做修改
我看到iOS安卓客户端是可以的
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.