web有声音 a看不到b ,b能看到a,录制两个都能看到

时间 = 2020-03-23T18:27:35+08:100:
频道号 = 20200323182734469275
a uid = 163449179 (web)
b uid = 362144505 (web)
c uid = 44591112(安卓)

a 可以看到a,剋看到c,看不到b(黑屏)
c 可以看到a,可以看到自己,看到不到b(黑屏)
b 画面正常都能看到
录制的视频三端都能看到

app.3ea9d4e5.js:1 修改状态–成功 空闲
chunk-vendors.287c3acf.js:28 RTM:INFO Received a compressed peer text message from DandongIMServer2 to 88880016, 9971326683344113979-9269042707697312883#182. +5s
app.3ea9d4e5.js:1 emit MessageFromPeer Object DandongIMServer2 Object
app.3ea9d4e5.js:1 #####接收到im–message {“FLG”:"",“msg”:“申请成功”,“identifier”:"",“queueNum”:"",“msgType”:“1”,“success”:true,“recordCode”:“20200323182734469275”,“channelID”:“20200323182734469275”,“serviceCategory”:“1”,“seatNumber”:“88880016”,“userIdNum”:“210112199009091111”} —发送的 - peerIdDandongIMServer2
app.3ea9d4e5.js:1 收到的im消息 Object
chunk-0339097e.ff3a832e.js:1 响铃时间 2020-03-23T18:27:34+08:00
chunk-69689d1b.eff74ec1.js:1 ####改变 1
chunk-69689d1b.eff74ec1.js:1 444 RTM_WAITING_ONGOING
app.3ea9d4e5.js:1 获取到当前坐席状态 2
chunk-vendors.287c3acf.js:28 RTM:INFO Received a peer text message from DandongIMServer2 to 88880016, 9971326683344113979-9269042707697312883#183. +59ms
app.3ea9d4e5.js:1 emit MessageFromPeer Object DandongIMServer2 Object
app.3ea9d4e5.js:1 #####接收到im–message {“problem”:0,“msgType”:“15”,“consulting”:0,“handle”:0} —发送的 - peerIdDandongIMServer2
app.3ea9d4e5.js:1 收到的im消息 Object
chunk-0339097e.ff3a832e.js:1 点击铃声图片 2020-03-23T18:27:35+08:00
chunk-0339097e.ff3a832e.js:1 铃声图片-是页面–live 2020-03-23T18:27:35+08:00
chunk-16425567.9dcff469.js:1 #### 初始化 声网–频道号 20200323182734469275
chunk-69689d1b.eff74ec1.js:1 444 RTM_ANSWER
app.3ea9d4e5.js:1 ## 1–创建视频客户端
chunk-vendors.287c3acf.js:15 18:27:36:71 Agora-SDK [INFO]: Creating client, MODE: live CODEC: vp8
chunk-vendors.287c3acf.js:15 18:27:36:72 Agora-SDK [INFO]: [1A00E] Adding event handler on error
app.3ea9d4e5.js:1 ## 2–视频–监听
app.3ea9d4e5.js:1 ##–使用的appid 641aa7c052de4d2294f793e779565da4
chunk-vendors.287c3acf.js:15 18:27:36:72 Agora-SDK [INFO]: [1A00E] Initializing AgoraRTC client, appId: 641aa7c052de4d2294f793e779565da4.
app.3ea9d4e5.js:1 ##3-初始化成功
chunk-vendors.287c3acf.js:15 18:27:36:73 Agora-SDK [DEBUG]: Flush cached event reporting: 5
chunk-vendors.287c3acf.js:15 18:27:36:74 Agora-SDK [DEBUG]: [1A00E] Connect to choose_server: https://webrtc2-ap-web-1.agora.io/api/v1
chunk-vendors.287c3acf.js:15 18:27:36:75 Agora-SDK [DEBUG]: [1A00E] Connect to choose_server: https://webrtc2-ap-web-2.agoraio.cn/api/v1
chunk-69689d1b.eff74ec1.js:1 444 RTM_ONGOING
chunk-vendors.287c3acf.js:15 18:27:36:84 Agora-SDK [INFO]: [1A00E] Added event handler on error, peer-leave, stream-published, stream-added, stream-subscribed, stream-removed, onTokenPrivilegeWillExpire, onTokenPrivilegeDidExpire, network-quality, mute-audio, unmute-audio, mute-video, unmute-video
chunk-vendors.287c3acf.js:15 18:27:36:271 Agora-SDK [DEBUG]: [1A00E] Get gateway address: Array(3)
chunk-vendors.287c3acf.js:15 18:27:36:271 Agora-SDK [INFO]: [1A00E] Joining channel: 20200323182734469275
chunk-vendors.287c3acf.js:15 18:27:36:271 Agora-SDK [DEBUG]: [1A00E] register client Channel 20200323182734469275 Uid 163449179
chunk-vendors.287c3acf.js:15 18:27:36:272 Agora-SDK [DEBUG]: [1A00E] start connect:111-62-9-201.edge.agora.io:5894
chunk-vendors.287c3acf.js:15 18:27:36:272 Agora-SDK [DEBUG]: [1A00E] setParameter in distribution: {“event_uuid”:“123”}
chunk-vendors.287c3acf.js:28 RTM:INFO Received a peer text message from DandongIMServer2 to 88880016, 9971326683344113979-9269042707697312883#184. +2s
app.3ea9d4e5.js:1 emit MessageFromPeer Object DandongIMServer2 Object
app.3ea9d4e5.js:1 #####接收到im–message {“problem”:0,“msgType”:“15”,“consulting”:0,“handle”:0} —发送的 - peerIdDandongIMServer2
app.3ea9d4e5.js:1 收到的im消息 Object
chunk-vendors.287c3acf.js:15 18:27:36:671 Agora-SDK [DEBUG]: [1A00E] websockect opened: 111-62-9-201.edge.agora.io:5894
chunk-vendors.287c3acf.js:15 18:27:36:672 Agora-SDK [DEBUG]: [1A00E] Connected to gateway server
chunk-vendors.287c3acf.js:15 18:27:36:672 Agora-SDK [DEBUG]: Turn config Object
chunk-vendors.287c3acf.js:15 18:27:36:751 Agora-SDK [INFO]: [1A00E] Join channel 20200323182734469275 success, join with uid: 163449179.
app.3ea9d4e5.js:1 ###5 加入频道 成功----频道号码: 20200323182734469275你的id: 163449179
app.3ea9d4e5.js:1 ###7–获取设备
app.3ea9d4e5.js:1 ###9–获取设备–成功
app.3ea9d4e5.js:1 所有的摄像头 Array(1)
app.3ea9d4e5.js:1 ###13-创建本地流 摄像头id 045e5087f7bfbea02037b7fd1c05b9a5e2698ad8ac9967278bdb88bf4223daac
chunk-vendors.287c3acf.js:15 18:27:36:760 Agora-SDK [DEBUG]: Create stream
chunk-vendors.287c3acf.js:15 18:27:36:761 Agora-SDK [DEBUG]: [163449179] Requested access to local media
chunk-vendors.287c3acf.js:15 18:27:36:761 Agora-SDK [DEBUG]: GetUserMedia {“video”:{“deviceId”:{“exact”:“045e5087f7bfbea02037b7fd1c05b9a5e2698ad8ac9967278bdb88bf4223daac”},“width”:640,“height”:360,“frameRate”:{“ideal”:15,“max”:15}},“audio”:{}}
chunk-vendors.287c3acf.js:15 18:27:36:824 Agora-SDK [DEBUG]: [163449179] User has granted access to local media
chunk-vendors.287c3acf.js:15 18:27:36:824 Agora-SDK [DEBUG]: start vsResHack MediaStream
app.3ea9d4e5.js:1 ##14-本地流-初始化-成功 Object
app.3ea9d4e5.js:1 ##17-发布本地流
chunk-vendors.287c3acf.js:15 18:27:36:825 Agora-SDK [INFO]: [1A00E] Publishing stream, uid 163449179
chunk-vendors.287c3acf.js:15 18:27:36:826 Agora-SDK [DEBUG]: [1A00E] setClientRole to host
chunk-vendors.287c3acf.js:15 18:27:36:902 Agora-SDK [DEBUG]: [1A00E]Created webkitRTCPeerConnnection with config “{“iceServers”:[{“url”:“stun:webcs.agora.io:3478”},{“username”:“test”,“credential”:“111111”,“credentialType”:“password”,“urls”:“turn:111-62-9-201.edge.agora.io:5924?transport=udp”},{“username”:“test”,“credential”:“111111”,“credentialType”:“password”,“urls”:“turn:111-62-9-201.edge.agora.io:5924?transport=tcp”}],“sdpSemantics”:“plan-b”}”.
chunk-vendors.287c3acf.js:15 18:27:36:903 Agora-SDK [DEBUG]: [1A00E] PeerConnection add stream : MediaStream
chunk-vendors.287c3acf.js:15 18:27:36:918 Agora-SDK [DEBUG]: [vsResHack] get stream resolution: 640 x 360 MediaStream
chunk-vendors.287c3acf.js:15 18:27:36:922 Agora-SDK [DEBUG]: [1A00E]srflx candidate : null relay candidate: null host candidate : a=candidate:2999745851 1 udp 2122260223 192.168.56.1 62286 typ host generation 0 network-id 1

chunk-vendors.287c3acf.js:15 18:27:36:926 Agora-SDK [DEBUG]: [1A00E] SDP exchange in publish : send offer – Object
chunk-vendors.287c3acf.js:15 18:27:37:86 Agora-SDK [INFO]: [1A00E] Local stream published with uid 163449179
chunk-vendors.287c3acf.js:15 18:27:37:86 Agora-SDK [DEBUG]: [1A00E] SDP exchange in publish : receive answer – Object
chunk-vendors.287c3acf.js:15 18:27:37:86 Agora-SDK [DEBUG]: [1A00E]Set Video Bitrate - min:80 max:400
app.3ea9d4e5.js:1 ##16-插入到本地div <div id=?“local_stream” class=?“video-placeholder” style=?“height:? 100%;? width:? 100%;?”>?⋯??
chunk-vendors.287c3acf.js:15 18:27:37:128 Agora-SDK [DEBUG]: [163449179] play(). local_stream undefined
chunk-vendors.287c3acf.js:15 18:27:37:202 Agora-SDK [DEBUG]: [163449179] video dimensions: 640 360
chunk-vendors.287c3acf.js:15 18:27:37:370 Agora-SDK [DEBUG]: [1A00E] publish p2p connected: Map(3)
chunk-vendors.287c3acf.js:15 18:27:37:371 Agora-SDK [DEBUG]: Flush cached event reporting: 5
chunk-vendors.287c3acf.js:15 18:27:37:371 Agora-SDK [INFO]: [1A00E] Publish success, uid: 163449179
chunk-vendors.287c3acf.js:15 18:27:38:720 Agora-SDK [DEBUG]: [1A00E]: Period fir change to: false
chunk-vendors.287c3acf.js:15 18:27:39:191 Agora-SDK [DEBUG]: [163449179] Media Player Status Change Object
chunk-vendors.287c3acf.js:15 18:27:39:203 Agora-SDK [DEBUG]: [163449179] Media Player Status Change Object
chunk-vendors.287c3acf.js:28 RTM:INFO Received a peer text message from 68A59005909546906F3D9FA8C4246E2F to 88880016, 7951531140487050579-14963598789358767070#1. +3s
app.3ea9d4e5.js:1 emit MessageFromPeer Object 68A59005909546906F3D9FA8C4246E2F Object
app.3ea9d4e5.js:1 #####接收到im–message {“msgType”:“555”,“recordCode”:“20200323182734469275”} —发送的 - peerId68A59005909546906F3D9FA8C4246E2F
app.3ea9d4e5.js:1 收到的im消息 Object
app.3ea9d4e5.js:1 ----app信息 Object
chunk-vendors.287c3acf.js:28 RTM:INFO Received a peer text message from DandongIMServer2 to 88880016, 9971326683344113979-9269042707697312883#185. +230ms
app.3ea9d4e5.js:1 emit MessageFromPeer Object DandongIMServer2 Object
app.3ea9d4e5.js:1 #####接收到im–message {“problem”:0,“msgType”:“15”,“consulting”:0,“handle”:0} —发送的 - peerIdDandongIMServer2
app.3ea9d4e5.js:1 收到的im消息 Object
chunk-vendors.287c3acf.js:15 18:27:39:834 Agora-SDK [INFO]: [1A00E] Newly added remote stream with uid 44591112.
app.3ea9d4e5.js:1 ##22-订阅远端视频
chunk-vendors.287c3acf.js:15 18:27:39:834 Agora-SDK [INFO]: [1A00E] Gatewayclient 163449179 Subscribe 44591112: {“video”:true,“audio”:true}
chunk-vendors.287c3acf.js:15 18:27:39:835 Agora-SDK [DEBUG]: [1A00E]Created webkitRTCPeerConnnection with config “{“iceServers”:[{“url”:“stun:webcs.agora.io:3478”},{“username”:“test”,“credential”:“111111”,“credentialType”:“password”,“urls”:“turn:111-62-9-201.edge.agora.io:5924?transport=udp”},{“username”:“test”,“credential”:“111111”,“credentialType”:“password”,“urls”:“turn:111-62-9-201.edge.agora.io:5924?transport=tcp”}],“sdpSemantics”:“plan-b”}”.
app.3ea9d4e5.js:1 ##21-有用户加入 44591112
chunk-vendors.287c3acf.js:15 18:27:39:847 Agora-SDK [DEBUG]: [1A00E]srflx candidate : null relay candidate: null host candidate : a=candidate:2999745851 1 udp 2122260223 192.168.56.1 53576 typ host generation 0 network-id 1

chunk-vendors.287c3acf.js:15 18:27:39:850 Agora-SDK [DEBUG]: [1A00E] SDP exchange in subscribe : send offer – Object
chunk-vendors.287c3acf.js:15 18:27:39:881 Agora-SDK [DEBUG]: [1A00E] SDP exchange in subscribe : receive answer – Object
chunk-vendors.287c3acf.js:15 18:27:39:900 Agora-SDK [INFO]: [1A00E] Remote stream subscribed with uid 44591112
app.3ea9d4e5.js:1 ##23-订阅远端流
chunk-1cd1c313.80aa7085.js:1 44444 Array(2)
app.3ea9d4e5.js:1 ##24-加入的用户id 44591112
chunk-vendors.287c3acf.js:15 18:27:40:135 Agora-SDK [DEBUG]: [1A00E] subscribe p2p connected: Map(3)
chunk-vendors.287c3acf.js:15 18:27:40:135 Agora-SDK [DEBUG]: Flush cached event reporting: 2
app.3ea9d4e5.js:1 ##25-用户视频插入到div <div id=?“remote_video_44591112” class=?“video-view review-center-video”>?⋯??
chunk-vendors.287c3acf.js:15 18:27:40:402 Agora-SDK [DEBUG]: [44591112] play(). remote_video_44591112 undefined
chunk-vendors.287c3acf.js:15 18:27:42:80 Agora-SDK [DEBUG]: [44591112] video dimensions: 1280 720
chunk-69689d1b.eff74ec1.js:1 频道内人数人数 1
chunk-vendors.287c3acf.js:15 18:27:44:80 Agora-SDK [DEBUG]: [44591112] Media Player Status Change Object
chunk-vendors.287c3acf.js:15 18:27:44:80 Agora-SDK [DEBUG]: [44591112] Media Player Status Change Object
chunk-vendors.287c3acf.js:28 RTM:INFO Received a peer text message from DandongIMServer2 to 88880016, 9971326683344113979-9269042707697312883#186. +5s
app.3ea9d4e5.js:1 emit MessageFromPeer Object DandongIMServer2 Object
app.3ea9d4e5.js:1 #####接收到im–message {“problem”:0,“msgType”:“15”,“consulting”:0,“handle”:0} —发送的 - peerIdDandongIMServer2
app.3ea9d4e5.js:1 收到的im消息 Object
chunk-vendors.287c3acf.js:28 RTM:INFO Received a peer text message from DandongIMServer2 to 88880016, 9971326683344113979-9269042707697312883#187. +2s
app.3ea9d4e5.js:1 emit MessageFromPeer Object DandongIMServer2 Object
app.3ea9d4e5.js:1 #####接收到im–message {“thirdSiteNum”:“88888887”,“msgType”:“11”} —发送的 - peerIdDandongIMServer2
app.3ea9d4e5.js:1 收到的im消息 Object
chunk-vendors.287c3acf.js:28 RTM:INFO Received a peer text message from DandongIMServer2 to 88880016, 9971326683344113979-9269042707697312883#188. +3s
app.3ea9d4e5.js:1 emit MessageFromPeer Object DandongIMServer2 Object
app.3ea9d4e5.js:1 #####接收到im–message {“problem”:0,“msgType”:“15”,“consulting”:0,“handle”:0} —发送的 - peerIdDandongIMServer2
app.3ea9d4e5.js:1 收到的im消息 Object
chunk-vendors.287c3acf.js:15 18:27:49:843 Agora-SDK [INFO]: [1A00E] Newly added audio stream with uid 362144505
app.3ea9d4e5.js:1 ##22-订阅远端视频
chunk-vendors.287c3acf.js:15 18:27:49:843 Agora-SDK [INFO]: [1A00E] Gatewayclient 163449179 Subscribe 362144505: {“video”:true,“audio”:true}
chunk-vendors.287c3acf.js:15 18:27:49:845 Agora-SDK [DEBUG]: [1A00E]Created webkitRTCPeerConnnection with config “{“iceServers”:[{“url”:“stun:webcs.agora.io:3478”},{“username”:“test”,“credential”:“111111”,“credentialType”:“password”,“urls”:“turn:111-62-9-201.edge.agora.io:5924?transport=udp”},{“username”:“test”,“credential”:“111111”,“credentialType”:“password”,“urls”:“turn:111-62-9-201.edge.agora.io:5924?transport=tcp”}],“sdpSemantics”:“plan-b”}”.
app.3ea9d4e5.js:1 ##21-有用户加入 362144505
chunk-vendors.287c3acf.js:15 18:27:49:861 Agora-SDK [DEBUG]: [1A00E]srflx candidate : null relay candidate: null host candidate : a=candidate:2999745851 1 udp 2122260223 192.168.56.1 65382 typ host generation 0 network-id 1

chunk-vendors.287c3acf.js:15 18:27:49:864 Agora-SDK [DEBUG]: [1A00E] SDP exchange in subscribe : send offer – Object
chunk-vendors.287c3acf.js:15 18:27:50:19 Agora-SDK [INFO]: [1A00E] Newly added remote stream with uid 362144505.
chunk-vendors.287c3acf.js:15 18:27:50:46 Agora-SDK [DEBUG]: [1A00E] SDP exchange in subscribe : receive answer – Object
chunk-vendors.287c3acf.js:15 18:27:50:76 Agora-SDK [INFO]: [1A00E] Remote stream subscribed with uid 362144505
app.3ea9d4e5.js:1 ##23-订阅远端流
chunk-1cd1c313.80aa7085.js:1 44444 Array(2)
app.3ea9d4e5.js:1 ##24-加入的用户id 362144505
chunk-vendors.287c3acf.js:15 18:27:50:458 Agora-SDK [DEBUG]: [1A00E] subscribe p2p connected: Map(3)
chunk-vendors.287c3acf.js:15 18:27:50:459 Agora-SDK [DEBUG]: Flush cached event reporting: 1
app.3ea9d4e5.js:1 ##25-用户视频插入到div <div id=?“remote_video_362144505” class=?“video-view review-left-video”>?⋯??
chunk-vendors.287c3acf.js:15 18:27:50:577 Agora-SDK [DEBUG]: [362144505] play(). remote_video_362144505 undefined
chunk-vendors.287c3acf.js:15 18:27:51:100 Agora-SDK [DEBUG]: [362144505] video dimensions: 640 360
chunk-vendors.287c3acf.js:15 18:27:52:590 Agora-SDK [DEBUG]: [362144505] Media Player Status Change Object
chunk-vendors.287c3acf.js:15 18:27:52:591 Agora-SDK [DEBUG]: [362144505] Media Player Status Change Object
chunk-vendors.287c3acf.js:28 RTM:INFO Received a peer text message from DandongIMServer2 to 88880016, 9971326683344113979-9269042707697312883#189. +5s
app.3ea9d4e5.js:1 emit MessageFromPeer Object DandongIMServer2 Object
app.3ea9d4e5.js:1 #####接收到im–message {“problem”:0,“msgType”:“15”,“consulting”:0,“handle”:0} —发送的 - peerIdDandongIMServer2

之前是好使的,突然这种情况,偶现 ------- 急

从后台数据来看, 163449179 和 44591112 都有正常接收 362144505 的视频的呀,理论上而言不应该会看不到。


能否提供下图这儿展开的日志?看下 video 的 player status 是什么?怀疑有可能是被浏览器播放策略阻止播放了,详情可以参考:https://docs.agora.io/cn/Interactive%20Broadcast/autoplay_policy_web?platform=Web

关于 44591112 看不到 362144505 的问题,需要检查 44591112 的视频渲染 view 的状态是否正常(是否有正常绑定 view、view 不为空、view 没有被遮挡等)。因为从后台来看,44591112 是有正常接收和解码 362144505 视频流的,所以怀疑是渲染出了问题。

另外,从后台看到频道内还有一个问题,a、b、c 三个客户端都是使用的直播模式,录制端使用的是通信模式,这可能会导致未知问题,建议尽快修改录制端的频道模式为直播模式。

好的,修改一下录制端的频道模式。view的状态是正常的。日志没有正常保留所以看不到了。偶现情况,在遇到时查看一下。

好的