Hi,
just a quick suggestion how this
could work (not tested).
Preamble: You can embed mp4 videos quite easily into HTML (
https://duckduckgo.com/?q=html+embed+mp4 ) , so this is something we can use.
You may need an upload field for the video to be uploaded.
As this field holds the filename (location comes from
config.php, usually
'baseUploadPath' => "images" ) we know, where the file is.
So, we probably need to adjust /templates/tablenameDV.html and/or /templates/tablenameTV.html and simply add new code to it: Not only the generic AG upload field should be shown, but also the video itself. Hold your horses for the DV-file, AG recommends:
To change the layout of the detail view form, we recommend using JS code in hooks/tablename-dv.js rather than editing this file -->
Maybe better do it that way
The code then should be something like this - where you want the video to appear (formating? ... do it yourway):
Code: Select all
<video width="500" controls autoplay>
<source src="<%%BASE_UPLOAD_PATH%%><%%VALUE(Bild_Datei)%%>" type="video/mp4" />
Your browser is outdated, update it to display the video
</video>
Just a suggestion to point the direction. Please update us if this works.
Olaf