Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Release 4.0.1 is broken #46

Closed
mango009 opened this issue Jul 23, 2020 · 11 comments
Closed

Release 4.0.1 is broken #46

mango009 opened this issue Jul 23, 2020 · 11 comments

Comments

@mango009
Copy link

mango009 commented Jul 23, 2020

Hi,
I tried the basicLive demo and this used to work in the previous release across mobile browser and my desktop test environment.

I'm testing between a Chrome browser on iPhone XS and MAC Safari Browser 13.1.1. Two problems:

  1. Join as host on the desktop Safari and join as audience on mobile browser. No audio stream can be received on the mobile browser.

  2. Join as audience on desktop Safari and join as host on mobile Chrome browser. Mobile browser shows error: AgoraRTCError: NOT_UPPORT: cannot find getUserMedia.

@disoul
Copy link
Collaborator

disoul commented Jul 24, 2020

The IOS Chrome does not support WebRTC and this SDK, you should use IOS Safari.

@mango009
Copy link
Author

I verified.
join as a host on Mac Safari and join as an audience on iPhone Safari worked for 4.0.0.
But it does not work for 4.0.1. There's no video or audio feed on iPhone Safari. Too bad I couldn't get the console log for iPhone Safari. So there's indeed a problem with 4.0.1

@mango009
Copy link
Author

Also a problem on release 4.0.0. When you join as a host on iPhone Safari and join as a audience on Mac Safari there would be no video or audio feed.

The only release that worked in all scenario is release 0.1.9.

@disoul
Copy link
Collaborator

disoul commented Jul 24, 2020

The basic live demo(v4.0.1) works fine on my iPad and Mac Safari (demo URL: https://agoraio-community.github.io/AgoraWebSDK-NG/demo/basicLive/index.html)

Can you enable your log upload and tell me your channel and uid info?

@mango009
Copy link
Author

How do I enable the log upload?
Have you guys tested on iPhone Safari for the release 4.0.0 and 4.0.1? Maybe you can reproduce the error.

@mango009
Copy link
Author

mango009 commented Jul 27, 2020

I was able to show web inspector on iPhone Safari. I joined as host on the iPhone and the log is here:

22:38:52:723 Agora-SDK [INFO]: – "[client-c03ea] Initializing AgoraRTC client v4.0.1 build: v4.0.1-0-g05d38ea(7/17/2020, 5:32:05 PM), mode: live, codec: h264"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:52:726 Agora-SDK [INFO]: – "[client-c03ea] start join channel test"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:52:727 Agora-SDK [INFO]: – "[client-c03ea] connection state change: DISCONNECTED -> CONNECTING"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:52:730 Agora-SDK [DEBUG]: – "Flush cached event reporting:" – 1
value — AgoraRTC_N-4.0.1.js:5:14397622:38:52:737 Agora-SDK [DEBUG]: – "[client-c03ea] Connect to choose_server:" – "https://webrtc2-ap-web-1.agora.io/api/v1"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:52:738 Agora-SDK [DEBUG]: – "[client-c03ea] Connect to choose_server:" – "https://webrtc2-ap-web-2.agoraio.cn/api/v1"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:53:511 Agora-SDK [DEBUG]: – "[gateway-client-c03ea] start connect, url: wss://38-93-228-133.edge.agoraio.cn:5896"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:53:754 Agora-SDK [DEBUG]: – "[gateway-client-c03ea] websockect opened:" – "wss://38-93-228-133.edge.agoraio.cn:5896"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:53:846 Agora-SDK [INFO]: – "[client-c03ea] connection state change: CONNECTING -> CONNECTED"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:53:852 Agora-SDK [DEBUG]: – "[client-c03ea] Connected to gateway server"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:53:855 Agora-SDK [INFO]: – "[client-c03ea] Joining channel success: test"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:53:859 Agora-SDK [INFO]: – "start create microphone audio track with config" (3)
{}
"trackId"
"track-99bf742c"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:53:869 Agora-SDK [DEBUG]: – "[track-99bf742c] GetUserMedia" – "{\"audio\":{}}"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:56:314 Agora-SDK [DEBUG]: – "polyfill audio node"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:56:315 Agora-SDK [DEBUG]: – "polyfill audio node"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:56:557 Agora-SDK [INFO]: – "create microphone audio track success, trackId:" – "track-99bf742c"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:56:558 Agora-SDK [INFO]: – "start create camera video track with config" (3)
{}
"trackId"
"track-6cc6f293"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:56:559 Agora-SDK [DEBUG]: – "[track-6cc6f293] GetUserMedia" – "{\"video\":{}}"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:56:720 Agora-SDK [INFO]: – "microphone device changed" – "{\"initAt\":1595828336719,\"updateAt\":1595828336719,\"device\":{\"deviceId\":\"B074024B7120C314555EE27E740A48084D946846\",\"kind\":\"audioinput\",\"label\"…"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:56:720 Agora-SDK [INFO]: – "camera device changed" – "{\"initAt\":1595828336719,\"updateAt\":1595828336719,\"device\":{\"deviceId\":\"B84AF3487044678F5AED3EB700736E507A7237CE\",\"kind\":\"videoinput\",\"label\"…"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:56:720 Agora-SDK [INFO]: – "camera device changed" – "{\"initAt\":1595828336719,\"updateAt\":1595828336719,\"device\":{\"deviceId\":\"A40273485D9895B1059B64F80260E5E6271E3B44\",\"kind\":\"videoinput\",\"label\"…"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:59:372 Agora-SDK [INFO]: – "create camera video success, trackId:" – "track-6cc6f293"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:59:373 Agora-SDK [DEBUG]: – "[track-track-6cc6f293] start video playback" – "{}"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:59:374 Agora-SDK [DEBUG]: – "[track-6cc6f293] video-element-status change none => init"
value — AgoraRTC_N-4.0.1.js:5:14409722:38:59:876 Agora-SDK [INFO]: – "[client-c03ea] Publishing tracks, id track-6cc6f293 ,track-99bf742c "
value — AgoraRTC_N-4.0.1.js:5:14397622:38:59:877 Agora-SDK [DEBUG]: – "[client-c03ea] publish high stream"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:59:880 Agora-SDK [DEBUG]: – "[client-c03ea-pub-1] add video track to pc"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:59:949 Agora-SDK [DEBUG]: – "[client-c03ea-pub-1] set pc rtp sender" (2)
{maxBitrate: undefined}
"balanced"
value — AgoraRTC_N-4.0.1.js:5:14397622:38:59:952 Agora-SDK [DEBUG]: – "[client-c03ea-pub-1] add audio track to pc"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:130 Agora-SDK [DEBUG]: – "[track-6cc6f293] video-element-status change init => playing"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:130 Agora-SDK [DEBUG]: – "[track-6cc6f293] video-element-status change playing => waiting"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:131 Agora-SDK [DEBUG]: – "[client-c03ea-pub-1] create and set offer success"
value — AgoraRTC_N-4.0.1.js:5:14409722:39:00:132 Agora-SDK [INFO]: – "[client-c03ea-pub-1] connection-state: pub p2p connecting"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:138 Agora-SDK [DEBUG]: – "[track-6cc6f293] video-element-status change waiting => suspend"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:557 Agora-SDK [DEBUG]: – "[track-6cc6f293] video-element-status change suspend => canplay"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:557 Agora-SDK [DEBUG]: – "[track-6cc6f293] video-element-status change canplay => playing"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:866 Agora-SDK [DEBUG]: – "[client-c03ea-pub-1] set answer success"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:867 Agora-SDK [DEBUG]: – "[track-6cc6f293] current video dimensions:" – 480 – 640
value — AgoraRTC_N-4.0.1.js:5:14409722:39:00:870 Agora-SDK [INFO]: – "[client-c03ea-pub-1] ice-state: pub p2p checking"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:874 Agora-SDK [DEBUG]: – "[pc-1] local candidate count" – 4
value — AgoraRTC_N-4.0.1.js:5:14409722:39:00:945 Agora-SDK [INFO]: – "[client-c03ea-pub-1] ice-state: pub p2p connected"
value — AgoraRTC_N-4.0.1.js:5:14397622:39:00:946 Agora-SDK [DEBUG]: – "Flush cached event reporting:" – 3
value — AgoraRTC_N-4.0.1.js:5:14409722:39:00:947 Agora-SDK [INFO]: – "[client-c03ea] Publish success, id track-6cc6f293 ,track-99bf742c "
basicLive.js:89publish success
value — AgoraRTC_N-4.0.1.js:5:14409722:39:00:949 Agora-SDK [INFO]: – "[client-c03ea-pub-1] connection-state: pub p2p connected"
value — AgoraRTC_N-4.0.1.js:5:14409722:39:00:949 Agora-SDK [INFO]: – "[client-c03ea-pub-1] ice-state: pub p2p completed"

On Mac Safari I joined as an audience and no video or audio feed can be received. Here is the log:

[Log] 22:39:39:865 Agora-SDK [INFO]: – "[client-4ba54] Initializing AgoraRTC client v4.0.1 build: v4.0.1-0-g05d38ea(7/17/2020, 5:32:05 PM), mode: live, codec: h264" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:39:867 Agora-SDK [INFO]: – "[client-4ba54] start join channel test" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:39:868 Agora-SDK [INFO]: – "[client-4ba54] connection state change: DISCONNECTED -> CONNECTING" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:39:870 Agora-SDK [DEBUG]: – "Flush cached event reporting:" – 1 (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:39:873 Agora-SDK [DEBUG]: – "[client-4ba54] Connect to choose_server:" – "https://webrtc2-ap-web-1.agora.io/api/v1" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:39:874 Agora-SDK [DEBUG]: – "[client-4ba54] Connect to choose_server:" – "https://webrtc2-ap-web-2.agoraio.cn/api/v1" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:40:876 Agora-SDK [DEBUG]: – "[client-4ba54] Connect to backup choose_server:" – "https://webrtc2-ap-web-3.agora.io/api/v1" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:40:877 Agora-SDK [DEBUG]: – "[client-4ba54] Connect to backup choose_server:" – "https://webrtc2-ap-web-4.agoraio.cn/api/v1" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:41:276 Agora-SDK [DEBUG]: – "[gateway-client-4ba54] start connect, url: wss://38-93-228-133.edge.agora.io:5896" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:41:962 Agora-SDK [DEBUG]: – "[gateway-client-4ba54] websockect opened:" – "wss://38-93-228-133.edge.agora.io:5896" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:42:391 Agora-SDK [INFO]: – "[client-4ba54] connection state change: CONNECTING -> CONNECTED" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:42:392 Agora-SDK [DEBUG]: – "[client-4ba54] Connected to gateway server" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:42:392 Agora-SDK [INFO]: – "[client-4ba54] Joining channel success: test" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:42:415 Agora-SDK [DEBUG]: – "[client-4ba54] user online" – 2592385175 (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:42:415 Agora-SDK [DEBUG]: – "[client-4ba54] stream added with uid 2592385175, type video" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:42:415 Agora-SDK [INFO]: – "[client-4ba54] remote user 2592385175 published video" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:42:418 Agora-SDK [DEBUG]: – "[client-4ba54] stream added with uid 2592385175, type audio" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:39:42:419 Agora-SDK [INFO]: – "[client-4ba54] remote user 2592385175 published audio" (AgoraRTC_N-4.0.1.js, line 5)
[Error] Unhandled Promise Rejection: AgoraRTCError INVALID_PARAMS: mediaType can only be set as ["audio","video"]
	(anonymous function) (basicLive.js:120)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise

I then reverse the exercise. I joined as a host on Mac Safari. Local video is showing. With some errors in the the console log:

[Log] 22:51:28:154 Agora-SDK [INFO]: – "[client-73206] Initializing AgoraRTC client v4.0.1 build: v4.0.1-0-g05d38ea(7/17/2020, 5:32:05 PM), mode: live, codec: h264" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:155 Agora-SDK [INFO]: – "[client-73206] start join channel test" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:155 Agora-SDK [INFO]: – "[client-73206] connection state change: DISCONNECTED -> CONNECTING" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:155 Agora-SDK [DEBUG]: – "Flush cached event reporting:" – 1 (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:157 Agora-SDK [DEBUG]: – "[client-73206] Connect to choose_server:" – "https://webrtc2-ap-web-1.agora.io/api/v1" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:157 Agora-SDK [DEBUG]: – "[client-73206] Connect to choose_server:" – "https://webrtc2-ap-web-2.agoraio.cn/api/v1" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:694 Agora-SDK [DEBUG]: – "[gateway-client-73206] start connect, url: wss://69-28-51-148.edge.agoraio.cn:5895" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:819 Agora-SDK [DEBUG]: – "[gateway-client-73206] websockect opened:" – "wss://69-28-51-148.edge.agoraio.cn:5895" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:885 Agora-SDK [INFO]: – "[client-73206] connection state change: CONNECTING -> CONNECTED" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:886 Agora-SDK [DEBUG]: – "[client-73206] Connected to gateway server" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:887 Agora-SDK [INFO]: – "[client-73206] Joining channel success: test" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:28:889 Agora-SDK [INFO]: – "start create microphone audio track with config" (3) (AgoraRTC_N-4.0.1.js, line 5)
{}
"trackId"
"track-47764b1e"
[Log] 22:51:28:891 Agora-SDK [DEBUG]: – "[track-47764b1e] GetUserMedia" – "{\"audio\":{}}" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:30:887 Agora-SDK [DEBUG]: – "polyfill audio node" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:30:887 Agora-SDK [DEBUG]: – "polyfill audio node" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:30:889 Agora-SDK [INFO]: – "create microphone audio track success, trackId:" – "track-47764b1e" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:30:890 Agora-SDK [INFO]: – "start create camera video track with config" (3) (AgoraRTC_N-4.0.1.js, line 5)
{}
"trackId"
"track-825f6eac"
[Log] 22:51:30:890 Agora-SDK [DEBUG]: – "[track-825f6eac] GetUserMedia" – "{\"video\":{}}" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:33:637 Agora-SDK [INFO]: – "microphone device changed" – "{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"02676ED443951AC7DD93B8EA61DEC12FC28A8AA2\",\"kind\":\"audioinput\",\"label\"…" (AgoraRTC_N-4.0.1.js, line 5)
"{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"02676ED443951AC7DD93B8EA61DEC12FC28A8AA2\",\"kind\":\"audioinput\",\"label\":\"Display Audio\",\"groupId\":\"\"},\"state\":\"ACTIVE\"}"
[Log] 22:51:33:637 Agora-SDK [INFO]: – "microphone device changed" – "{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"BB9CF2C55347BD4410A513FA65F769081FDBC12F\",\"kind\":\"audioinput\",\"label\"…" (AgoraRTC_N-4.0.1.js, line 5)
"{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"BB9CF2C55347BD4410A513FA65F769081FDBC12F\",\"kind\":\"audioinput\",\"label\":\"Built-in Microphone\",\"groupId\":\"\"},\"state\":\"ACTIVE\"}"
[Log] 22:51:33:637 Agora-SDK [INFO]: – "microphone device changed" – "{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"CADC1918A7D429A9FC4BCE0804327FBA83134B16\",\"kind\":\"audioinput\",\"label\"…" (AgoraRTC_N-4.0.1.js, line 5)
"{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"CADC1918A7D429A9FC4BCE0804327FBA83134B16\",\"kind\":\"audioinput\",\"label\":\"NoMachine Audio Adapter\",\"groupId\":\"\"},\"state\":\"ACTIVE\"}"
[Log] 22:51:33:637 Agora-SDK [INFO]: – "microphone device changed" – "{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"899C95B7BAF1F896DA516F99D257C1774332F5E2\",\"kind\":\"audioinput\",\"label\"…" (AgoraRTC_N-4.0.1.js, line 5)
"{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"899C95B7BAF1F896DA516F99D257C1774332F5E2\",\"kind\":\"audioinput\",\"label\":\"NoMachine Microphone Adapter\",\"groupId\":\"\"},\"state\":\"ACTIVE\"}"
[Log] 22:51:33:637 Agora-SDK [INFO]: – "camera device changed" – "{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"7862949AD70E78CE4AD15A873088C16FCD38B13E\",\"kind\":\"videoinput\",\"label\"…" (AgoraRTC_N-4.0.1.js, line 5)
"{\"initAt\":1595829093636,\"updateAt\":1595829093636,\"device\":{\"deviceId\":\"7862949AD70E78CE4AD15A873088C16FCD38B13E\",\"kind\":\"videoinput\",\"label\":\"FaceTime HD Camera (Display)\",\"groupId\":\"\"},\"state\":\"ACTIVE\"}"
[Log] 22:51:34:943 Agora-SDK [INFO]: – "create camera video success, trackId:" – "track-825f6eac" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:943 Agora-SDK [DEBUG]: – "[track-track-825f6eac] start video playback" – "{}" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:944 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change none => init" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:949 Agora-SDK [INFO]: – "[client-73206] Publishing tracks, id track-825f6eac ,track-47764b1e " (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:950 Agora-SDK [DEBUG]: – "[client-73206] publish high stream" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:953 Agora-SDK [DEBUG]: – "[client-73206-pub-1] add video track to pc" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:955 Agora-SDK [DEBUG]: – "[client-73206-pub-1] set pc rtp sender" (2) (AgoraRTC_N-4.0.1.js, line 5)
{maxBitrate: undefined}
"balanced"
[Log] 22:51:34:956 Agora-SDK [DEBUG]: – "[client-73206-pub-1] add audio track to pc" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:968 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change init => playing" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:968 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change playing => waiting" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:971 Agora-SDK [DEBUG]: – "[client-73206-pub-1] create and set offer success" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:972 Agora-SDK [INFO]: – "[client-73206-pub-1] connection-state: pub p2p connecting" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:34:980 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change waiting => suspend" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:35:15 Agora-SDK [INFO]: – "[client-73206-pub-1] ice-state: pub p2p checking" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:35:15 Agora-SDK [DEBUG]: – "[client-73206-pub-1] set answer success" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:35:43 Agora-SDK [DEBUG]: – "[pc-1] local candidate count" – 3 (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:35:115 Agora-SDK [INFO]: – "[client-73206-pub-1] ice-state: pub p2p connected" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:35:116 Agora-SDK [DEBUG]: – "Flush cached event reporting:" – 3 (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:35:117 Agora-SDK [INFO]: – "[client-73206] Publish success, id track-825f6eac ,track-47764b1e " (AgoraRTC_N-4.0.1.js, line 5)
[Log] publish success (basicLive.js, line 89)
[Log] 22:51:35:118 Agora-SDK [INFO]: – "[client-73206-pub-1] connection-state: pub p2p connected" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:35:118 Agora-SDK [INFO]: – "[client-73206-pub-1] ice-state: pub p2p completed" (AgoraRTC_N-4.0.1.js, line 5)
[Error] TypeError: undefined is not an object (evaluating 't.inputFrame.frameRate.toString')
	value (AgoraRTC_N-4.0.1.js:5:419120)
	(anonymous function) (AgoraRTC_N-4.0.1.js:5:329494)
[Log] 22:51:36:707 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change suspend => canplay" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:36:707 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change canplay => playing" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:51:36:969 Agora-SDK [DEBUG]: – "[track-825f6eac] current video dimensions:" – 640 – 480 (AgoraRTC_N-4.0.1.js, line 5)
[Error] TypeError: undefined is not an object (evaluating 't.inputFrame.frameRate.toString')
	value (AgoraRTC_N-4.0.1.js:5:419120)
	(anonymous function) (AgoraRTC_N-4.0.1.js:5:329494)
[Log] 22:52:42:490 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change playing => paused" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:52:42:490 Agora-SDK [DEBUG]: – "[track-track-825f6eac] video element paused, auto resume" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:52:42:493 Agora-SDK [DEBUG]: – "[track-825f6eac] current video dimensions:" – 640 – 480 (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:52:42:493 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change paused => playing" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:52:42:493 Agora-SDK [DEBUG]: – "[track-825f6eac] current video dimensions:" – 640 – 480 (AgoraRTC_N-4.0.1.js, line 5)
[Error] TypeError: undefined is not an object (evaluating 't.inputFrame.frameRate.toString')
	value (AgoraRTC_N-4.0.1.js:5:419120)
	(anonymous function) (AgoraRTC_N-4.0.1.js:5:329494)
[Log] 22:54:14:348 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change playing => paused" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:54:14:348 Agora-SDK [DEBUG]: – "[track-track-825f6eac] video element paused, auto resume" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:54:14:350 Agora-SDK [DEBUG]: – "[track-825f6eac] current video dimensions:" – 640 – 480 (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:54:14:350 Agora-SDK [DEBUG]: – "[track-825f6eac] video-element-status change paused => playing" (AgoraRTC_N-4.0.1.js, line 5)
[Log] 22:54:14:350 Agora-SDK [DEBUG]: – "[track-825f6eac] current video dimensions:" – 640 – 480 (AgoraRTC_N-4.0.1.js, line 5)
[Error] TypeError: undefined is not an object (evaluating 't.inputFrame.frameRate.toString')
	value (AgoraRTC_N-4.0.1.js:5:419120)
	(anonymous function) (AgoraRTC_N-4.0.1.js:5:329494)

I then joined as an audience on iPhone Safari. No obvious errors. But there are no video nor audio feed. Logs here:

22:51:54:219 Agora-SDK [INFO]: – "[client-409df] Initializing AgoraRTC client v4.0.1 build: v4.0.1-0-g05d38ea(7/17/2020, 5:32:05 PM), mode: live, codec: h264"
value — AgoraRTC_N-4.0.1.js:5:14409722:51:54:221 Agora-SDK [INFO]: – "[client-409df] start join channel test"
value — AgoraRTC_N-4.0.1.js:5:14409722:51:54:221 Agora-SDK [INFO]: – "[client-409df] connection state change: DISCONNECTED -> CONNECTING"
value — AgoraRTC_N-4.0.1.js:5:14397622:51:54:221 Agora-SDK [DEBUG]: – "Flush cached event reporting:" – 3
value — AgoraRTC_N-4.0.1.js:5:14397622:51:54:222 Agora-SDK [DEBUG]: – "[client-409df] Connect to choose_server:" – "https://webrtc2-ap-web-1.agora.io/api/v1"
value — AgoraRTC_N-4.0.1.js:5:14397622:51:54:223 Agora-SDK [DEBUG]: – "[client-409df] Connect to choose_server:" – "https://webrtc2-ap-web-2.agoraio.cn/api/v1"
value — AgoraRTC_N-4.0.1.js:5:14397622:51:54:791 Agora-SDK [DEBUG]: – "[gateway-client-409df] start connect, url: wss://69-28-51-148.edge.agora.io:5895"
value — AgoraRTC_N-4.0.1.js:5:14397622:51:54:940 Agora-SDK [DEBUG]: – "[gateway-client-409df] websockect opened:" – "wss://69-28-51-148.edge.agora.io:5895"
value — AgoraRTC_N-4.0.1.js:5:14409722:51:55:12 Agora-SDK [INFO]: – "[client-409df] connection state change: CONNECTING -> CONNECTED"
value — AgoraRTC_N-4.0.1.js:5:14397622:51:55:13 Agora-SDK [DEBUG]: – "[client-409df] Connected to gateway server"
value — AgoraRTC_N-4.0.1.js:5:14409722:51:55:13 Agora-SDK [INFO]: – "[client-409df] Joining channel success: test"
value — AgoraRTC_N-4.0.1.js:5:14397622:51:55:38 Agora-SDK [DEBUG]: – "[client-409df] user online" – 3426135944
value — AgoraRTC_N-4.0.1.js:5:14397622:51:55:40 Agora-SDK [DEBUG]: – "[client-409df] stream added with uid 3426135944, type audio"
value — AgoraRTC_N-4.0.1.js:5:14409722:51:55:40 Agora-SDK [INFO]: – "[client-409df] remote user 3426135944 published audio"
value — AgoraRTC_N-4.0.1.js:5:14397622:51:55:138 Agora-SDK [DEBUG]: – "[client-409df] stream added with uid 3426135944, type video"
value — AgoraRTC_N-4.0.1.js:5:14409722:51:55:139 Agora-SDK [INFO]: – "[client-409df] remote user 3426135944 published video"
value — AgoraRTC_N-4.0.1.js:5:14409722:52:00:348 Agora-SDK [INFO]: – "microphone device changed" – "{\"initAt\":1595828336719,\"updateAt\":1595829117847,\"device\":{\"deviceId\":\"B074024B7120C314555EE27E740A48084D946846\",\"kind\":\"audioinput\",\"label\"…"
value — AgoraRTC_N-4.0.1.js:5:14409722:52:00:348 Agora-SDK [INFO]: – "camera device changed" – "{\"initAt\":1595828336719,\"updateAt\":1595829117847,\"device\":{\"deviceId\":\"B84AF3487044678F5AED3EB700736E507A7237CE\",\"kind\":\"videoinput\",\"label\"…"
value — AgoraRTC_N-4.0.1.js:5:14409722:52:00:349 Agora-SDK [INFO]: – "camera device changed"

Again, the only version that works both way is v0.1.9

@mango009 mango009 changed the title Release 4.01 is broken Release 4.0.1 is broken Jul 27, 2020
@disoul
Copy link
Collaborator

disoul commented Jul 27, 2020

I notice this error log [Error] Unhandled Promise Rejection: AgoraRTCError INVALID_PARAMS: mediaType can only be set as ["audio","video"].

This means you did not pass mediaType param to Client.subscribe.

client.on("user-published", async (user, mediaType) => {
  await client.subscribe(user, mediaType); // <--- pass the mediaType
  /**
  ...
 **/
});

@mango009
Copy link
Author

mango009 commented Jul 27, 2020

I'm using the basicLive demo you guys provided with no change. So it is entirely your code.

Also, do you have any explanation for the second scenario? --> Join as host on Mac Safari and join as host on iPhone Safari but not audio/video feed shown on iPhone.

@disoul
Copy link
Collaborator

disoul commented Jul 27, 2020

The basicLive demo has been updated with new 4.0.0 API. You can check out it now and update your codes.

Also, do you have any explanation for the second scenario? --> Join as host on Mac Safari and join as host on iPhone Safari but not audio/video feed shown on iPhone.

I think this is the same reason.

@mango009
Copy link
Author

I'm using the most recent basicLive demo as-is. No change.

@disoul disoul closed this as completed Sep 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants