With the release of the Apideo SDK 1.0-beta2, a bunch of improvements and new features are available:
- enhanced API to manage users in real-time even more easily
- enhanced statistics about your usage
- decreased delay when chatting via video
In order to switch to the 1.0-beta2 SDK, you will just have to download the new SDK on the download page, and install it to your new website.
If you are using users management functions, you will also need to change your code a little bit. We have simplified the process of managing users in rooms. The changes that could break compatibility with your application are located in the event handlers attached to users.
In the onUserJoin, onUserUpdate and onUserQuit functions, the second parameter was a JSon object containing the user data in the "userObj" attribute. So your event handler was probably looking like this:
room.onUserJoin = function(userId, userObj) { userData = userObj.userObj; }
That was kind of cryptic.
Now, you can access the user data directly:
room.onUserJoin = function(userId, userData) { // Use user data directly. }
Furthermore, you can receive more data from the onUserJoin event handler:
room.onUserJoin = function(userId, userData, joinDate) { // Use user data directly. // The join date is also passed in parameter. // This date is shared consistently amongst room users. }
The same changes apply to the onUserUpdate and onUserQuit event handlers.
Finally, please note that a bunch of new user management functions have been updated. Please check the API and the updated user management tutorials to learn about the new functions.
