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:
- Flex SDK 4.5.1 is required. Install Flex SDK 4.5.1 if necessary:
Download+Flex+4
- Download and unzip OSMF 1.6, or later:
http://sourceforge.net/projects/osmf.adobe/files/
- Start Flash Builder. Select a new workspace location.
- 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
- From menu, File > Import > Other Existing Projects into Workspace.
- Navigate to the unzipped OSMF download. Select the ChromeLibrary, MediaContainerUIComponent, and OSMF Projects.
- 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
- Create a new Flex Project named SimpleOSMFPlayer. (File > New > Project > Flex Project)
- 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