Can't get mp4 video to play in Content Page |
Post Reply |
Author | |
MGatESS
Groupie Joined: 12-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
Posted: 16-August-2018 at 3:21pm |
I am trying to get an MPEG-4 video I uploaded to our host server to play in a Content Page in our ProductCart v5.2.10 (Bootstrap Blue theme).
I have tried using the <embed> tag and the HTML5 <video> tag, and both will not work. The "embed" method won't even show on the page, and the HTML5 "video" tag will not work - it just shows the "poster" and grayed out controls, and nothing happens. Here's the page URL: https://www.endoscopy.com/store/pc/Service-Department-d13.htm Here's the Video HTML5 tag I put in the page: <video width="320" height="180" controls autoplay loop poster="https://www.endoscopy.com/images/videos/ESSRep123_poster_320x180.jpg"> <source src="https://www.endoscopy.com/images/videos/ESSRep123.mp4" type="video/mp4"> Your browser does not support the HTML5 video tag. Find: https://youtu.be/wRq20Dft6BM </video> FYI: Just noticed that the video attributes that are un-quoted, when I save the Content Page, ProductCart admin system is adding ' ="" ' to them (ie: controls becomes controls="") So, what am I doing wrong??
Edited by MGatESS - 16-August-2018 at 3:24pm |
|
inn2
Newbie Joined: 22-August-2018 Location: UK Status: Offline Points: 7 |
Post Options
Thanks(1)
|
The code looks right so the first thing I'd check is that the path to the source video is correct and that the video exists in the folder.
I created a static html page outside of productCart using your code with only the video in it and it is throwing the same error which elinates any coding clash. It is saying the Invalid Source. If the source is correct and you can see the video in the folder on the server there are 2 other possibilities. 1. Your Server does not support the MIME type for .mp4. If this is the case it can easily be added in IIS. I suspect this isn't the reason though as your video wouldn't run on the static page I created and uploaded to one of our servers. 2. Your hosting company is blocking the video. I know this sounds extreme but I did have it happen to me many years ago and their reason was they didn't allow it in case it was copyrighted. We run our own dedicated servers these days to provide hosting for our customers so its no longer a problem Tim Edited by inn2 - 05-September-2018 at 4:20pm |
|
MGatESS
Groupie Joined: 12-July-2006 Location: United States Status: Offline Points: 73 |
Post Options
Thanks(0)
|
Yes, Tim. It turned out that my webhosting company had to "allow" it. Once they did that, it worked fine. Thanks for the information.
|
|
inn2
Newbie Joined: 22-August-2018 Location: UK Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Glad to be of help. If your experience was anything like mine you've most likely spent hours trying everything else and it would be the last place you'd think of looking.
I noticed that both my post and yours had been monetised by turning the word 'web host' into an ad link using some called vigl!nk. I guess the folks at ProductCart are trying to make a few extra pennies but it would be nice to know. My own company provides hosting so I'd rather not have a link to another hosting company in my posts. Edited by inn2 - 05-September-2018 at 4:28pm |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |