brew install jansson libnice openssl libusrsctp libmicrohttpd libwebsockets cmake opus libogg libcurl glib pkg-config gengetopt autoconf automake libtool
# This installs libwebsockets 2.4.1
# Then from janus @master#c408dd57ba874378e7fedb9a17b5e14f17fa6f8f
./configure --prefix=/usr/local --disable-all-plugins --enable-plugin-streaming PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
make
sudo make configs
sudo make installws = new WebSocket('ws://192.168.0.12:8188/janus', 'janus-protocol')
ws.onmessage = function(msg) {
console.log(msg.data);
}
ws.send(JSON.stringify({janus: 'create', transaction: 'c408dd57ba874378e7fedb9a17b5e14f17fa6f8f'}))[WSS-0x7febe2f03ce0] 20 (LWS_CALLBACK_FILTER_PROTOCOL_CONNECTION)[WSS-0x7febe2f03ce0] 53 ((null))[WSS-0x7febe2f03ce0] WebSocket connection opened from 192.168.0.12Checking if 192.168.0.12 is allowed to contact janus interfaceYep[WSS-0x7febe2f03ce0] WebSocket connection accepted[WSS-0x7febe2f03ce0] -- Ready to be used![WSS-0x7febe2f03ce0] Got 75 bytes:[WSS-0x7febe2f03ce0] First fragment: 75 bytes, 0 remaining{"janus":"create","transaction":"c408dd57ba874378e7fedb9a17b5e14f17fa6f8f"}[WSS-0x7febe2f03ce0] Done, parsing message: 75 bytesGot a Janus API request from janus.transport.websockets (0x7febe4300000)Transport task pool, serving requestCreating new session: 1736805532720348Sending Janus API response to janus.transport.websockets (0x7febe4300000)
Thanks a lot,This is quite helpful, pointing me in the right direction and showing that there is indeed an issue!I guess I will have to dive in a bit, maybe an occasion to contribute? ;-)
--
You received this message because you are subscribed to a topic in the Google Groups "meetecho-janus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/meetecho-janus/HsFaEXBz4Cg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[ 1%] Building C object CMakeFiles/websockets.dir/lib/tls/openssl/openssl-client.c.o/Users/marcel/libwebsockets/lib/tls/openssl/openssl-client.c:283:25: error: implicit declaration of function 'TLS_client_method' is invalid in C99 [-Werror,-Wimplicit-function-declaration] method = (SSL_METHOD *)TLS_client_method(); ^/Users/marcel/libwebsockets/lib/tls/openssl/openssl-client.c:283:25: note: did you mean 'TLSv1_client_method'?/opt/local/include/openssl/ssl.h:1872:19: note: 'TLSv1_client_method' declared hereconst SSL_METHOD *TLSv1_client_method(void); /* TLSv1.0 */ ^/Users/marcel/libwebsockets/lib/tls/openssl/openssl-client.c:283:11: error: cast to 'SSL_METHOD *' (aka 'struct ssl_method_st *') from smaller integer type 'int' [-Werror,-Wint-to-pointer-cast] method = (SSL_METHOD *)TLS_client_method(); ^2 errors generated.cmake -DLWS_WITH_SSL=0 ..
PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig cmake ..--