include video?

36 views
Skip to first unread message

petr.m...@gmail.com

unread,
Nov 23, 2021, 6:37:12 AM11/23/21
to Epsilon Notes
Hello,

image is included as ![image](url). How to include mp4 video file?
Thanx.

Petr Mach

R 4

unread,
Nov 27, 2021, 7:24:40 PM11/27/21
to Epsilon Notes
With html it is just

<video controls width="90%" src="path-to-video.mp4"></video>

With regex, if you copy path in file manager and agree/refuse to convert it to a relative path when you paste it in note

\[.*?\]\(([^)]+(\.mp4|\.webm|\.3gp))\)
<center><video controls width="90%" src="$1#t=0.1"></video></center><br>

Same with jQuery

<script>$(function(){
$("a[href$='.mp4' i], a[href$='.webm' i], a[href$='.3gp' i]").each(function(){$(this).after('<center><video controls width="90%" src="' + $(this).attr("href") + '#t=0.1"></video></center><br>').remove()})
});</script>

If you add path as ordinary text (do not recommend)

[^\s]*?(\.mp4|\.webm|\.3gp)\b
<center><video controls width="90%" src="$0"></video></center><br>

вторник, 23 ноября 2021 г. в 15:37:12 UTC+4, petr.m...@gmail.com:

R 4

unread,
Nov 27, 2021, 7:40:39 PM11/27/21
to Epsilon Notes
Has Forgotten to say to insert the path as link, it is necessary to add the extensions .mp4, .webm, .3gp in Files launch filter in Preferences.

воскресенье, 28 ноября 2021 г. в 04:24:40 UTC+4, R 4:

petr.m...@gmail.com

unread,
Dec 13, 2021, 2:39:19 PM12/13/21
to Epsilon Notes
Thanx for you reply.


Dne neděle 28. listopadu 2021 v 1:40:39 UTC+1 uživatel R 4 napsal:
Reply all
Reply to author
Forward
0 new messages