Whenever a user decides to join a session hosted by his friend
upon invitation, his VM surrogate switches to download the
video of the session, and at the same time sends an HTTP request
to the social cloud, for updating the session ID in this
user’s entry to the new one. If the user wishes to synchronize
his playback progress with that of the session host, his VM surrogate
synchronizes with the session host to maintain the playback
“currenttime” value (HTML5 property).
The social cloud maintains a “Logs” entry for each existing
session in CloudMoV, with the session ID as the primary key
and an array list as the value, which corresponds to individual
messages in this session. When a user in a session posts a comment,
this message is first sent to his VM surrogate, which further
injects the message into the social cloud via another Servlet
listener. Themessage is stored as a “Message” entry in the social