Index: remoting/webapp/crd/js/client_session.js |
diff --git a/remoting/webapp/crd/js/client_session.js b/remoting/webapp/crd/js/client_session.js |
index fe4511fc28952fcbeef2d6c11b394369f7de6f43..cdb9b98d8631df468fed30c2ec99e441b71a02b6 100644 |
--- a/remoting/webapp/crd/js/client_session.js |
+++ b/remoting/webapp/crd/js/client_session.js |
@@ -643,6 +643,7 @@ remoting.ClientSession.prototype.disconnect = function(error) { |
this.logToServer.logClientSessionStateChange(state, error); |
this.error_ = error; |
this.setState_(state); |
+ remoting.app.onDisconnected(); |
}; |
/** |
@@ -1294,6 +1295,10 @@ remoting.ClientSession.prototype.updateDimensions = function() { |
parentNode.style.left + ',' + |
parentNode.style.top + '-' + |
pluginWidth + 'x' + pluginHeight + '.'); |
+ |
+ // When we receive the first plugin dimensions from the host, we know that |
+ // remote host has started. |
+ remoting.app.onVideoStreamingStarted(); |
}; |
/** |