Menu

Tree [r123] / osmf / trunk / apps / samples / framework / ExamplePlayer /
 History

HTTPS access


File Date Author Commit
 assets 2009-09-04 evrijkom@adobe.com [r107] Adding a style sheet, adding a backdrop to the ...
 html-template 2009-08-31 briggs@adobe.com [r65] Commit sprint 5 work to public trunk.
 org 2009-09-04 evrijkom@adobe.com [r108] Adding Layout example that shows the effect of ...
 .actionScriptProperties 2009-08-31 briggs@adobe.com [r65] Commit sprint 5 work to public trunk.
 .flexProperties 2009-08-31 briggs@adobe.com [r65] Commit sprint 5 work to public trunk.
 .project 2009-08-31 briggs@adobe.com [r65] Commit sprint 5 work to public trunk.
 ExamplePlayer-build-config.xml 2009-09-02 weizhang@adobe.com [r89] Add files to build sample applications as part ...
 ExamplePlayer.mxml 2009-09-04 evrijkom@adobe.com [r108] Adding Layout example that shows the effect of ...
 readme.txt 2009-08-31 briggs@adobe.com [r65] Commit sprint 5 work to public trunk.

Read Me

Sample Application: Example Player

A. Overview

This sample application demonstrates the playback of various MediaElements within the OSMF framework.
Its purpose is to demonstrate how the MediaElement class can be used to implement a wide variety of
media scenarios, from simple cases (e.g. video, audio, image, SWF), to complex cases (e.g. dynamic
streaming video, embedded chromeless SWF player, sequence of videos, proxy elements).  It also shows
some error cases (e.g. streaming video with an invalid URL). 

B. Installation Instructions (Flex Builder)

1. Unzip/copy the ExamplePlayer project into your Flex Builder workspace folder. 
2. In Flex Builder, go to the File menu and select "Import".
3. Select "General", then "Existing Projects into Workspace", and click "Next".
4. Choose "Select root directory" and "Browse".
5. Browse to your Flex Builder workspace folder.
6. Select the checkbox next to "ExamplePlayer", and click "Finish".  This will import the project.
7. Build the project.
8. Launch the application from the Run menu.

Note that some of the examples (such as the Chromeless SWF examples) require that the Example Player be
launched from the network rather than the file system.  Here's how to do so.

1. Build the project.
2. Copy the ExamplePlayer.swf file from the bin (or bin-debug) folder to your web server.
3. In Flex Builder, go to the Run menu and select "Run Configurations" (or "Debug Configurations").
4. Create a new configuration for the ExamplePlayer project.
5. Under "URL or path to launch", uncheck the "Use defaults" checkbox.
6. In the "Run" (or "Debug") text box, enter the URL of the ExamplePlayer.swf file on your web server.
7. Click the "Run" (or "Debug") button.  

C. Usage Instructions

On the left hand side is a list of examples.  Each example represents a MediaElement that will be loaded
into a MediaPlayer for playback.  When you click on an example in the list, a description of the example
will appear in the upper right, and a control panel which allows interaction will appear in the lower
right.

The code for each example is in org.openvideoplayer.examples.AllExamples.as.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.