Commit c9012a27 authored by Dele Olajide's avatar Dele Olajide Committed by dele

Jitsi Videbridge - Fixed fault in videobridge plugin for Candy

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13859 b35dd754-fafc-0310-a699-88a17e54d16e
parent 52207f72
...@@ -183,6 +183,12 @@ CandyShop.Videobridge = (function(self, Candy, $) { ...@@ -183,6 +183,12 @@ CandyShop.Videobridge = (function(self, Candy, $) {
videoOn = false; videoOn = false;
$('.message-pane-wrapper').css("bottom", "0px"); $('.message-pane-wrapper').css("bottom", "0px");
$('#videobridge-control').removeClass('active'); $('#videobridge-control').removeClass('active');
setTimeout(function()
{
if (window.RTC.rayo.pc) window.RTC.rayo.pc.close();
}, 2000);
}, },
function (err) { function (err) {
...@@ -190,16 +196,10 @@ CandyShop.Videobridge = (function(self, Candy, $) { ...@@ -190,16 +196,10 @@ CandyShop.Videobridge = (function(self, Candy, $) {
$('.message-pane-wrapper').css("bottom", "0px"); $('.message-pane-wrapper').css("bottom", "0px");
$('#videobridge-control').removeClass('active'); $('#videobridge-control').removeClass('active');
} }
); );
setTimeout(function()
{
if (window.RTC.rayo.pc) window.RTC.rayo.pc.close();
}, 2000);
} }
var chatObserver = var chatObserver =
{ {
update: function(obj, args) update: function(obj, args)
...@@ -680,7 +680,7 @@ CandyShop.Videobridge = (function(self, Candy, $) { ...@@ -680,7 +680,7 @@ CandyShop.Videobridge = (function(self, Candy, $) {
$(document).bind('remotestreamadded.rayo', function(event, data, sid) { $(document).bind('remotestreamadded.rayo', function(event, data, sid) {
console.log("remotestreamadded.rayo", sid); console.log("remotestreamadded.rayo", sid);
var id = 'remoteVideo_' + sid + '_' + data.stream.id; var id = 'remoteVideo_' + data.stream.id;
if (!document.getElementById(id)) if (!document.getElementById(id))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment