Dailymotion Player Tools
The API features listed below have been deprecated. We highly recommend you to visit our new Player API page.
Table of content
Dailymotion's Flash API functions on ActionScript 3.0. By loading Dailymotion players into a Flash application and enabling the Api, users can control them via ActionScript calls to the player's public API. Controls include but are not limited to play, pause, seek, mute and set volume.
Returns true when the player SWF is loaded, initialized, and prepared API calls. False or undefined may be returned if the player is not fully loaded and initialized.
Sets the player dimensions in pixels. This method should be used instead of setting the width and height properties of the MovieClip. Note that this method does not constrain the proportions of the video player, so you will need to maintain a acceptable aspect ratio.
When the fullscreen button of the player is hit, your application runs in fullscreen mode but player size will not be changed automatically. You must respond to a FullScreenEvent and resize the player as required by calling this method.
The sample code below demonstrates how to load and initialize the AS3 API player: