Encoding Values
[flixpub_constants.js]

Encoding control variables. More...

Variables

var kBitrateModeCBR = 0
 Constant Bitrate Encoding.
var kBitrateModeVBR = 1
 Variable Bitrate Encoding.
var kCompressModeRealTime = 0
 Real time speed compression.
var kCompressModeGood = 1
 Good Quality Compression.
var kCompressModeBest = 2
 Best Quality Compression.
var kKeyframeModeAuto = 0
 Automatic key frame placement.
var kKeyframeModeConstFrequency = 1
 Fixed key frame placement.
var kAudioCodecMp3 = 0
 MP3 Audio.
var kAudioCodecNellyMoser = 1
 Nellymoser Audio.

Detailed Description

This section documents the named helper variables that are defined in the file flixpub_constants.js, and used in the reference application to control output file encoding settings.

Special Note

Because of Javascript run time implementation differences between Internet Explorer and the Mozilla compatible browsers (Firefox, Netscape, Flock, etc), these "constants" are really var declarations made at global scope.

Instructions For Using the Named Variables

These variables are defined in flixpub_constants.js. To use the variables, you must add the file to your site and include it in your page by using a script tag, like this:
<script type="text/javascript" src="flixpub_constants.js"></script>

The script tag for flixpub_constants.js should come before other script tags that reference javascript files that use the publisher plug-in API.

Variable Documentation

var kBitrateModeCBR = 0

When VideoBitrateControlMode is set to kBitrateModeCBR, encoded video will have a constant bitrate.

See also:
VideoBitrateControlMode

var kBitrateModeVBR = 1

When VideoBitrateControlMode is set to kBitrateModeVBR, encoded video will have a variable bitrate.

See also:
VideoBitrateControlMode

var kCompressModeRealTime = 0

Use this variable with VideoCompressMode.

var kCompressModeGood = 1

Use this variable with VideoCompressMode.

var kCompressModeBest = 2

Use this variable with VideoCompressMode.

var kKeyframeModeAuto = 0

Use this variable with VideoKeyFrameMode, it controls the behavior of VideoKeyFrameFrequency.

var kKeyframeModeConstFrequency = 1

Use this variable with VideoKeyFrameMode, it controls the behavior of VideoKeyFrameFrequency.

var kAudioCodecMp3 = 0

Use this variable with AudioCodecID.

var kAudioCodecNellyMoser = 1

Use this variable with AudioCodecID.


On2 Flix Publisher documentation, generated on Mon Jan 7 18:13:01 2008 by doxygen 1.5.4 On2 Technologies, Inc