Back


The Linguist media package

The media package will only run if there is a JMF (Java Media Framework) implementation for the operating system you are using. At the time of writing that limits it to Windows and Solaris.

These are the keywords supplied for media operations:

create Create a player.
hide Hide a player or its controller.
load Load a media document into a player.
move Move a player around the screen.
on Define what to do when a media event occurs.
play Play media.
player Declare a player variable.
seek Move the play pointer to a given position in the media file.
set Set the cursor of a player.
show Show a player or its controller.
stop Stop a player.

This section of Linguist is still in development. More keywords will be added as the package is developed.

Numeric values
Conditional expressions


Numeric Values

These values can be used in either a numeric or string expression:

the duration of <player>
Returns the duration of the media in the specified player.

the position in <player>
Returns the play position of the media in the specified player.

the left of <player>
Returns the leftmost edge of the specified player.

the top of <player>
Returns the topmost edge of the specified player.

the width of <player>
Returns the original width of the media in the specified player.

the height of <player>
Returns the original height of the media in the specified player.

Return to top


Conditional Expressions

There are currently no extra conditional expressions associated with the media package.

Return to top


Back