Page History: XSPFPlayer v3.0 - External Interface
Compare Page Revisions
Page Revision: 2008/10/14 15:32
Application Overview –The Stand Alone Player (XSPF Player) is an online application that consumes a dynamic web service provided by UnityWorks! Media to display a flowing video content experience.
Javascript External Interfaces –
The XSPF Player Stand Alone has the capability of being controlled through javascript as an external interface. Functions such as play, stop and pause may be called through a user action or an event. The following example will give you a basic idea how this connectivity works as we use html input button objects.
XSPF Player Stand Alone - External Interfaces Example
Javascript/Player Available Commands – To allow this to work correctly, the called must be made by pointing to the location of the swf object holder and use the following call:
flashCall('command');
| Function |
Example Code |
Description |
| play |
document.getElementById('uwm_video').flashCall('play'); |
Starts video play |
| stop |
document.getElementById('uwm_video').flashCall('stop'); |
Stops video play |
| rewind |
document.getElementById('uwm_video').flashCall('stop'); document.getElementById('uwm_video').flashCall('play'); |
Rewinds all tracks and plays |
| pause |
document.getElementById('uwm_video').flashCall('pause'); |
Pauses Video |
| contactHost |
document.getElementById('uwm_video').flashCall('contactHost'); |
Launches Contact Form* |
| contactUWM |
document.getElementById('uwm_video').flashCall('contactUWM'); |
Launches UWM Window* |
(*) All depends on the settings set by UnityWorks! Media.