style: Renames variables, adds a FIXME.

This commit is contained in:
Boris Grozev 2016-11-07 20:47:43 -06:00
parent ac0ee771ed
commit c0c198098b
2 changed files with 6 additions and 6 deletions

View File

@ -440,11 +440,10 @@ RemoteVideo.prototype.waitForPlayback = function (streamElement, stream) {
var self = this;
// Register 'onplaying' listener to trigger 'videoactive' on VideoLayout
// when video playback starts
// Triggers when video playback starts
var onPlayingHandler = function () {
self.wasVideoPlayed = true;
self.VideoLayout.videoactive(streamElement, self.id);
self.VideoLayout.remoteVideoActive(streamElement, self.id);
streamElement.onplaying = null;
// Refresh to show the video
self.updateView();

View File

@ -423,12 +423,13 @@ var VideoLayout = {
remoteVideo.updateView();
},
videoactive (videoelem, resourceJid) {
// FIXME: what does this do???
remoteVideoActive(videoElement, resourceJid) {
console.info(resourceJid + " video is now active", videoelem);
console.info(resourceJid + " video is now active", videoElement);
VideoLayout.resizeThumbnails(
false, false, function() {$(videoelem).show();});
false, false, function() {$(videoElement).show();});
// Update the large video to the last added video only if there's no
// current dominant, focused speaker or update it to