Embedded video problems

candymmorton
Posts: 6
Joined: Mon Apr 19, 2021 9:16 pm

Embedded video problems

Post by candymmorton » Thu Oct 21, 2021 12:01 am

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>
                <info><object width="800"
                        data="https://aa2019packagesdkfordocumentation.s3-us-west-2.amazonaws.com/videos/visi-filter.mp4"
                        outputclass="video" type="video/mp4">
                        <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"/>
                    </object></info>

Radu
Posts: 7697
Joined: Fri Jul 09, 2004 5:18 pm

Re: Embedded video problems

Post by Radu » Thu Oct 21, 2021 7:20 am

Hi,

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:
viewtopic.php?f=20&t=23463

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply