-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebRTC: Exchange SDP failed #13
Comments
Have you solved this problem? |
Encountered the same issue with Unity 2022.3.31f1 + WebRTC 3.0.0.pre7 + SRS Release v5.0-r2. WebRTC: Exchange SDP failed, url=http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream, err is System.AggregateException: One or more errors occurred. (An error occurred while sending the request) ---> System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error getting response stream (ReadDoneAsync2): ReceiveFailure at System.Net.Http.MonoWebRequestHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x004ae] in <7525edf6bbaf4eada243526d1f860b91>:0 at System.Net.Http.MonoWebRequestHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x004ae] in <7525edf6bbaf4eada243526d1f860b91>:0 UnityEngine.Debug:Log (object)
|
你们有解决这个问题么,我推流也是这个问题,通过SRS的whip是正常能推的,到这边来就不能推了 |
同问,有没有解决方法 |
SDP negotiation failed!
The local SRS service uses SRS-Windows-x86_64-5.0-b3-setup and Docker has been tried, the configuration is rtc2rtmp.conf
This is the case from Unity 19 to 22, [email protected]~5 and 2.4 are also the same,
I see the error is in this part of the code,
Because there is an RTSP camera, it also pushes to the SRS service, but when pulling the stream, some computers also report this error, while some computers work well, which is very strange.
请问如何解决?是哪里出了问题?
WebRTC: Exchange SDP failed, url=http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream, err is System.AggregateException: One or more errors occurred. (An error occurred while sending the request) ---> System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error getting response stream (ReadDoneAsync2): ReceiveFailure
at System.Net.WebResponseStream.InitReadAsync (System.Threading.CancellationToken cancellationToken) [0x000f3] in <6d7c4c8dd3624dc596686fb7270ae1e6>:0
at System.Net.WebOperation.Run () [0x001d9] in <6d7c4c8dd3624dc596686fb7270ae1e6>:0
at System.Net.WebCompletionSource
1[T].WaitForCompletion () [0x00094] in <6d7c4c8dd3624dc596686fb7270ae1e6>:0 at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task
1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <6d7c4c8dd3624dc596686fb7270ae1e6>:0 at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00020] in <6d7c4c8dd3624dc596686fb7270ae1e6>:0 at System.Threading.Tasks.TaskFactory
1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func2[T,TResult] endFunction, System.Action
1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <6073cf49ed704e958b8a66d540dea948>:0--- End of stack trace from previous location where exception was thrown ---
at System.Net.Http.MonoWebRequestHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x004ae] in <8ab5a610e55c46a3a47ee18acfd3668c>:0
--- End of inner exception stack trace ---
at System.Net.Http.MonoWebRequestHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00509] in <8ab5a610e55c46a3a47ee18acfd3668c>:0
at System.Net.Http.HttpClient.SendAsyncWorker (System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken) [0x000e8] in <8ab5a610e55c46a3a47ee18acfd3668c>:0
at SrsStreamer+<>c__DisplayClass10_0.b__11 () [0x00073] in C:\Users\Kane\Desktop\srs-unity\Assets\ossrs.io\Video Streaming and WebRTC Samples\Streamer\SrsStreamer.cs:173
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error getting response stream (ReadDoneAsync2): ReceiveFailure
at System.Net.WebResponseStream.InitReadAsync (System.Threading.CancellationToken cancellationToken) [0x000f3] in <6d7c4c8dd3624dc596686fb7270ae1e6>:0
at System.Net.WebOperation.Run () [0x001d9] in <6d7c4c8dd3624dc596686fb7270ae1e6>:0
at System.Net.WebCompletionSource
1[T].WaitForCompletion () [0x00094] in <6d7c4c8dd3624dc596686fb7270ae1e6>:0 at System.Net.HttpWebRequest.RunWithTimeoutWorker[T] (System.Threading.Tasks.Task
1[TResult] workerTask, System.Int32 timeout, System.Action abort, System.Func`1[TResult] aborted, System.Threading.CancellationTokenSource cts) [0x000f8] in <6d7c4c8dd3624dc596686fb7270ae1e6>:0TRANS_BY_GPT4
The text was updated successfully, but these errors were encountered: