Hello i have the similar problem as this https://forums.tokbox.com/bugs/screensharing-error-no-ice-servers-present-t45537 i need two “mirrors” of user on site- one persistent and second that appear during the conversation with another user.
So i create the 2 publisher objects in the same way with the use of the following lines:
publisher = OT.initPublisher(element, publisherProperties, function (error)
{ console.log("OT.initPublisher error: ", error); });
publisher.on({.....
all worked well except of internet explorer because 2 publisher objects not allowed here
so i created one publisher object(1 mirror), then killed him using
if ((publisher || publisher != null)
{
console.log("1a publisher destroy create new mirror")
publisher.destroy();
}
if it conversation i kill publisher object in the next way:
if (session)
{ if (publisher) {
publisher.destroy();
}
session.disconnect();
}
so usually all works well until 2-nd session installed after session.on(streamCreated event i receive this error
“No ice servers present”
after that for short period connections are impossible, and tb.js lib throws exceptions