Page 1 of 1

Poster file not included in web help

Posted: Mon Sep 18, 2017 5:03 am
by shanweizhong
Hi folks,

I embedded a video in one of my topics, and to avoid the initial black screen of the video, I used a poster file, as shown below:

Code: Select all

        <object data="../media/video/App_Search.mp4" outputclass="video" width="356" height="200">
<param name="poster" value="../media/video/App_Search.gif"/>
</object>
However, in my web help output, the poster file "App_Search.gif" is not included, and as a result, blank white screen if displayed for the video until it is played.

Does anyone know how I can get the poster image file included in the output?

Thanks in advance,
Michael

Re: Poster file not included in web help

Posted: Mon Sep 18, 2017 4:02 pm
by Radu
Hi Michael,

Indeed the problem is that your GIF image is not automatically copied to the output folder.
Maybe you can add a reference to it in the published DITA Map like:

Code: Select all

<topicref href="...path/to/App_Search.gif" format="gif" processing-role="resource-only"/>
This should convince the publishing process to copy it to the output folder.

Or you can use a custom ANT build file which first runs the default processing and then copies the image to the proper place:

https://www.oxygenxml.com/doc/versions/ ... -file.html

Regards,
Radu

Re: Poster file not included in web help

Posted: Tue Sep 19, 2017 6:28 am
by shanweizhong
Got it. Thanks Radu.

Cheers,
Michael