... |
... |
@@ -1,3 +1,12 @@ |
1 |
|
-{{video attachment="Propaganda.mp4"/}} |
|
1 |
+{{velocity}} |
|
2 |
+#set ($attachmentName = "Propaganda.mp4") |
|
3 |
+#set ($attachmentURL = "$doc.getAttachmentURL($attachmentName, 'download')") |
2 |
2 |
|
3 |
|
-{{video attachment="2025-02-26_05-18-58_0.mp4"/}} |
|
5 |
+#if ($attachmentURL) |
|
6 |
+ #set ($videoTag = "<video width='640' height='360' controls><source src='" + $attachmentURL + "' type='video/mp4'>Your browser does not support the video tag.</video>") |
|
7 |
+ $esc.html($videoTag) |
|
8 |
+#else |
|
9 |
+ <p>Error: Could not find attachment '$attachmentName'. Please ensure it exists and the filename is correct.</p> |
|
10 |
+#end |
|
11 |
+{{/velocity}} |
|
12 |
+ |