Closed ghost closed 6 years ago
I think I should try running janus in a docker container to make sure it's not just a mac issue.
Well known issue with libwebsockets on mac, you need master of that library as they only fixed it recently there. Closing.
This problem is solved? Why do I have the same problem with all three Macos, Is it wrong with me?
My libwebsocket version is v2.4.1_1, srtp version is v2.1.0, Libnice is v0.1.14, Openssl is v1.0.2o,
@MinorUncle
libwebsocket version is v2.4.1_1
I think this version is still affected. According to my post above, I used the same version.
I see there is a newer version on brew
, maybe you could try it and tell us if it worked?
> brew info libwebsockets
libwebsockets: stable 2.4.2 (bottled), HEAD
...
As for me, I found it easier to run janus in a docker container while developing for it. Since I run it on a linux box in "production" anyway.
Hi @idi-ot
I switched to v2.4.2,
libwebsockets: stable 2.4.2 (bottled), HEAD
But the result was the same error, I'm debugging it with Xcode, so I still can't put it in docker.
I'm debugging it with Xcode, so I still can't put it in docker.
Are you running janus as part of your XCode project? If you could explain what exactly you are trying to accomplish with janus on macos, it would be easier for us to help you.
If 2.4.2 doesn't work, maybe try building from source.
Yes, but there's a error with this WS
Yes, you are running janus as part of your XCode project? Or yes, you tried building from source and it didn't work?
I think of Janus as primarily "server-side" software, and there are not many servers running on macos, so what exactly are you using janus for?
Sorry, English is not my native language, so I answer slowly and even make some mistakes.
Yes, I am running janus as part of my XCode project
Are you developing a macos app with janus as an embedded webrtc server? Or are you developing an app which acts as a webrtc client and interacts with a remote janus instance?
But when I ran it through Xcode, it appeared the same error as you.
NO,only janus-gateway server
Then the easiest way would be to compile the dependencies from source in your project's build phase or whatever it's called in XCode, I think.
I tried building the libwebsockets v2.4.2 from source with XCode,and the result was the same problem.
I try to compile Janus on Xcode, just for debugging easily.
I just debugged and found that janus_websockets_common_callback was not invoked, resulting in lws_write not being invoked. I will continue tracing the source code tomorrow.
I'm seeing this same behavior with the latest master of libwebsockets and janus. Did you find a resolution?
libwebsockets: stable 3.1.0 (bottled) still no websocket response.
Finally, when i downgrade to 3.0.0 stable, and compile manually, it works! https://github.com/warmcat/libwebsockets/blob/v3.0-stable/READMEs/README.build.md
After sending
{\"janus\":\"create\",\"transaction\":\"qw5DX/TImxNaWBe02xpZ\"}
to janus it logs the followingbut never sends the created session id back.
However, if I send several similar requests (about 100), it does. And logs the following lines in addition for each of them
I'm on mac and installed
libwebsockets
frombrew
.Janus commit: 345641443fa073b4274cf6eabe5b190077629cce