Most easiest way it to host your vertical MP4 file by yourself, you can start with Dropbox for example, and grab a ink to the file from there. Then use custom code to craft your own HTML5 video player. You’ll place the result in the middle of your PNG.
For the playyer, google “HTML5 video” and you’ll fiind sample code. As for today, you only need a MP4 file, so you can avoid producing the other formats. You need only 1 video MP4 and 1 image for the “cover”.
I’m not getting too much into details, feel free to ask for them.
Hosted my video on droxbox and created a open view share. After trial and error I found you need to change the extension on the end of the share from ?dl=0 to ?raw=01 to make the video work.
Hi @mrstylist, a couple of things, first, I love the name and purposes of this site. My dog Rex would love it
Second, I think the approach you have taken is a good one, working with video embeds can be tricky.
Third, you might want to adjust the video-js class using custom css to exactly match the dimensions of the video embed, there is just a small amount of overflow shown on the corners when the video is displayed:
Not a big deal, but there is probably some styling solution for this, probably by adjusting the radius of the video-js object and perhaps adjusting overflow, I am checking a bit to see if I have anything to add there.
Overall, it looked fine to me when resizing, which can be one of the trickiest parts of exact placement of videos on a page.
One note, when the user plays the video, currently the video will expand to the full screen of the phone as shown:
This means that either that would have to be updated to play in place without maximizing, that is something to look into if that is not wanted.
I am checking to see if I have some further ideas on this kind of layout as I think this could be a useful tutorial.