style: Renames variables, adds a FIXME.
This commit is contained in:
parent
ac0ee771ed
commit
c0c198098b
|
@ -440,11 +440,10 @@ RemoteVideo.prototype.waitForPlayback = function (streamElement, stream) {
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
// Register 'onplaying' listener to trigger 'videoactive' on VideoLayout
|
// Triggers when video playback starts
|
||||||
// when video playback starts
|
|
||||||
var onPlayingHandler = function () {
|
var onPlayingHandler = function () {
|
||||||
self.wasVideoPlayed = true;
|
self.wasVideoPlayed = true;
|
||||||
self.VideoLayout.videoactive(streamElement, self.id);
|
self.VideoLayout.remoteVideoActive(streamElement, self.id);
|
||||||
streamElement.onplaying = null;
|
streamElement.onplaying = null;
|
||||||
// Refresh to show the video
|
// Refresh to show the video
|
||||||
self.updateView();
|
self.updateView();
|
||||||
|
|
|
@ -423,12 +423,13 @@ var VideoLayout = {
|
||||||
remoteVideo.updateView();
|
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(
|
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
|
// Update the large video to the last added video only if there's no
|
||||||
// current dominant, focused speaker or update it to
|
// current dominant, focused speaker or update it to
|
||||||
|
|
Loading…
Reference in New Issue