- Posts: 6
- Joined: Mon Apr 19, 2021 9:16 pm
We are trying to embed videos in our topics using the code below. We cannot get poster working, the video will not autoplay and the video does loop but will not sop after 3 cycles. Any help would be appreciated!
Code: Select all
<cmd>Embed video and modify using param element.</cmd>
<param name="movie" value="visi-filter"/>
<param name="poster" value="../Videos/visibility-filter.jpg"/>
<param name="autoplay" value="true"/>
<param name="loop" value="3"/>
<param name="quality" value="high"/>
- Posts: 7697
- Joined: Fri Jul 09, 2004 5:18 pm
Each parameter element you set on the <object> element becomes an attribute on the generated HTML video element.
After publishing the DITA content you can look inside the generated HTML topic, maybe change it manually until it works to see what changes should be made to it.
For the poster parameter "<param name="poster" value="../Videos/visibility-filter.jpg"/>" the publishing engine does not automatically copy the poster image to the output folder, so this is probably it does not work.
There is another way to fully control the generated HTML content, here's a link to an older post which also explains how to force copy certain resources to the output folder by referencing them in the DITA Map:
<oXygen/> XML Editor