Swf_options_setpreloadertype, Also, Swf_options_setpreloadertype() – Google Flix Engine Linux Reference Manual User Manual

Page 244

Advertising
background image

238

Flix Engine Linux Module Documentation

← percentToPreload Percent of the SWF movie to preload before playback begins.

Return values:

ON2_OK

Success

ON2_INVALID_PARAMS

should one or more of the preconditions fail

ON2_NET_ERROR

the underlying communication layer failed

Precondition:

flix

is not NULL

Note:

The preloader has to be enabled.
The default value is 20%.
The range is 1-100.
The preloader type must be

SwfFixedPreloader

.

Works with any Flash player version 4 and higher.

See also:

swf_options_GetPercentToPreload()

Deprecated

Use the

Muxer Interface

along with

FE2_MUXER_SWF

and the

FE2_SWF_FIXED_PRELOAD_-

PCT

parameter. This function will be removed in a future release.

5.52.5.31

on2sc swf_options_SetPreloaderType (FLIX2HANDLE flix, const
FE2_SwfPreloaderOptions preloaderType)

Sets the type of preloader.

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← preloaderType The preloader type.

Return values:

ON2_OK

Success

ON2_INVALID_PARAMS

should one or more of the preconditions fail

ON2_NET_ERROR

the underlying communication layer failed

Precondition:

flix

is not NULL

preloaderType

is a valid member of

FE2_SwfPreloaderOptions

Note:

The preloader has to be enabled.
The default value is

SwfFixedPreloader

.

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

Advertising