Video On Demand 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/VideoOnDemandStreaming directory:

Instructions

  1. Read the Tutorials below.
  2. Click the Connect button. The video will start playing.

Tutorials

Additional Resources

To play your own content

  1. Copy your video files to the Wowza [install-dir]\content directory.
  2. In the Stream field, change the mp4 file name to match one of your video files.
  3. Click the Connect button. Your video will start playing.