• English
  • Français

With the release of the Apideo SDK 1.0-RC1, a bunch of improvements and new features are available:

  • Token-based security has been added. This is a new security mode enabling you to decide precisely what a user can do, see or publish through Apideo
  • Enhanced API to manage user related events in a publish/subscribe fashion
  • Automatic bandwidth detection will automatically adapt the quality of video to the bandwidth available for users
  • Improved stability of the overall Apideo platform
  • Improved error handlers enable an efficient management of errors
  • Support for dynamically resizing the videos while they are played

In order to switch to the 1.0-RC1 SDK, you will have to download the new SDK on the download page, and install it to your new website.

The way we manage events is a lot cleaner in RC1. Therefore, if you are using "room.onLoad", "room.onUserJoin", "room.onUserQuit", "room.onUserUpdate" or "camera.onCameraStarted", you will need to change your code by a tiny bit.

When you use one of these functions, with beta2, you were overiding the default function, using something like this:

room.onLoad = function() {
 	// The code that will execute when the room is loaded
 }
 
room.onUserJoin = function(userId, userObj) {
 	// The code that will execute when a user joins the room
 }
 
...

The problem is that you cannot attach easily many functions to the event. In RC1, we have switched to a more conventional subscriber approach (a bit like in jQuery).

Instead of overiding the function, you will now just have to register a callback. You can register as many callbacks as you want.

So your new code will look like this:

room.onLoad(function() {
 	// The code that will execute when the room is loaded
 });
 
room.onUserJoin(function(userId, userObj) {
 	// The code that will execute when a user joins the room
 });
 
...

The same changes apply to the onUserUpdate, onUserQuit and onCameraStarted event handlers.

Also, if you were previously using the onCameraStarted event, it is now tied to the Camera object, and not to the room.

So if your code was previsouly:

room.onCameraStarted = function() {
 	// The code that will execute when the user accepts to turn its camera on
};

Your new code will be:

camera.onCameraStarted(function() {
 	// The code that will execute when the user accepts to turn its camera on
 });

These changes are the only changes you will have to perform

Finally, please note that a bunch features have appeared. You can now control the way bandwidth detection is done and you can add token-based security to your application to control the rights in a fine-grained way.