Print Page | Close Window

Can't get mp4 video to play in Content Page

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=6140
Printed Date: 21-November-2024 at 11:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can't get mp4 video to play in Content Page
Posted By: MGatESS
Subject: Can't get mp4 video to play in Content Page
Date 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" rel="nofollow - 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?? Confused



-------------
~ Mark G.

ESS, Inc. - http://www.endoscopy.com/" rel="nofollow - www.endoscopy.com



Replies:
Posted By: inn2
Date Posted: 22-August-2018 at 8:09am
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



Posted By: MGatESS
Date Posted: 05-September-2018 at 2:24pm
Originally posted by inn2 inn2 wrote:

...

2. Your webhost 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

Yes, Tim.  It turned out that my webhosting company had to "allow" it.  Once they did that, it worked fine.  Thanks for the information.


-------------
~ Mark G.

ESS, Inc. - http://www.endoscopy.com/" rel="nofollow - www.endoscopy.com


Posted By: inn2
Date Posted: 05-September-2018 at 4:27pm
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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net