axf:media-play-mode

(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Category Images, Multimedia

Specifies the number of times to play the multimedia. V6.3[no-LT]

Value: once | continuously | <number>
Initial:once
Applies to:fo:external-graphic / multimedia objects
Inherited:no

Values have the following meanings.

oncePlays the multimedia only one time.
continuouslyPlays the multimedia continuously.
<number>Plays the multimedia only the specified number of times.

CAUTION:Whether the setting is effective or not depends on the multimedia data, the viewer or the player.

This property is not available with AH Formatter V6.3 Lite.

XSL-FO sample:

<fo:root xml:lang="en" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">

Antenna House, Inc.

Example of embedding multi media in PDF

Multimedia data such as audio, video can be embedded in PDF. You can specify it as <fo:external-graphic src="video.mpg" content-type="video/mpeg">. A poster picture can be specified to axf:poster-image. You can show the player control bar by axf:show-controls, the volume of the sound by axf:media-volume and the number of times to play the multimedia by axf:media-play-mode. Embedding of multi media data is available only with PDF1.5 or later.

Without the setting of axf:poster-image

With the setting of axf:poster-image

axf:show-controls="true", axf:media-volume="10%", axf:media-play-mode="2"

The control bar is shown in the lower side of the multimedia under playing. An enough space is required under the multimedia element. Whether the setting of axf:show-control, axf:media-volume, axf:media-play-mode may become effective or not depends on multimedia data, a viewer and a player.

Download der Beispiele

Output:

Tipp der data2type-Redaktion:
Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: