webrtc-native icon indicating copy to clipboard operation
webrtc-native copied to clipboard

catch ice invalid url error

Open tlloancy opened this issue 1 year ago • 4 comments

Godot version

4.2.2

Plugin version

0.2

System information

Windows 10

Issue description

icescrenne

HELLO, I would like to be able to catch the error displayed after what(), for user information purpose. Is that possible ? [Edit] The Goal is to keep more track on steps and status of ice connections, for both dev and UI purpose

Steps to reproduce

my programm let the user choose his ice server. I'd like to inform him for any error like this one, where his url input is invalid

Minimal reproduction project

invoke ice server iceserverconfiguration
### Tasks

tlloancy avatar Apr 21 '24 14:04 tlloancy

@tlloancy can you please upload a minimum reproduction project? The screenshot you shared is not really an MRP, it's only part of the code, it can't be run, and people are not gonna copy your script from an image to test it.

Faless avatar Apr 22 '24 09:04 Faless

Plugin version

0.2

Also, please try updating to the latest version of the plugin: 1.0.6

Faless avatar Apr 22 '24 09:04 Faless

As you can see, we already catch the error in the latest version: https://github.com/godotengine/webrtc-native/blob/1.0.6-stable/src/WebRTCLibPeerConnection.cpp#L260-L272

Faless avatar Apr 22 '24 09:04 Faless

Hi, i know the error is correctly raised in webrtc as you can see in the first screenshot, but i would like to be able to catch that error at my app level in order to display the information as well as avoid crashing the app. i dont know how i am doing that. Thx

tlloancy avatar Apr 22 '24 22:04 tlloancy