This example utilizes a StreamingPlayer component (320x240 pixels) and the optional Controller component with play, pause, next, previous, progress controls, volume controls, and controller text enabled (Titanium Skin). The XML location is set within the Component Inspector and the available playback parameters have been set within the XML (including the pauseImage parameter).
To enable the Pause Image feature in your existing HD Video Player SWF (XML required):
- Set the pauseImage parameter in the XML to one of the following settings:
"Yes-always" - the pause image will be displayed whenever the video is paused
"Yes-on first frame" - the pause image will be displayed when the player is paused on the first frame of the video only
"Yes-on last frame "- the pause image will be displayed when the player is paused on the last frame of the video only
"Yes-first and last" - the pause image will be displayed when the player is paused on the first and last frames of the video only
"No-always" - the pause image will not be displayed
- Add the <pauseImage> node to your XML for each video. This node should contain the path to the image you want to display (can be a logo, advertisement, or a screenshot of the video). The image file will automatically be resized and repositioned to fit within the display area (supported formats include JPG, SWF, PNG, or GIF; only the first frame of a GIF will be displayed).
Link to XML example.
To use the example player above without the DEMO text (purchase required):
- Install your purchased copy of the MXP in your Flash 8/CS3/CS4 authoring software by double-clicking the file named "ESA_HD_Video.mxp". This will open the Extension Manager, which will prompt you to complete your installation. NOTE: Before installing the MXP file you will have to unpack your downloaded ZIP file and shut down your authoring software if it is open.
- Download the example files using the link below, and unpack the ZIP file.
- Open the file named "pauseImage.fla" in your copy of Flash 8/CS3/CS4.
- Open the Components menu and look for a folder named "ESA HD Video Player". In this folder, there will be three components named StreamingPlayer, Playlist, and Controller.
- Add an instance of the StreamingPlayer to the stage by double-clicking it in the menu.
- Flash will open a "Resolve Library Conflict" window, and ask if you want to replace the existing item in the library - toggle the "Replace existing items" button and click "OK".
- You should now see 2 StreamingPlayer components on the stage; one in the same position as the original, and a new component near the middle of your screen.
- Select the new StreamingPlayer component near the middle of your screen and delete it.
- The remaining StreamingPlayer component on the stage is the updated component with your previous settings (without the DEMO text).
- You can now modify the component parameters, save your project, and publish a new SWF.