VRFS-646. Properly handle adding/removing tracks mid-session on remote clients.

This commit is contained in:
Jonathon Wilson 2013-09-09 20:07:12 -06:00
parent 0da48eb447
commit 139e74df36
1 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,8 @@
var lookingForMixersTimer = null;
var lookingForMixers = {};
var RENDER_SESSION_DELAY = 750; // When I need to render a session, I have to wait a bit for the mixers to be there.
var defaultParticipant = {
tracks: [{
instrument_id: "unknown"
@ -94,7 +96,7 @@
function alertCallback(type, text) {
if (type === 2) { // BACKEND_MIXER_CHANGE
renderSession(); // This empties all and hides voice chat, then completely rebuilds.
sessionModel.refreshCurrentSession();
} else {
context.setTimeout(function() {
app.notify({
@ -173,7 +175,7 @@
// this event appears to fire before the underlying mixers have updated. I have no event to
// know definitively when the underlying mixers are up to date, so for now, we just delay slightly.
// This obviously has the possibility of introducing time-based bugs.
context.setTimeout(renderSession, 750);
context.setTimeout(renderSession, RENDER_SESSION_DELAY);
}
/**