Bug 219444 - [NEW PORT] www/janus: WebRTC gateway
Summary: [NEW PORT] www/janus: WebRTC gateway
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jesper Schmitz Mouridsen
URL:
Keywords:
Depends on: 247547 247180
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-22 02:08 UTC by John Hixson
Modified: 2020-09-24 18:45 UTC (History)
5 users (show)

See Also:


Attachments
port shar file (10.12 KB, application/x-shar)
2017-05-22 02:08 UTC, John Hixson
no flags Details
port shar file (9.62 KB, application/x-shar)
2017-05-22 20:06 UTC, John Hixson
no flags Details
port shar file (10.37 KB, application/x-shar)
2017-05-22 20:47 UTC, John Hixson
no flags Details
port shar file (10.41 KB, application/x-shar)
2017-05-23 14:06 UTC, John Hixson
no flags Details
janus shar file (10.43 KB, application/x-shar)
2017-05-23 14:10 UTC, John Hixson
no flags Details
janus.shar (9.97 KB, text/plain)
2020-06-10 19:02 UTC, Yuri Victorovich
no flags Details
janus port with patch of rtp.h (17.96 KB, patch)
2020-06-16 17:36 UTC, Jesper Schmitz Mouridsen
no flags Details | Diff
update to v0.10.3 (18.12 KB, patch)
2020-07-14 11:06 UTC, Dmitry Wagin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Hixson freebsd_committer 2017-05-22 02:08:18 UTC
Created attachment 182788 [details]
port shar file
Comment 1 John Hixson freebsd_committer 2017-05-22 20:06:31 UTC
Created attachment 182817 [details]
port shar file

Add USE_LDCONFIGRE and update pkg-plist. This still needs an rc.d script as well.
Comment 2 John Hixson freebsd_committer 2017-05-22 20:47:33 UTC
Created attachment 182819 [details]
port shar file

I've added an rc.d script. I think this is in good working shape now ;-)
Comment 3 John Hixson freebsd_committer 2017-05-23 14:06:51 UTC
Created attachment 182828 [details]
port shar file

Add audio/opus so audio bridge works
Comment 4 John Hixson freebsd_committer 2017-05-23 14:10:22 UTC
Created attachment 182829 [details]
janus shar file

Add -b to command args so daemon backgrounds
Comment 5 Yuri Victorovich freebsd_committer 2017-11-05 05:23:41 UTC
Thank you for your contribution.

These changes are needed:
* Remove 'Created by'
* Most items in BUILD_DEPENDS/RUN_DEPENDS should be combined into LIB_DEPENDS
* cmake should't be in RUN_DEPENDS, instead use USES=cmake:outsource
* Rename PORTVERSION into DISTVERSION
* No need for GH_TAGNAME
* DISTVERSIONPREFIX=v
* COPYING should be referenced by LICENSE_FILE
* CPPFLAGS/LDFLAGS should be replaced with USES=localbase

Yuri
Comment 6 Tobias Kortkamp freebsd_committer 2018-05-15 08:51:07 UTC
Yuri's feedback wasn't addressed for 7 months, so closing with Feedback Timeout.
Comment 7 Jesper Schmitz Mouridsen freebsd_committer 2020-06-10 18:31:46 UTC
I'm looking into this, I am a little blocked by libwebsockets which does not seem to like ipv4 if it is compiled with IPV6 enabled (which is the default)

I tried updating libwebsockets with the same result..see upstream issue here:
https://github.com/warmcat/libwebsockets/issues/1947
Comment 8 Yuri Victorovich freebsd_committer 2020-06-10 19:02:32 UTC
Created attachment 215426 [details]
janus.shar

I have a working version of the port, attaching the shar.
Comment 9 Jesper Schmitz Mouridsen freebsd_committer 2020-06-10 20:13:30 UTC
(In reply to Yuri Victorovich from comment #8)
Yes very much like my WIP. Thanks. Does its websockets listen on IPv4? (without recompiling libwebsockets without IPV6)
Comment 10 Yuri Victorovich freebsd_committer 2020-06-10 20:28:01 UTC
(In reply to Jesper Schmitz Mouridsen from comment #9)

Jesper,

I'm not sure. You go ahead and test it since you've already started.

Yuri
Comment 11 Jesper Schmitz Mouridsen freebsd_committer 2020-06-10 20:31:32 UTC
(In reply to Yuri Victorovich from comment #10)
Will do
Comment 12 John Hixson freebsd_committer 2020-06-10 20:38:04 UTC
I'd forgotten about this. I'd be happy to pick it up again. I can take a look at it and help out ;-)
Comment 13 Jesper Schmitz Mouridsen freebsd_committer 2020-06-13 11:23:32 UTC
Hi does any of you got the streaming demos working?
/usr/local/share/janus/streams/test_gstreamer_1.sh
and the "Opus/VP8 live stream coming from external source (live)"
I'm getting [ice.c:janus_ice_outgoing_traffic_handle:4376] [2354355402257304] ... SRTP protect error... srtp_err_status_bad_param (len=24-->24, ts=313920, seq=328)... and no video output, same ways of doing things works on Linux..
Comment 14 Jesper Schmitz Mouridsen freebsd_committer 2020-06-15 20:56:08 UTC
https://github.com/meetecho/janus-gateway/issues/2232
I need some sleep, but streaming works for me now, I'will update the shar
as soon as possible.
Comment 15 Jesper Schmitz Mouridsen freebsd_committer 2020-06-16 17:36:25 UTC
Created attachment 215628 [details]
janus port with patch of rtp.h

Streaming works for me in this one. Hope a CC can do some testing. Remember libmicrohttpd update
Comment 16 Dmitry Wagin 2020-07-14 11:06:35 UTC
Created attachment 216432 [details]
update to v0.10.3

update to v0.10.3