skip to main content
Embedding a Video file
You can embed a video that you have on file into your DITA source document.
To embed a video from your file directory:
1. Create the an object tag for the video, for example: <object> </object>
2. Next you are going to want to specify certain attributes for your video object
*If want to set a stylename, set the outputclass attribute to whatever stylename you want to give it.
*Specify what width and height you want to give to your video in the width and height attributes
*Set the data attribute to the path to the video file relative to the source file
*For example: <object outputclass="Foo" width="560" height="320" data="../../Video/small.mp4"> </object>
3. Optional: if you want controls on your video include the following param tag inside your object tag: <param name=”controls” value=”true”>
The following is a fully working code example of the following steps:
<object outputclass="Foo" width="560" height="320" data="../../Video/small.mp4">
  <param name="allowFullScreen" value="true" />
  <param name="controls" value="true" />
</object>
Was this helpful?
Last modified date: 11/13/2024