![]() |
Previous | Next |
The tocentryclip element is just like the tocentry element, except that it applies to a media element, and the default link time is to the start time of that media element. This element allows an application to specify a table of contents entry in a Producer project specified by a media element, without having to worry about calculating the correct begintime attribute.
The table of contents is a list of hyperlinks in the presentation screen that allow a viewer to jump to specified places in the presentation. A tocentryclip element immediately follows the media element it applies to, and links to the start time of that element on the timeline (with an optional offset, specified by the begintime attribute).
You may stack several of these elements sequentially, but unless you specify an offset time, they will all point to the same start time, that of the media element to which they are attached.
You can also attach a table of contents entry to a sequence element, by using a tocentry element. All tocentry and tocentryclip elements in the project are compiled into a single table of contents. You must handle the indentation to indicate subtopics.
Syntax
<tocentryclip
title="string value"
indent="integer value"
begintime="floating point value">
</tocentryclip>
Attributes
title (required)
Specifies the text that will appear as the table of contents entry.
indent (optional)
Indicates how many levels to indent the entry from zero to 3, where zero is no indentation, and 3 is the most indenting.
begintime (optional)
Indicates the number of seconds into the associated media element (not the absolute time on the timeline) to anchor the link. If not specified, it starts at the same time as the associated media element.
Example Code
The following sample code adds four table of contents entries linked to a video clip. The first entry links to the beginning of the video, by default.
<sequence type="video">
<media src="g:\projects\producer\my Videos\Lecture.wmv">
<tocentryclip title="The problem" indent="1"/>
<tocentryclip title="The background" indent="1" begintime="10"/>
<tocentryclip title="The solution" indent="1" begintime="25"/>
<tocentryclip title="The cost" indent="1" begintime="35"/>
</media>
</sequence>
The following sample inserts a PowerPoint presentation with automatically generated table of contents entries.
<sequence type="slides">
<media src="g:\projects\producer\my Slides\My Slides.ppt" autotoc="true"/>
</sequence>
Parent/Child Elements
Hierarchy | Elements |
Parent | media |
Child |
|
See Also
Previous | Next |