On2 Flix Publisher for Flash® SDK

v3.2.1.0

On2 logographic

On This Page …

Introduction

The On2 Flix Publisher for Flash® Software Development Kit (SDK) consists of complete API documentation and JavaScript/HTML sample code. As an On2 Flix Publisher licensee, you may adapt and extend the provided JavaScript helper libraries and HTML in any way you choose, royalty-free.

To be kept informed of the most recent On2 Flix Publisher SDK changes, please read the change log.

Publisher PlugIn API Documentation

The application programming interface (API) documentation for the On2 Flix Publisher plug-ins is extensively cross-referenced, and may be accessed via the Modules and Related Pages tabs, above.

This page is the Main Page.

On2Publisher Javascript API Documentation

As of the Publisher v3.2 release a javascript wrapper object called On2Publisher is provided with the sample code, and is the preferred means of interacting with the plug-in.

You can access the main index for the Javascript documentation, here.

Sample Code

The Flix Publisher SDK ships with sample code that demonstrates the main features of the API:

Setup Instructions

To run the sample code you must deploy it to a web server, and configure some key values in the configuration file. Most of the information has been configured for you, but you'll have to enter:

  1. your web server address
  2. settings for uploading files to your server (optional)

Do the following to configure the sample code.

Step 1: (required) Set the host_root value in on2publisher-config.js
  • The on2publisher-config.js configuration file is located in the on2publisher/js sub directory of your release archive.
  • Locate host_root, it's near the top of the file.
    1. Replace the string assigned to host_root in its declaration with your server address. Here's an example:

      var host_root = "http://example.com";.

    2. (optional) If the sample code will not be hosted in a directory named on2publisher at the root of your webserver, you must update the string appended to host_root so that it's points to the correct location. Here's an example:

      host_root = host_root + "/example/partial/path/to/sample/root/";

  • The two above examples combine to form the URL

    http://example.com/example/partial/path/to/sample/root/"

Step 2: (optional) Set upload settings inon2publisher-config.js

Note:Publisher plug-ins can upload onlyto the built in FtpServer and HttpServer addresses. See the plug-in API documentation for more information.

  • Set on2pub_config.FileUpload.PublishMethod to 0 for FTP uploads, or 1 for HTTP uploads
  • For FTP uploads, configure the following values:
    1. Set on2pub_config.FileUpload.FtpSubDomain - to the sub domain of your FTP server.
    2. Set on2pub_config.FileUpload.FtpPort - to the port your FTP server listens on.
    3. Set on2pub_config.FileUpload.FtpUser - to your FTP user account name.
    4. Set on2pub_config.FileUpload.FtpPassword - to your FTP user account password.
  • For HTTP uploads, configure the following values:

    Note: If the SDK archive contents are deployed to the root of the web server configured in host_root, then only the first step will be necessary.

    1. Set on2pub_config.FileUpload.HttpSubDomain - to the sub domain of your FTP server.
    2. Set on2pub_config.FileUpload.HttpPath - to the path to upload.php on your web server.
    3. Set on2pub_config.FileUpload.FtpUser - to the HTTP upload form name (leave this alone if using upload.php).
Step 3: (optional)Set output directory path in upload.php

Note: This step required only for HTTP uploading.

You must set $webroot to your HTTP server document root, and ensure that PHP can write to $uploads_directory

Step 4: (optional)Download JW FLV Player

To use the samples that include ouput file playback, you will need the JWPlayer FLV player. You can quickly locate this player using your favorite search engine. Search for "JW FLV Player".

Install the player in the same directory as the on2publisher directory containing the samples. Note: the publisher.on2.com demonstrations use the simple skin; you will need that as well if you want your sample pages to match.

Step 5: Point a Windows browser at the sample directory on your web server

Pick one of the sample links to take your plug-in for a test drive.

For configuration assistance, contact On2 Support.

Updates required for v2.x, v3.0, and v3.1 based code

This applies only to use of the plug-ins in Firefox. Code based on the old samples will continue to function within Internet Explorer.

Note: Code based on the old samples is NOT compatible with Apple Safari, Google Chrome, or Opera. To support additional browsers it is suggested you move to using the On2Publisher object, which is documented on this page.

Use of the v3.2 plug-ins in Firefox with the old sample code requires some minor changes:

  1. Comment out the entire get_ns_plugin() in flixpub_conf.js (obsoleted in v3.2)
  2. Make the following change in the function fp_load() within flixpub_main.js:

    Change on2pub = get_ns_plugin();

    To on2pub = document.flixe;

  3. Your plug-in identifiers and archive names have changed. You must update your configuration file accordingly.

Product Details

The On2 Flix Publisher for Flash is a web browser plug-in that enables users to encode video content (either pre-recorded or captured live from a camera) in Adobe® Flash® 8 format and upload the video to a web site or file server.

If you are a web site that supports or wants to add Flash video sharing, blogging, or uploading, the On2 Flix Publisher offers the following advantages:

Support

For help with additional questions, please visit http://on2.com/company/feedback/.


Supply of this product does not convey a license nor imply any right to distribute content created with this product in revenue-generating broadcast systems (terrestrial, satellite, cable and/or other distribution channels),streaming applications (via Internet, intranets and/or other networks), other content distribution systems (pay-audio or audio-on-demand applications and the like) or on physical media (compact discs, digital versatile discs, semiconductor chips, hard drives, memory cards and the like). An independent license for such use is required. For details, please visit http://mp3licensing.com.


On2 Flix Publisher API reference documentation built by doxygen On2 Technologies, Inc