Poster file not included in web help

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
shanweizhong
Posts: 10

Poster file not included in web help

Mon Sep 18, 2017 5:03 am

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
Radu
Posts: 5088

Re: Poster file not included in web help

Mon Sep 18, 2017 4:02 pm

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/19.0/ug-editor/topics/dita-map-use-your-own-build-file.html

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

Re: Poster file not included in web help

Tue Sep 19, 2017 6:28 am

Got it. Thanks Radu.

Cheers,
Michael

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 3 guests