Fe2_muxer_swf, Fe2_swf_adaptive_preload_buffer_factor, Fe2_swf_add_variable – Google Flix Engine Linux Reference Manual User Manual

Page 220: 3 define documentation

Advertising
background image

214

Flix Engine Linux Module Documentation

• enum

FE2_SwfPreloaderOptions

{

SwfPreloaderNone

,

SwfFixedPreloader

,

SwfAdaptivePreloader

}

Determines the type of preloader added to the SWF file.

5.52.3

Define Documentation

5.52.3.1

#define FE2_MUXER_SWF

SWF muxer. For use with

Flix2_AddMuxer()

.

Definition at line 105 of file swf.h.

5.52.3.2

#define FE2_SWF_ADAPTIVE_PRELOAD_BUFFER_FACTOR

Sets the adaptive preload buffer factor.

An adaptive preloader is an "intelligent" preloader that will preload a variable amount of video based
on the size of the video and the viewer’s internet connection speed so that the viewer can watch the video
without stops and starts - no matter what speed they are connected to the internet at. The adaptive preloader
determines the user’s connection speed and based on that figure and the size of the video file preloading,
it preloads precisely the amount of the video required to enable the video to begin playing as soon as it
possibly can and still not stop at any point until it is done. In this way, the preload process is optimized so
the amount of time taken for a video to preload is minimized as much as possible. If the adaptive preloader
is selected, a buffer factor must also be selected. The buffer factor will cause the preloader to preload more
(or less) of the video than the initial calculations determine is the minimum amount of time required. This
is useful because a viewer’s connection speed often varies, even during the course of watching a single
video. The time required to load the file up to the end is multiplied by this factor. If a buffer is not needed,
set the factor to 1.0 (a factor of 1.0 means no buffer - loadingTime ∗ 1.0 = loadingTime). To be on the safe
side, the recommendation is to use a factor larger than 1.0. If the viewer’s connection should get faster
during the visit (e.g., perhaps a download ends) then the buffer factor can be changed to a number smaller
than 1.0. If the viewer’s connection will likely get slower during the visit (e.g., because the viewer starts a
new download) the buffer factor should be changed to a number greater than 1.0. As a general rule, it is a
good idea to make the buffer factor larger than 1.0 to be on the safe side.

Note:

Default: 1.1
Valid range: [0.0,2.0] step: 0.1
This implicitly sets

FE2_SWF_PRELOAD_TYPE

to

SwfAdaptivePreloader

Works with any Flash player version 5 and higher.

Definition at line 222 of file swf.h.

5.52.3.3

#define FE2_SWF_ADD_VARIABLE

Add or update a variable in the SWF.

Multiple variables may be specified.

Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen

Advertising