... |
... |
@@ -3,15 +3,14 @@ |
3 |
3 |
#set ($attachmentURL = "$doc.getAttachmentURL($attachmentName, 'download')") |
4 |
4 |
|
5 |
5 |
#if ($attachmentURL) |
6 |
|
- <verbatim> |
7 |
|
- <video width="640" height="360" controls> |
8 |
|
- <source src="$attachmentURL" type="video/mp4"> |
9 |
|
- Your browser does not support the video tag. |
10 |
|
- </video> |
11 |
|
-</verbatim> |
12 |
|
- |
|
6 |
+ #set ($encodedAttachmentURL = "{{url reference=\"\$${attachmentURL}\" display=\"link\"}}") |
|
7 |
+ <video width="640" height="360" controls> |
|
8 |
+ <source src="${encodedAttachmentURL}" type="video/mp4"> |
|
9 |
+ Your browser does not support the video tag. |
|
10 |
+ </video> |
13 |
13 |
#else |
14 |
14 |
<p>Error: Could not find attachment '$attachmentName'. Please ensure it exists and the filename is correct.</p> |
15 |
15 |
#end |
16 |
16 |
{{/velocity}} |
17 |
17 |
|
|
16 |
+ |