User Guide
realPlayerPromptToInstall() 495
Example
The following code shows that the realPlayerNativeAudio() function is set to FALSE, which
means that audio in the RealMedia cast member will be processed by Director:
-- Lingo syntax
put(realPlayerNativeAudio())
-- 0
// JavaScript syntax
trace(realPlayerNativeAudio());
// 0
The following code sets the realPlayerNativeAudio() function to TRUE, which means that
audio in the RealMedia stream will be processed by RealPlayer and all Lingo control of the sound
channel will be ignored:
-- Lingo syntax
realPlayerNativeAudio(TRUE)
// JavaScript syntax
realPlayerNativeAudio(1);
See also
soundChannel (RealMedia)
realPlayerPromptToInstall()
Usage
-- Lingo syntax
realPlayerPromptToInstall()
// JavaScript syntax
realPlayerPromptToInstall();
Description
RealMedia function; allows you to get or set a global flag that determines whether automatic
detection and alert for RealPlayer 8 is enabled (
TRUE) or not (FALSE).
By default, this function is set to
TRUE, which means that if users do not have RealPlayer 8 and
attempt to load a movie containing RealMedia, they are automatically asked if they want to go to
the RealNetworks website and install RealPlayer. You can set this flag to
FALSE if you want to
create your own detection and alert system using the realPlayerVersion() on page 496
function and custom code. If this flag is set to
FALSE and an alternate RealPlayer 8 detection and
alert system is not in place, users without RealPlayer will be able to load movies containing
RealMedia cast members, but the RealMedia sprites will not appear.
This function detects the build number of the RealPlayer installed on the user’s system to
determine whether RealPlayer 8 is installed. On Windows systems, build numbers 6.0.8.132 or
later indicate that RealPlayer 8 is installed. On Macintosh systems, RealPlayer Core component
build numbers 6.0.7.1001 or later indicate that RealPlayer 8 is installed.
This flag should be executed in a
prepareMovie event handler in a movie script.
This function returns the previous value of the flag.
Parameters
None.