Closed stevepetersen closed 1 year ago
just for a quick check, did you try the same on https://agoraio-community.github.io/AgoraWebSDK-NG/demo/pushStreamToCDN/index.html
Yes just tried it, same result:
10:31:41:379 Agora-SDK [DEBUG]: – "[lock-safari-1] is created."
log — AgoraRTC_N.js:40110:31:41:393 Agora-SDK [INFO]: – "browser compatibility" (2)
"{\"getDisplayMedia\":true,\"getStreamFromExtension\":false,\"supportUnifiedPlan\":true,\"supportMinBitrate\":false,\"supportSetRtpSenderParameters\":true,\"supportDualStream\":false,\"webAudioMediaStreamDest\":true,\"supportReplaceTrack\":true,\"supportWebGL\":true,\"webAudioWithAEC\":true,\"supportRequestFrame\":true,\"supportShareAudio\":false}"
"{\"name\":\"Safari\",\"version\":\"14\",\"os\":\"Mac OS X\"}"
log — AgoraRTC_N.js:400:40410:31:41:396 Agora-SDK [DEBUG]: – "[lock-client-leave-2] is created."
log — AgoraRTC_N.js:400:40410:31:41:396 Agora-SDK [DEBUG]: – "[lock-client-publish-3] is created."
log — AgoraRTC_N.js:40110:31:41:397 Agora-SDK [INFO]: – "[client-7873b] Initializing AgoraRTC client v4.2.1 build: v4.2.1-0-gf505b57(12/23/2020, 5:25:33 PM), mode: live, codec: vp8"
https://agoraio-community.github.io/favicon.icoFailed to load resource: the server responded with a status of 404 ()
https://agoraio-community.github.io/AgoraWebSDK-NG/demo/assets/bootstrap.min.css.mapFailed to load resource: the server responded with a status of 404 ()
https://agoraio-community.github.io/AgoraWebSDK-NG/demo/assets/bootstrap.bundle.min.js.mapFailed to load resource: the server responded with a status of 404 ()
https://download.agora.io/sdk/release/AgoraRTC_N-production.js.mapFailed to load resource: the server responded with a status of 404 (Not Found)
log — AgoraRTC_N.js:40110:32:57:344 Agora-SDK [INFO]: – "[client-7873b] start join channel
On May 22, 2021, at 9:13 PM, xia ning @.***> wrote:
just for a quick check, did you try the same on https://agoraio-community.github.io/AgoraWebSDK-NG/demo/pushStreamToCDN/index.html https://agoraio-community.github.io/AgoraWebSDK-NG/demo/pushStreamToCDN/index.html — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AgoraIO/API-Examples-Web/issues/11#issuecomment-846498874, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQQKRJYRWXVCVGCZ4L44C3TPB6FHANCNFSM45K62IXA.
Thanks for the information provided, seems your CDN url may have some issues, If using other url works fine. Do you have chance to use any other tool to stream with same url?
Yes I have used this url with the OBS plugin and it works fine. I have also tried a few ivs endpoints that work with the obs plugin but not with this demo code.
Sent from my iPhone
On May 23, 2021, at 11:28 AM, xia ning @.***> wrote:
Thanks for the information provided, seems your CDN url may have some issues, If using other url works fine. Do you have chance to use any other tool to stream with same url?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
hi @stevepetersen , unfortunately currently only rtmp/rtmps protocol is supported.
I tried rtmp://62.113.210.250/medienasa-live/ok-merseburg_high rtmp://62.113.210.250/medienasa-live/ok-merseburg_high
This rtmp stream works in OBS, but I get the following error on https://agoraio-community.github.io/AgoraWebSDK-NG/demo/pushStreamToCDN/index.html https://agoraio-community.github.io/AgoraWebSDK-NG/demo/pushStreamToCDN/index.html
Here is the result:
log (AgoraRTC_N.js:401:270)
error (AgoraRTC_N.js:399:382)
throw (AgoraRTC_N.js:404:522)
(anonymous function) (AgoraRTC_N.js:962:253)
asyncFunctionResume
(anonymous function)
promiseReactionJobWithoutPromise
[Error] live streaming error: – "AgoraRTCError LIVE_STREAMING_CDN_ERROR: " (anonymous function) (pushStreamToCDN.js:183) asyncFunctionResume (anonymous function) promiseReactionJobWithoutPromise promiseReactionJob
Steve Petersen | Co-founder & CTO Riff | https://joinriff.com/j http://playlist.com/oinriff.com cell: 408-348-6765
On May 23, 2021, at 7:31 PM, Qianze Zhang @.***> wrote:
hi @stevepetersen https://github.com/stevepetersen , unfortunately currently only rtmp/rtmps protocol is supported.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AgoraIO/API-Examples-Web/issues/11#issuecomment-846689477, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQQKRLAJMKO24T5HZRZBYLTPG3A7ANCNFSM45K62IXA.
have you turned on cdn streaming service in your dashboard console? https://docs.agora.io/en/Interactive%20Broadcast/cdn_streaming_web_ng?platform=Web
We have enabled “RTMP converter” per this documentation: https://docs.agora.io/en/Interactive%20Broadcast/cdn_streaming_web?platform=Web https://docs.agora.io/en/Interactive%20Broadcast/cdn_streaming_web?platform=Web
Steve Petersen | Co-founder & CTO Riff | https://joinriff.com/j http://playlist.com/oinriff.com cell: 408-348-6765
On May 24, 2021, at 7:39 PM, Qianze Zhang @.***> wrote:
have you turned on cdn streaming service in your dashboard console? https://docs.agora.io/en/Interactive%20Broadcast/cdn_streaming_web_ng?platform=Web https://docs.agora.io/en/Interactive%20Broadcast/cdn_streaming_web_ng?platform=Web — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AgoraIO/API-Examples-Web/issues/11#issuecomment-847486585, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQQKRNIEWHFVWN5MXYTZ5TTPMEXZANCNFSM45K62IXA.
Running the push stream to CDN demo from the web code (without changes) I get an error code:
AgoraRTCError LIVE_STREAMING_INVALID_ARGUMENT: data: {\"code\":451}
I've covered the channel and app id in the following log, but this shows the error. I've verified that the app ID includes the transcoding service and that the token and channel are correct (the host video shows up in my channel correctly).
Here is the log:
[Log] client leaves channel success (pushStreamToCDN.js, line 214)
"[client-29f87] Choose server https://webrtc2-ap-web-2.agoraio.cn/api/v1 failed, message: AgoraRTCError CAN_NOT_GET_GATEWAY_SERVER: unable to allocate services in this area, retry: false"
{maxBitrate: undefined} "balanced"
[Log] publish success (pushStreamToCDN.js, line 111)
[Error] live streaming error: – "AgoraRTCError LIVE_STREAMING_INVALID_ARGUMENT: " (anonymous function) (pushStreamToCDN.js:186) asyncFunctionResume (anonymous function) promiseReactionJobWithoutPromise promiseReactionJob