
LiveOSMFPlayer
Description
This package contains source code for a Flash player using the OSMF Framework. It will play rtmp single and mulitple bitrate streams, and single and multiple-bitrate Flash Sanjose (http) streams
To use the source code in Flash Builder:
- Flex SDK 4.5.1 is required. Install Flex SDK 4.5.1 if necessary:
Download+Flex+4
- Download and unzip OSMF 6.1, or later:
http://sourceforge.net/projects/osmf.adobe/files/
- In Flex, create a new Workspace.
- Make sure that SDK 4.5.1 is installed, and that it is the default SDK.
- From menu, File > Import > Other Existing Projects into Workspace.
- Navigate to the unzipped OSMF download. Click Finish to import all projects.
- Close all projects except OSMF, ChromeLibrary, MediaContainerUI
- With all 3 above projects selected, in the menu select Project > Properties. Then open the Flex Compiler tab:
- Make sure Flex 4.5.1 SDK is selected
- Make sure Adobe Flash Player Options to Use Specific Version 10.2.0
- Add the following (in bold) to the Additional Compiler Options textbox:
-locale en_US -define CONFIG::LOGGING true -define CONFIG::PLATFORM true -define CONFIG::MOCK true -define CONFIG::FLASH_10_1 true
- Click Apply
- Create a new application named SimpleOSMFPlayer.
- Copy the contents of the Package /src folder to the Project /src folder
-
- In Project > Properties, Flex Build Path, in the Library path tab:
-
From the "Framework linkage" dropdown, select "Merged into code"
- Click “Add Project”, then OSMF, MediaContainerUIComponent and ChromeLibarary