0

I want to play mp.4 file on my xaringan slide, and I add the following but it won't play. Am I missing something here? Thank you.

<video width="500" height="400"  controls>
  <source src="music.mp4" type="video/mp4">
</video>
shafee
  • 15,566
  • 3
  • 19
  • 47
jck21
  • 751
  • 4
  • 16
  • What do you mean by **it won't play?** You don't see the video on the slide or can't start it using video-controls? If the first case, see this https://stackoverflow.com/a/53181238/10858321 – shafee Aug 08 '22 at 17:17
  • I did exactly the same way as the link you attached. The link shows up in the slide, but it does not play even when I click the arrow (play) button on the slide. – jck21 Aug 08 '22 at 18:51
  • I can't reproduce your problem, In my case, this is working. – shafee Aug 09 '22 at 05:45
  • probably because of safari browser. thanks – jck21 Aug 09 '22 at 19:03
  • If you have found your solution to the problem, please add that to your question, it might be helpful to others. – shafee Aug 09 '22 at 19:04
  • 1
    Not yet, but definitely I will do so once I found a solution. Thanks. – jck21 Aug 09 '22 at 23:37
  • problem solved! It was due to the location of the file. thanks! just quick question: is there anyway I can play mp4 file with music only without showing video? – jck21 Sep 05 '22 at 22:29
  • well just get the audio of that video and use that – shafee Sep 06 '22 at 09:36

0 Answers0