Embedding videos in sphinx

1597 views
Skip to first unread message

PRIYANKA KAUL

unread,
Jul 5, 2017, 2:06:51 AM7/5/17
to sphinx-users
Hi,

I have tried embedding local video in my code but for soem reason, i'm getting an error and the video isn't uploaded.
On my local stash, i had put the video in the _build directory. this way, the videos were being uploaded.
but for master stash, putting it in the _static directory doesnt do any good either.


pls help!

gilberto dos santos alves

unread,
Jul 5, 2017, 12:50:13 PM7/5/17
to sphinx...@googlegroups.com
please explain your issue with url, examples, sources, etc.


--
gilberto dos santos alves
+5511986465049






--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users+unsubscribe@googlegroups.com.
To post to this group, send email to sphinx...@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

PRIYANKA KAUL

unread,
Jul 6, 2017, 7:24:48 AM7/6/17
to sphinx-users
Hi,

i used 

 - .. raw:: html

           <video controls src="C_Add_Pricing.mp4" width="620" height="620">
           </video>   

When i put the video in the project/_static directory, it's not getting loaded in the browser.



All my content lies under shared directory.

gilberto dos santos alves

unread,
Jul 6, 2017, 1:20:59 PM7/6/17
to sphinx...@googlegroups.com
great! but what others message when build your html?
what versions? extensions? windows? linux? your src not means url! please post all information for we
help your issue. best regards from sao paulo - brz

--
gilberto dos santos alves
+5511986465049






PRIYANKA KAUL

unread,
Jul 13, 2017, 4:06:55 AM7/13/17
to sphinx-users
The project structure is like this:

Project_Name
        _static
        _template
        en_us
        extensions
        external_links
        rst_template

and so forth.

All the project .rst files are under en_us folder.
on my local drive, the build directory is under en_us. When i put the videos under C:\Users\pmonga\Documents\Project_Name\en_us\_build\internal\siboz0XUowgP2K5GkgViQ8aVf8zlOnwF
it gets picked up and i can view the same on the browser too with the documentation.
But for the master code, if i put it under C:\Users\pmonga\Documents\Project_Name\_static it doesnt get picked up!
No error messages. I'm using a windows10 62 bit.



On Wednesday, July 5, 2017 at 11:36:51 AM UTC+5:30, PRIYANKA KAUL wrote:

gilberto dos santos alves

unread,
Jul 13, 2017, 12:50:35 PM7/13/17
to sphinx...@googlegroups.com
please what about your log for sphinx-build ?


--
gilberto dos santos alves
+5511986465049






Komiya Takeshi

unread,
Jul 15, 2017, 4:57:32 AM7/15/17
to sphinx...@googlegroups.com
Hi,

The files under _static/ directory are copied into build/html/_static/
directory. So you need to use relative paths inside raw directive like
following::

.. raw:: html

<video controls src="../_static/C_Add_Pricing.mp4" width="620" height="620"/>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sphinx-users...@googlegroups.com.

PRIYANKA KAUL

unread,
Jul 17, 2017, 2:00:53 AM7/17/17
to sphinx-users
I have already copied my video in _static.
and specified the path as project_documentation/video_name.mp4


On Wednesday, July 5, 2017 at 11:36:51 AM UTC+5:30, PRIYANKA KAUL wrote:

PRIYANKA KAUL

unread,
Jul 24, 2017, 5:42:18 AM7/24/17
to sphinx-users
Hi All, 

Can someone pls help me with this?

Even though the video is under _static, its not getting shown when we view the page


On Wednesday, July 5, 2017 at 11:36:51 AM UTC+5:30, PRIYANKA KAUL wrote:

Vijaya Krishna Kasula (Vijju)

unread,
Jul 25, 2023, 7:47:25 AMJul 25
to sphinx-users
Reply all
Reply to author
Forward
0 new messages