You can insert references to video and audio media resources (such as videos, audio
clips, or embedded HTML frames) in your DITA topics and then publish them to WebHelp output.
The media objects can be played directly in all HTML5-based outputs, including WebHelp
systems.
To add media objects in the WebHelp output generated from DITA documents, doing the
following:
-
Manually add an object element, as in one of the following examples:
<object outputclass="video" type="video/mp4" data="MyVideo.mp4"/>
or,
instead of the data
attribute, you can specify the video
using a parameter like
this:
<object outputclass="video">
<param name="src" value="videos/MyVideo.mp4"/>
</object>
-
Edit the DITA topic and insert a reference to the video by adding an
object
element, as in one of the following examples:
<object outputclass="video" type="video/mp4" data="MyVideo.mp4"/>
or,
instead of the data
attribute, you can specify the video
using a parameter like
this:
<object outputclass="video">
<param name="src" value="videos/MyVideo.mp4"/>
</object>
-
Apply a DITA to WebHelp transformation to obtain the output.
The transformation converts the
object
element to an HTML5
video
element.
<video controls="controls"><source type="video/mp4" src="MyVideo.mp4"></source>
</video>