Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to embed video/audio files in a wiki page? #178

Open
johann-petrak opened this issue Oct 17, 2024 · 1 comment
Open

Is there a way to embed video/audio files in a wiki page? #178

johann-petrak opened this issue Oct 17, 2024 · 1 comment

Comments

@johann-petrak
Copy link

johann-petrak commented Oct 17, 2024

In theory it should be possible to do something like:

A video: <video src="video.mp4" width="320" height="240" controls></video>

an audio: 
<audio controls="controls">
  <source type="audio/mp3" src="audio.mp3"></source>
  <p>Your browser does not support the audio element.</p>
</audio>

But this does not work. When I put this in a page, the log shows:

[2024-10-17 14:08:43,033] INFO in wiki: [Errno 2] No such file or directory: 'wiki/video.mp4.md'
[2024-10-17 14:08:43,034] INFO in wiki: [Errno 2] No such file or directory: 'wiki/audio.mp3.md'

@johann-petrak
Copy link
Author

johann-petrak commented Oct 18, 2024

It seems this problem is a special case of #101
If wikmd would be able to serve urls with a path that has a known media extension like mp4, mp3 using the correct mime type, this would work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant