Replies: 3 comments
-
Hmmmm would the video depend on some JavaScript library or something? That's the only thing i can think of... |
Beta Was this translation helpful? Give feedback.
-
Nope. I don’t think so. It’s a movie made of a few slides of keynote which I turned into mp4 using Handbrake. A standard process.
I also tried to do the same thing with a “regular” movie that’s in another part of the product. It was made with a camera.
Side by side:
<center>
<video width="500" poster="../_images/relativity/magnet_coil_2.png" controls>
<source src="../_images/relativity/magnet_coil_2.mp4" type="video/mp4">
</video>
</center>
```{figure} ../_images/relativity/magnet_coil_2.mp4
---
figclass: margin-caption
alt: My figure text
name: magnet_coil_2
---
The very weird problem of the famous magnet and coil demo. Think hard about this.
```
The first one does nothing, like my original problem, the second instance plays automatically without controls. Not good.
I think this is a bug, no? It should respect the raw html I think.
On Jun 25, 2021, at 9:17 PM, Chris Holdgraf ***@***.******@***.***>> wrote:
Hmmmm would the video depend on some JavaScript library or something? That's the only thing i can think of...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/executablebooks/meta/discussions/410*discussioncomment-923274__;Iw!!HXCxUKc!nJtNIDmt9y9mlYNoaDoiNjG5qF6s9eaVq3GI6BfhFzVbfF3gnWa1vHnrD7e6umo$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABCOLTO5LFZM6GHMKRCAHTDTUUTCFANCNFSM47IV2MBA__;!!HXCxUKc!nJtNIDmt9y9mlYNoaDoiNjG5qF6s9eaVq3GI6BfhFzVbfF3gnWa1vHnrwgiOIsc$>.
…---------------------------------------------------------------
Raymond Brock * University Distinguished Professor
Department of Physics and Astronomy, Michigan State University
Adjunct Professor of Physics
Department of Physics, Arizona State University
MSU address:
3210 BPS Building
Michigan State University * East Lansing, MI 48824
sent from: ***@***.******@***.***>
MSU office: (517)353-1693/884-5579
open fax: (517)355-6661
secure fax: (517)351-0688
Vidyo personal room: http://goo.gl/AgiDJ4
CERN Office: 32 2-B03 * 76-71756
|
Beta Was this translation helpful? Give feedback.
-
I am a bit late to answer this, but the problem is likely that the image is not copied. If you put the video in your
Tested and works in sphinx 5.0.2, but really not great. :( (The new mystjs CLI works with videos for both inline |
Beta Was this translation helpful? Give feedback.
-
I'm trying to play a video in Jupyter books and I must be missing something.
This works...but it just plays without controls and without the ability to stop it (unless one clicks and then it opens up with controls)...but it autoplays:
If such functionality is not yet working (I think I saw that elsewhere), I don't understand why raw HTML would not work:
...just sits there with a frame but no video is loaded. I know this is perfectly fine html as
...works fine. The only difference is a local file versus a hosted file.
Ideas? I thought raw HTML would be respected in total?
Beta Was this translation helpful? Give feedback.
All reactions