Embedded video problem
- This topic has 4 replies, 3 voices, and was last updated 2 weeks, 2 days ago by .
- September 1, 2021 at 7:19 pm #6231masonbee
OS: Kubuntu 20.04
Publii version: v.0.38.3 (build 14238)
Theme: Technews 22.214.171.124
I seem to have a problem embedding videos. If I do a local preview they are fine but when the site is uploaded there is a blank box with “No video with supported format and MIME type found”.
I have tried different browsers and operating systems, mpv instead of webm, making the file sizes smaller, wrapping the video tags in <figure class=”post__video”> and probably quite a few other things I can’t remember 🙂 For some reason I am stymied.
The code in HTML view is,
<video width="100%" height="auto" controls="controls"><source src="media/files/touristtrap.webm" type="video/webm" /></video>
Any ideas on what I am doing wrong?September 2, 2021 at 1:14 am #6234NitaaiKumar
Maybe your remote server does not have the mime types set for webm or mkv? Try with mp4 and see too.September 2, 2021 at 6:37 am #6243masonbee
Maybe your remote server does not have the mime types set for webm or mkv? Try with mp4 and see too.
Nope, no luck there but it’s a good thought as it is on lightspeed. I’ll put it on a clean Apache server and see what happens there.September 2, 2021 at 6:52 am #6245kensquires
@masonbee – It’s not your host.. after reading your post I thought I would try it on mine with a rather small mp4 file. It didn’t work, I then thought I got to be doing something wrong, so I took to option 2 and I opened up a blank html page in a different program and coded to view a html5 player myself and if I do it myself I can get it to run on my current web host but through publii for some reason it doesn’t work
However I thought I would dig deeper and because of having super slow internet I thought I would use your video (hope you don’t mind) since it was already on a server and I found your solution…
Right now you have it coded with the source for this: media/files/touristtrap.webm
What I’ve learned about Publii is it requires a full URL so go back into publii where you have your video and change your source to this: https://masonbee.nz/media/files/touristtrap.webm
I just tested it on my publii and I had your video play for me, like I said I felt the need to use yours cause my internet is slow but it was just merely for testing purposes.September 2, 2021 at 7:03 am #6246masonbee
Awww, it’s perfect. Such a simple solution 🙂 Thank you to you both. I will set this as closed.
- The topic ‘Embedded video problem’ is closed to new replies.