So I want to add videos to my page but unsure how to.. I've sort of done it but its not the way I want to do it... So within user (or user/pages) I would create a video folder. This was would have subfolders containing 1-5 videos each.
So within \user hemes\hofb emplates\modular I have created a video.html.twig when I use the example within the learn section for videos its working fine {{ page.media['test.mp4'].resize(400, 200).html() }}
Within \user\pages\09.videos\artist-videos est-video-1_video I have my test.mp4 video and I have the file video.md which doesn't have much in it. video.md doesn't contain the markdown to display the video. When I view this page the page gets rendered and the video displays... So my first issue is that within the twig the video is hard coded to a specific name and I dont want all my videos in different directorys with the same name.
In the twig I tried {{ page.media.videos.resize(400, 200).html() }} | {{ page.media.video.resize(400, 200).html() }} | {{ page.media.video.html() }} {{ page.media.videos.html() }} and within video.md I had the markdown for outputting the video. Page rendered but no video displayed.
So I changed the twig to {{ dump(page.media.videos) }} refreshed the page no video appears but within the debugger I can see in the messages section an aray test.mp4 as below.
`array:1 [
"test.mp4" => Grav\Common\Page\Medium\VideoMedium {#1740
mode: "source"
#_thumbnail: null
#thumbnailTypes: array:2 [
0 => "page"
1 => "default"
]
#thumbnailType: null
#alternatives: []
#attributes: array:1 [
"controls" => true
]
#styleAttributes: []
#gettersVariable: "items"
#items: array:11 [
"type" => "video"
"thumb" => "media/thumb-mp4.png"
"mime" => "video/mp4"
"image" => array:1 [
"filters" => array:1 [
"default" => array:1 [
0 => "enableProgressive"
]
]
]
"filepath" => "C:/MAMP/htdocs/user/pages/09.videos/artist-videos/test-video-1/_image /test.mp4"
"filename" => "test.mp4"
"basename" => "test"
"extension" => "mp4"
"path" => "C:/MAMP/htdocs/user/pages/09.videos/artist-videos/test-video-1/_image "
"modified" => 1428576482
"thumbnails" => array:1 [
"default" => "C:/MAMP/htdocs/system/images/media/thumb-mp4.png"
]
]
#blueprints: null
#storage: null
#parsedown: null
}
]`
What I cant figure out is why no video appears...
video.md has  inside of it.
Any ideas?