0 Votes

Wiki source code of Conditioning

Version 26.1 by Ryan C on 2025/04/28 05:59

Hide last authors
Ryan C 25.1 1 {{velocity}}
2 #set ($attachmentName = "Propaganda.mp4")
3 #set ($attachmentURL = "$doc.getAttachmentURL($attachmentName, 'download')")
XWikiGuest 1.1 4
Ryan C 25.1 5 #if ($attachmentURL)
Ryan C 26.1 6 #set ($encodedAttachmentURL = "{{url reference=\"${attachmentURL}\" display=\"link\"}}")
Ryan C 25.1 7 <video width="640" height="360" controls>
Ryan C 26.1 8 <source src="$encodedAttachmentURL" type="video/mp4">
Ryan C 25.1 9 Your browser does not support the video tag.
10 </video>
11 #else
12 <p>Error: Could not find attachment '$attachmentName'. Please ensure it exists and the filename is correct.</p>
13 #end
14 {{/velocity}}
XWikiGuest 1.1 15

XWiki AI Chat