sphinx-contrib / video

A sphinx plugin that enables embedding of HTML5 videos
https://sphinxcontrib-video.readthedocs.io
Apache License 2.0
43 stars 29 forks source link

Fallback text for RTF PDFs #25

Open JDziurlaj opened 1 year ago

JDziurlaj commented 1 year ago

Is it possible to provide a mechanism (e.g. attribute) that would serve as fallback text to appear in lieu of the video control, such as for when Read the Docs creates PDFs?

12rambau commented 1 year ago

I'm not sure I get what you mean.

You would like a fallback mechanism for the sphinx pdf builder instead of the current skipnode ?

JDziurlaj commented 1 year ago

There may be situations where you need to provide context, such as when a section contains no content because its only content was the video. In that case, you could have alternative text appear in the LaTeX documentation such as please visit {url} to view this video.