while (!Thread.interrupted()) {
try {
Object o = objectIn.readObject();
log.debug(o.toString());
if (o instanceof VideoActivity) {
VideoActivity activity = (VideoActivity) o;
switch (activity.getType()) {
case SESSION_STOP:
videoSharingSession.dispose();
return;
case SESSION_PAUSE:
videoSharingSession.pause();