Dinamically changing janus.plugin.streaming.cfg

189 views
Skip to first unread message

Mateusz Czyżyk

unread,
Oct 10, 2016, 12:15:31 PM10/10/16
to meetecho-janus
Hello!

I'm working now with Janus platform with my friends. We would like to create a web that can recive a large ammount of streams from Raspberry PI2 cameras by gstreamer.

We've done already 2 streams and watched this on our page. But the main problem is that we want to add streams dinamically by reciveing the port and ip of the camera.

I've done this 2 streams by staticly defining the port in janus.plugin.streaming.cfg file:

"
[gst-rpwc1]
type = rtp
id = 10
audio = no
viceo = yes
videoport = 8010
videopt = 96
videortpmap = H264/90000
videoffmtp = ... "

and second one :

"[gst-rpwc2]
type = rtp
id = 20
audio = no
viceo = yes
videoport = 8020
videopt = 96
videortpmap = H264/90000
videoffmtp = ... "

Is there an option to change this file while janus is working? (i've tried it and to change the file u need to restart janus)?
If not, is there any options adding dinamically streams to janus? (opening ports for them after reciveing an message, that they want to stream video?)

Everything needs to be make while janus is working, there is no chance for restarting him.

Hope you understood my problem :)


Lorenzo Miniero

unread,
Oct 10, 2016, 12:28:27 PM10/10/16
to meetecho-janus
Already asked several times on this group, so please search the archives. Long story short: use the plugin messaging to create/destroy mountpoints.

L.

Olga Khylkouskaya

unread,
Oct 19, 2016, 8:48:16 PM10/19/16
to meetecho-janus
Hello, 

Here is an example I shared:

I use http transport plugin for that and binded it to 127.0.0.1 for security.
Let me know if you have any questions
Reply all
Reply to author
Forward
0 new messages