问题描述
如 https://github.com/open-webrtc-toolkit/owt-server 中所述,我已在 ubuntu 18.04 上成功安装了 intel owt-server。
现在我使用 owt-client-javascript (https://github.com/open-webrtc-toolkit/owt-client-javascript) 会议示例来发起电话会议。
但是流没有被发布。它停留在没有响应的 Conference.publish() 承诺上。浏览器只显示本地流,而远程流未定义。
服务器端日志
3 rooms in this service.
sampleRoom Id: 60559c62eadc1f2b4ab9ba7c
GET / 304 10.831 ms - -
GET /scripts/index.js 304 2.627 ms - -
GET /scripts/rest-sample.js 304 2.136 ms - -
GET /scripts/owt.js 304 0.962 ms - -
POST /tokens/ 200 1642.836 ms - 256
客户端日志
Streams in conference: 1
2 Participants in conference: 1
owt.js:9 2021-03-24T14:03:12.176Z Empty candidate.
owt.js:9 2021-03-24T14:03:13.144Z ICE connection state changed to checking
owt.js:9 2021-03-24T14:03:13.144Z Remote stream added.
owt.js:9 2021-03-24T14:03:13.145Z Remote stream added.
owt.js:9 2021-03-24T14:03:28.166Z ICE connection state changed to disconnected
下面是 remoteStream 对象
addEventListener: ƒ (t,r)
clearEventListener: ƒ (t)
dispatchEvent: ƒ (t)
extraCapabilities: e {audio: e,video: e}
removeEventListener: ƒ (t,r)
settings: e
audio: Array(1)
0: e {codec: e,_trackId: undefined}
length: 1
__proto__: Array(0)
video: Array(1)
0: e
bitrate: NaN
codec: e {name: "vp8",profile: undefined}
frameRate: 24
keyFrameInterval: 100
resolution: e {width: 640,height: 480}
rid: undefined
_trackId: undefined
__proto__: Object
length: 1
__proto__: Array(0)
__proto__: Object
attributes: undefined
id: "60559c62eadc1f2b4ab9ba7c-common"
origin: undefined
source: e
audio: "mixed"
data: undefined
video: "mixed"
__proto__: Object
stream: undefined
__proto__: r
length: 1
__proto__: Array(0)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)