Hi. I’m creating the button Disallow/Allow Publishing.
I count the number of publishers (who is on Cam right now) and make the next request to Disallow Publishing.
var pub_num=0;
for(pub_num = 1; pub_num < maxPublishers; pub_num++)
{
if(feeds[pub_num])
{
pubcounter++;
}
}
var blockPublish = {
request: “edit”,
secret : myRoomSecret,
room: myRoom,
new_publishers: pubcounter,
permanent: true
};
publisherPluginHandle.send(
{
message: blockPublish
});
So nobody cannot publish his/her video more.
To Allow Publishing I just assign pubcounter=100 and make the next request.
var pubcounter=100;
var unblockPublish = {
request: “edit”,
secret : myRoomSecret,
room: myRoom,
new_publishers: pubcounter,
permanent: true
};
publisherPluginHandle.send(
{
message: unblockPublish
});
When I pressed Disallow Publishing button, then Allow Publishing button and then new publishers published their videos, some subscribers told me that they don’t see videos of those new publishers. Subscribers have to renew their tabs to see videos of new publishers.
What is the cause of this behaviour?