how to get the results of "listparticipants" request.

146 views
Skip to first unread message

Jiung Heo

unread,
Jul 16, 2022, 12:11:49 AM7/16/22
to meetecho-janus
Hi everyeon. 
I am a newbie to janus-gateway. 

while I study videoroom plugin, 
I put one button in client side to request "listparticipants" like below. 

function debug0() {
if (sfutest) {
var debug = {
request: 'listparticipants',
room: myroom,
};
futest.send({ message:debug});
alert(res);
} else {
alert("sfutest is null");
}
}

I expect "participants" list as message or event. 
but I did not receive anything after sending "listparticipants" request to server. 

how I can get this result?
Any example or simple code on videoroom.js will be greatly helpful to me. 


Lorenzo Miniero

unread,
Jul 17, 2022, 4:04:29 AM7/17/22
to meetecho-janus
As explained in the documentation:

listparticipant is a synchronous request, so you'll get the list in the response, not an event. Check how the Streaming plugin demo sends a "list" request to see how synchronous requests are done.

L.

Jiung Heo

unread,
Jul 17, 2022, 5:43:29 AM7/17/22
to meetecho-janus
Thank you so much for your guide. 
I will check it. 

2022년 7월 17일 일요일 오후 5시 4분 29초 UTC+9에 lmin...@gmail.com님이 작성:
Reply all
Reply to author
Forward
0 new messages