Audio/Video player not working
Markpad version
2.9.2
How did you install it?
Windows — portable (Markpad_….exe)
OS and version
Windows 11 Pro 25H2
What happens, and what you expected instead
Using "image linking" to mp3 or mp4 files brings up an audio player or video player respectively. However, both players will not play the file nor open it in a desktop app or web browser tab. Triple dots menu of audio player is responsive. Triple dots menu of video player displays tooltip.
I would expect the players to be functional or at the very least open to file externally.
Using a normal link instead (without the !) successfully opens the file either locally or on the browser depending on the nature of the link.
Tested with both installer and portable.
Steps to reproduce
- Create an MD file in the same folder as an mp3 or mp4 file.
- Make a "image link" pointing to a mp3 or mp4.
- access "preview" mode.
- Attempt to interact with with either players.
The Markdown that triggers it
# Test File
## Sound



## Video



Screenshots, and anything else
In portable version 2.6.12 the players are not playing either. Standard web link to mp3 or mp4 would work and open in a browser.
Link to local file would fail and freeze Markpad in a white screen with "404 not found". Any windows version of 2.9.2 does not have this issue.
Thanks for the clear steps. There were two separate problems here.
Local files next to the document were a real bug. It's already fixed in the development version, but that fix isn't in any release yet (2.9.2 doesn't have it), so it will ship in the next release. It was only tested on macOS, so once the next release is out, could you check it on Windows and say here whether it plays?
Web audio and video were blocked because the preview allowed images from the web but not audio or video from the web. That's being opened up in #1107.
Until those ship, a normal link (without the !) still opens the file in your browser, as you found.
The technical side — you can skip this
- Local files: the preview's content security policy had no
media-src, so media fell back todefault-src, which refuses thehttp://asset.localhostaddress Windows uses for local files. #1081 addedmedia-srcwith that address. It's on master, not in 2.9.2, and was only run on macOS. - Web media:
img-srcincludeshttps:andmedia-srcdidn't. #1107 addshttps:tomedia-src. It has passed the automated tests on macOS but hasn't been run on Windows or tried in the app yet.
I'll be sure to test the players of future versions on windows and report back. I like using Markpad for offline documentation. As such, I'm mostly interested in local files.
I was just being thorough with the tests. I did not thing to test http vs https.
Thx for the great work.