godotengine / webrtc-native

The official GDNative WebRTC implementation for non-html exports.
MIT License
198 stars 27 forks source link

Can't load WebRTC native plugin on the Mac #117

Closed poke646 closed 8 months ago

poke646 commented 9 months ago

Godot version

4.1.1

Plugin version

Latest Official Build

System information

Mac OS 13.3.1 (Ventura) M1 PRO

Issue description

I tried the official webrtc demo project.

Downloaded the native webrtc plugin and copied to root folder of the project.

On Debug start there is an error: Error loading extension: res://webrtc.gdextension

Steps to reproduce

Unpack the sample and put official libs to lib folder in the project. Run the project on Mac M1.

Minimal reproduction project

sample-rtc-project.zip

poke646 commented 9 months ago

Oh I see the folder structure seems wrong it should be in "webrtc" folder but I can't run demo because of WebSocketClient not declared in the current scope. on multiplayer_client.gd

Faless commented 8 months ago

Oh I see the folder structure seems wrong it should be in "webrtc" folder

This issue is also being tracked in #118 and there is a bit more information there.

WebSocketClient not declared in the current scope

WebSocket classes have changed in Godot 4.0, check the updated demo here