Videoroom plugin : [ERR] Missing element (feed)

822 views
Skip to first unread message

VinceB

unread,
Jun 18, 2015, 9:30:17 AM6/18/15
to meetech...@googlegroups.com
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 : Code

I'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

Lorenzo Miniero

unread,
Jun 18, 2015, 9:33:32 AM6/18/15
to meetech...@googlegroups.com, vincen...@gmail.com
You're trying to attach to a publisher that doesn't exist... publishers is [], an empty array, but you have

   Got a list of available publishers/feeds:
   []
   >> [undefined] undefined

and are trying to create a subscriber to the "undefined" feed. Of course, the undefined feed attribute is stripped from the Janus API message, which means the plugin gets a listener request with no feed, and hence the error.

L.

VinceB

unread,
Jun 18, 2015, 9:52:39 AM6/18/15
to meetech...@googlegroups.com, vincen...@gmail.com
Thank you so much for your quick answer. Yes I knew the non existing publisher was the problem. It still don't understand how I should create it.

And do you have an idead why it still works most of the time ?

Lorenzo Miniero

unread,
Jun 19, 2015, 4:32:38 AM6/19/15
to meetech...@googlegroups.com, vincen...@gmail.com
You don't create other publishers yourself, other participants do... you already created your own publisher, which other participants joining will see in that list. When other people join, that publisher array will fill for your user too.

L.

Kumail N

unread,
Aug 10, 2021, 3:50:38 AM8/10/21
to meetecho-janus
I am having the same issue. 

publishOwnFeed() must be the function which is meant to publish the streams and I am receiving no error on creating an offer publishing the own feed.
Now when another users joins I can see the publishers object but streams object is empty. 

When I test with https://janus.conf.meetecho.com/videoroomtest.html, I can see streams are available.
But, I am using the same sample code with our hosted Janus server, I am not getting the streams.
Reply all
Reply to author
Forward
0 new messages