michaelh
michaelh
SMSoftware Mansion
Created by michaelh on 2/4/2024 in #membrane-help
Error when compiling free4chat
That was it! It compiled. Thanks
{:membrane_rtc_engine, "== 0.6.0"},
{:membrane_webrtc_plugin, "== 0.8.0"},
{:membrane_core, "== 0.10.0"},
{:membrane_rtc_engine, "== 0.6.0"},
{:membrane_webrtc_plugin, "== 0.8.0"},
{:membrane_core, "== 0.10.0"},
12 replies
SMSoftware Mansion
Created by michaelh on 2/4/2024 in #membrane-help
Error when compiling free4chat
I almost got this to compile with these dependencies but because I need SimulcastConfig%{} from a newer library, compilation fails
{:membrane_rtc_engine, "== 0.9.1"},
{:membrane_webrtc_plugin, "== 0.11.0"},
{:membrane_core, "== 0.10.0"},
{:membrane_rtc_engine, "== 0.9.1"},
{:membrane_webrtc_plugin, "== 0.11.0"},
{:membrane_core, "== 0.10.0"},
but I get this error:
== Compilation error in file lib/free4chat/room.ex ==
** (KeyError) key :default_encoding not found
(membrane_rtc_engine 0.9.1) expanding struct: Membrane.RTC.Engine.Endpoint.WebRTC.SimulcastConfig.__struct__/1
lib/free4chat/room.ex:148: Free4chat.Room.handle_info/2
== Compilation error in file lib/free4chat/room.ex ==
** (KeyError) key :default_encoding not found
(membrane_rtc_engine 0.9.1) expanding struct: Membrane.RTC.Engine.Endpoint.WebRTC.SimulcastConfig.__struct__/1
lib/free4chat/room.ex:148: Free4chat.Room.handle_info/2
Strangely, this is in a much newer library: https://hexdocs.pm/membrane_rtc_engine_webrtc/0.1.0/Membrane.RTC.Engine.Endpoint.WebRTC.SimulcastConfig.html
12 replies
SMSoftware Mansion
Created by michaelh on 2/4/2024 in #membrane-help
Error when compiling free4chat
Ok I’ll give it one more try
12 replies
SMSoftware Mansion
Created by michaelh on 2/4/2024 in #membrane-help
Error when compiling free4chat
UPDATE: after trying to rollback both dependencies, I keep running into conflicts. Looks like I'll have to learn more about membrane in general
12 replies
SMSoftware Mansion
Created by michaelh on 2/4/2024 in #membrane-help
Error when compiling free4chat
@sgfn hey thanks, that actually helped a lot and I'm at the point where I'm just hitting runtime errors due to library deprecation. so for rtc engine 0.6.0 it looks like there is no longer a Membrane.RTC.Engine.Message.MediaEvent because I got this error:
** (CompileError) lib/free4chat/room.ex:94: Membrane.RTC.Engine.Message.MediaEvent.__struct__/0 is undefined, cannot expand struct Membrane.RTC.Engine.Message.MediaEvent. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code
** (CompileError) lib/free4chat/room.ex:94: Membrane.RTC.Engine.Message.MediaEvent.__struct__/0 is undefined, cannot expand struct Membrane.RTC.Engine.Message.MediaEvent. Make sure the struct name is correct. If the struct name exists and is correct but it still cannot be found, you likely have cyclic module usage in your code
def handle_info(%Message.MediaEvent{to: :broadcast, data: data}, state) do
def handle_info(%Message.MediaEvent{to: :broadcast, data: data}, state) do
so I know my choice is either to rollback or fix the error. What would you recommend? Would it be as simple as trying to find the changelog for the rtc engine in the attempt to upgrade the codebase or maybe just rollback?
12 replies