Live Video Streaming

Flash HTTP Player


To view this page ensure that Adobe Flash Player version 10.2.0 or greater is installed.

To use the source code in Flash Builder

  1. Adobe Flex SDK 4.5.1 or later is required. If necessary, install Flex SDK: Latest Flex SDK or Flex 4.5 Downloads
  2. Download and unzip Open Source Media Framework (OSMF) 1.6 or later: Latest OSMF
  3. Start Flash Builder, and then select a new workspace location.
  4. Make sure that Flex SDK 4.5.1 or later is the default SDK. You can add or select the SDK under Windows > Preferences > Flash Builder > Installed Flex SDKs .
  5. From the Flash Builder menu, select File > Import > General > Existing Projects into Workspace.
  6. Navigate to the unzipped OSMF download, and then select the samples\ChromeLibrary, samples\MediaContainerUIComponentLibrary, and framework\OSMF projects.
  7. With all of the above projects selected in Package Explorer, from the Flash Builder menu, select Project > Properties, and then on the Flex Library Compiler tab:
    • In Flex SDK version, select the Flex SDK version to use (either the default version or a specific version). The minimum supported version is Flex SDK 4.5.1.
    • In Adobe Flash Player options, specify the Flash Player version to use with the Flex SDK. The minimum version required by Flex SDK 4.6 is 11.1.0. For Flex SDK 4.5.x, it is 10.2.0.
    • In Additional compiler arguments, add the following (in bold):
      -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 FlashHTTPPlayer (File > New > Flex Project):
    • In Project Location, enter FlashHTTPPlayer in Project name.
    • In Build Paths, on the Source path tab, copy the contents of the FlashHTTPPlayer example src folder to the project src folder.
    • In Build Paths, on the Library path tab:
      1. In the Framework linkage list, select Merged into code.
      2. Click the Add Project button and add the OSMF, MediaContainerUIComponent, and ChromeLibrary projects.

Description

This package contains source code for a Flash player using the OSMF Framework. It will play RTMP single and adaptive bitrate streams, and single and adaptive bitrate Flash sanjose (HTTP-only) streams.

Installation

In the /examples/LiveVideoStreaming directory:

Instructions

  1. Review the tutorials listed below.
  2. Make sure that you are publishing a stream to the location in the Stream field.
  3. Click the Connect button.

Tutorials

Additional Resources