Browse Source
provide status method
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/109/merge
Morris Jobke
9 years ago
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with
15 additions and
0 deletions
-
js/webrtc.js
|
|
|
@ -126,6 +126,21 @@ var spreedMappingTable = []; |
|
|
|
var spreedListofSpeakers = {}; |
|
|
|
var latestSpeakerId = null; |
|
|
|
OCA.SpreedMe.speakers = { |
|
|
|
showStatus: function() { |
|
|
|
var data = []; |
|
|
|
for (var currentId in spreedListofSpeakers) { |
|
|
|
// skip loop if the property is from prototype
|
|
|
|
if (!spreedListofSpeakers.hasOwnProperty(currentId)) continue; |
|
|
|
|
|
|
|
var currentTime = spreedListofSpeakers[currentId]; |
|
|
|
var id = currentId.replace('\\', ''); |
|
|
|
data.push([id, currentTime]); |
|
|
|
} |
|
|
|
console.table(data); |
|
|
|
}, |
|
|
|
unsanitizeId: function(id) { |
|
|
|
return id.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\$&") |
|
|
|
}, |
|
|
|
sanitizeId: function(id) { |
|
|
|
return id.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\$&") |
|
|
|
}, |
|
|
|
|