# SimpleVideoStreaming - OSMF Player

## Description

This package contains source code for a Flash player using the OSMF Framework. It will play rtmp single and multiple bitrate streams, and single and multiple-bitrate Flash Sanjose (http) streams

To use the source code in Flash Builder:

1. Flex SDK 4.5.1 is required. Install Flex SDK 4.5.1 if necessary: Download+Flex+4
2. Download and unzip OSMF 1.6, or later: http://sourceforge.net/projects/osmf.adobe/files/
3. Start Flash Builder. Select a new workspace location.
4. Make sure that SDK 4.5.1 is installed, and that it is the default SDK. You may add or select the SDK Under Windows > Preferences > Flash Builder > Installed Flex SDKs
5. From menu, File > Import > Other Existing Projects into Workspace.
6. Navigate to the unzipped OSMF download. Select the ChromeLibrary, MediaContainerUIComponent, and OSMF Projects.
7. 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 (Window - Preferences - Flash Builder - Installed Flex SDKs)
   - 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 false -define CONFIG::FLASH_10_1 true
   - Click Apply
8. Create a new Flex Project named SimpleOSMFPlayer. (File > New > Project > Flex Project)
9. Copy the contents of the Package /src folder to the Project /src folder
10. 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