Hi everyone and thank you in advance to anyone who will take some time to take a look at my problem
First of all, here is the complete content of my videomcutest.js :
CodeI've been trying to set up the videoroom plugin in my own application.
I have a javascript button called joinchat. I use this button to trigger Janus.
I realise my problem comes from this part of the code :
var janusRoom = convertRoomNumber(room);
var newRoom = {"request": "create", "room": janusRoom, "ptype": "publisher", "is_private": false, "publishers": 6};
mcutest.send({"message": newRoom});
var register = {"request": "join", "room": janusRoom, "ptype": "publisher", "display": playerName};
myusername = playerName;
mcutest.send({"message": register});
I guess it's not the right part to do that.
In the demo, the start button is pressed, then the user can choose his nickname and when the button "Enter" is pressed, the registerUser() function in triggered. All I wanted was to join the chat whith a simple button click. As you can see, my "joinchat" event already has a nickname and a room id in parameters.
This is the output the Chrome console when the button is clicked :
Plugin attached! (janus.plugin.videoroom, id=288549567)
-- This is a publisher/manager
::: Got a message (publisher) :::
{"videoroom":"joined","room":14346338022460,"description":"Room 14346338022460","id":3763012707,"publishers":[]}
Event: joined
Successfully joined room 14346338022460 with ID 3763012707
Consent dialog should be on now
Got a list of available publishers/feeds:
[]
>> [undefined] undefined
Plugin attached! (janus.plugin.videoroom, id=1995968835)
-- This is a subscriber
::: Got a message (listener) :::
{"videoroom":"event","error_code":429,"error":"Missing element (feed)"}
The strangest part is that it quite often works. I'm able to connect 6 publishers into the room. Sometimes it just doesn't, and I gest this nasty "Missing element feed" error in the Janus console.
Thank you again