Page 1 of 1

Embedded video problems

Posted: Thu Oct 21, 2021 12:01 am
by candymmorton
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>

Re: Embedded video problems

Posted: Thu Oct 21, 2021 7:20 am
by Radu
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