Skip to content

Invalid candidate format When adding an ice candidate generated from browser WebRTC #128

Open
@rylydou

Description

@rylydou

Godot version

v4.2.1.rc1.official [daeb1c729]

Plugin version

1.0.3

System information

Fedora 39

Issue description

When trying to set up a WebRTC connect between Godot and the browser the browser successfully connects but Godot fails when receiving ice candidates from the browser (Invalid candidate format). According the libdatachannel it should be compatible with the browser. There also datachannel-wasm for the browser which might offer better compatibility but I have not done any testing because it would require setting up WebAssembly.

Why am I doing all this? Although WebSockets exists the only way to send UDP (or UDP like) packets in a browser is with WebRTC or WebTransport. WebTransport is not supported in Safari yet, a deal breaker for smartphones leaving the only other option being WebRTC.

Steps to reproduce

See the attached example project.

Minimal reproduction project

Godot Remote - An in-development addon to provide functionality for using a smartphone as a remote controller, sort of like jackbox.tv.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions