Understanding the Janus admin API

2,782 views
Skip to first unread message

Lorenzo Miniero

unread,
Aug 3, 2015, 6:56:24 AM8/3/15
to meetecho-janus
Hi all,

since most of you seem to have a hard time figuring out how to use and understand the info the admin API provides, we just wrote a blog post describing how you're supposed to do that. The idea is to provide you with some hints on what to look for, and where, when things go wrong.


Feedback welcome!
Lorenzo

Gustavo Goncalves

unread,
Aug 6, 2015, 10:38:33 PM8/6/15
to meetecho-janus
Thank you so much for that post!

It is very complete and gave me a better understanding of what should I look for.

It has already helped me to debug my plugin!

Lorenzo Miniero

unread,
Aug 9, 2015, 1:55:34 PM8/9/15
to meetecho-janus
Thanks for the feedback, glad you liked it!

L.

Nathan H.

unread,
Aug 13, 2015, 10:59:58 AM8/13/15
to meetecho-janus
Thanks for this blog post! Really appreciate it. 

Ngo Khai

unread,
Oct 22, 2015, 2:19:10 AM10/22/15
to meetecho-janus
Thank you for that post!

Youssef AIT NASSER

unread,
Nov 25, 2015, 5:16:15 AM11/25/15
to meetecho-janus

Olga Khylkouskaya

unread,
Sep 6, 2016, 12:31:44 AM9/6/16
to meetecho-janus

Good article, was really helpful for us.

However I have a question:


We are creating rtp streams dynamically using ffmpeg. 

Is there a way to create streams dynamically, as I'm currently doing it in the streaming.cfg statically:

[stream1-rtp]

type = rtp

id = 10

description = H264 test streaming

audio = no

video = yes

videoport = 5016

videopt = 97

videortpmap = H264/90000

videofmtp = profile-level-id=42E01F\;packetization-mode=0


We will have different ports and something like 2-3 streams simultaneously.

Please provide any api examples.

Lorenzo Miniero

unread,
Sep 6, 2016, 4:08:08 AM9/6/16
to meetecho-janus
The Streaming plugin has commands to create/destroy mountpoints dynamically. They're not documented so you'll have to look at the code for the syntax:

if you have other questions or comments, please create a new post, as this one is for the Admin API.

L.

Olga Khylkouskaya

unread,
Sep 6, 2016, 11:54:22 AM9/6/16
to meetecho-janus
Thank you, 
that answers my question:(

Malin Yamato af Lääkkö

unread,
Jan 4, 2018, 9:31:05 AM1/4/18
to meetecho-janus
Message has been deleted

Malin Yamato af Lääkkö

unread,
Jan 4, 2018, 3:38:02 PM1/4/18
to meetecho-janus
Hi, I have tried to dig into how to use this web interface. In order to learn Janus and its admin interface I wrote a program to capture and query information using golang. 
I tried to find information about whether a users has its microphone muted or not, but could not find it in the information which is provided by the admin webinterface. 

Den måndag 3 augusti 2015 kl. 12:56:24 UTC+2 skrev Lorenzo Miniero:

Mirko Brankovic

unread,
Jan 4, 2018, 5:16:54 PM1/4/18
to meetecho-janus
don't think Janus can detect that.
Only if Client side PeerConnection  has got the permissions to use microphone and negotiate audio in sdp.

I think you can use the dBov level which is a audio level detection on microphone and you can see it on admin api.

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Mirko

Malin Yamato af Lääkkö

unread,
Jan 4, 2018, 6:40:12 PM1/4/18
to Mirko Brankovic, meetecho-janus
I dumped results from the admin interface when the mic was muted and then again when the mic  was unmuted, yet I could not see a change in the dBov level attribute  from mute to unmute. The voice stopped when I muted the mic, but the mute did not change  the dBov level attribute. 

This is not at all important, but maybe in the future it would be nice if listeners could see when the publisher has turned off his mic. 

--
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/5UnCoE1mwtM/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.



--
============================
Malin Yamato  Lääkkö
03 4588 1333 (日本、東京)  050 5534 8338 (日本) 010 888 6306 (Sweden)
Email: malin@rakuen.tokyo SIP: malin@sonetel.net Skype: malin.yamato


Lorenzo Miniero

unread,
Jan 5, 2018, 4:43:06 AM1/5/18
to meetecho-janus
Il giorno venerdì 5 gennaio 2018 00:40:12 UTC+1, Malin Yamato af Lääkkö ha scritto:
I dumped results from the admin interface when the mic was muted and then again when the mic  was unmuted, yet I could not see a change in the dBov level attribute  from mute to unmute. The voice stopped when I muted the mic, but the mute did not change  the dBov level attribute. 

This is not at all important, but maybe in the future it would be nice if listeners could see when the publisher has turned off his mic. 



The Admin API is for monitoring purposes, not for notifying participants. You have to use the plugin API to notify things like that, and/or do it yourself out of band. If you want help on that please open another post, as I don't want to hijack this one with unrelated questions.

L.

Malin Yamato af Lääkkö

unread,
Jan 5, 2018, 7:03:14 AM1/5/18
to meetecho-janus
okey
I am a newbie both to webRTC and Janus. I hack and debug as a way of learning. Thanks to the admin interface and your walk-through I have acquired a much better understanding of all this. Next, I will try to explore the for me unknown /janus interface to see what it has to offer applications that do not run Javascript. :) ... Janus is fantastic.  
.


Den måndag 3 augusti 2015 kl. 12:56:24 UTC+2 skrev Lorenzo Miniero:

Munish Mahajan

unread,
May 18, 2020, 1:40:02 AM5/18/20
to meetecho-janus
Hi Olga,
I am also struggling to find API for mount point creation. Can you pl. share Url and POST parameters for this?
Have you tested that with Postman or application?

Thanx,
Munish

Olga Khylkouskaya

unread,
May 18, 2020, 2:54:39 AM5/18/20
to meetecho-janus
Hello Munish, 

I was able to easily grab parameters from https://github.com/meetecho/janus-gateway/blob/master/plugins/janus_streaming.c as it was described by Lorenzo in one of the posts here. I don't have access to the code as I'm no longer working for that company.
The idea was simple - create a video room like:

[stream1-rtp]

type = rtp

id = 10

description = RPWC H264 test streaming

audio = no

video = yes

videoport = 5006

videopt = 97

videortpmap = H264/90000

videofmtp = profile-level-id=42E01F\;packetization-mode=0


and send video by ffmpeg


Create an audio room and send audio.

Reply all
Reply to author
Forward
0 new messages