Page History: XSPFPlayer v3.0 - External Interface
Compare Page Revisions
Page Revision: 2009/02/04 13:49
Due to a recent upgrade, these functionalities are currently unavailableApplication 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.
Example Currently UnavailableJavascript/Player Available Commands – To allow this to work correctly, the call must be made by pointing to the location of the .SWF object holder and use the following call:
flashCall('command');
In the example code we will be pointing to a "div" with an "id" of "uwm_video".
| 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.