Jump to content

Cannot get video to show


dianepep

Recommended Posts

I'm trying to add a video to my website and the video will not show at all. I've tried several codes and placed them in the product description. I've tested it on chrome, IE, and Firefox and none of those browsers show the video. The following are what code I've tried:

I have tried this with and without the width and height specified:
    <iframe allowfullscreen="" frameborder="0" height="214" src="https://aprils-choice/shapewearvideoa" width="380"></iframe>

I've tried this and just get the message "Your browser does not support the video tag."

<video>
<source src="http://aprils-choice.com/shapewearvideoa.mp4" type="video/mp4" >
<source src="http://aprils-choice.com/shapewearvideoa.webm" type="video/webm" >
Your browser does not support the video tag.
</video>

I have also tried placing the code directly in templates/main.php

 

Can anyone give me any suggestions. I've searched the forum for similar issues but nothing has helped. Thanks

Link to comment
Share on other sites

13 hours ago, shaununouk said:

Hello,

I use video on my own website and use the following code

<p style="text-align: center;">
<video controls="controls"><source src="https://www.website.co.uk/***********.mp4" type="video/mp4" /></video>
</p>

Hope this helps

Hi, Thanks for the code. It looks to me like my code is just as yours, except for the url of course. I've googled the video tag and checked many sites and they all show this code so I'm wondering why mine is not working. I checked the video itself and it runs. Did you place your code inside the Product Description? I've tried placing it in the product description, in the document, and even hard coded in main.php and nothing has worked. 

Link to comment
Share on other sites

Looking at the product page, I see a block where my No-Script is indicating where the video would play if I allowed it. Do you see any indication where the video would play?

I also see the <iframe> source is http - which modern browsers disallow "mixed" content on the same page: http on an https page.

I also see the <iframe> source is without the www. prefix on a www. prefix page. Usually, I believe this is not a problem, but there could be a web server directive to 301 Redirect from non-prefix to prefix URLs that the <iframe> may not handle? (I have no idea about <iframes> and redirections.)

Since the <video> tag is also having problems, I would attack the "mixed" content theory first.

Link to comment
Share on other sites

2 hours ago, bsmither said:

Looking at the product page, I see a block where my No-Script is indicating where the video would play if I allowed it. Do you see any indication where the video would play?

I also see the <iframe> source is http - which modern browsers disallow "mixed" content on the same page: http on an https page.

I also see the <iframe> source is without the www. prefix on a www. prefix page. Usually, I believe this is not a problem, but there could be a web server directive to 301 Redirect from non-prefix to prefix URLs that the <iframe> may not handle? (I have no idea about <iframes> and redirections.)

Since the <video> tag is also having problems, I would attack the "mixed" content theory first.

Thanks,

I used the admin panel iframe option to redo the iframe and didn't notice it used http instead of https. I have it corrected now and it does show a video box again and even counts down like it is playing but no video shows in it. With the video tag I was not even getting that. 

Yes I didn't put the www. in but I checked when I used the iframe button in the admin panel and it has www. in that now. This is the code that is now on there from the iframe button in the admin panel:    <p><iframe align="middle" frameborder="1" longdesc="Shapewear Video" scrolling="no" src="https://www.aprils-choice.com/shapewearvideoa.mp4"></iframe></p>

At least it's showing a video window but just not playing the video. 

Link to comment
Share on other sites

16 hours ago, fabriceunko said:

Hello, I’m using this to display video

<video autoplay="true" height="60" loop="" width="468"><source src="/boutique/****/*****/***/****/video/demoslash.mp4" style="width: 468px; height: 60px;" /></video>

Thank you for your reply. I copied the code you gave me and tried replacing the iframe code with it, using my https address of course, and it showed nothing. I can't seem to get the video tag to work at all. The iframe now shows a block but says aprils-choice.com servers ip address could not be found. 

 

I noticed something odd and don't know if it is causing the video error or not. I also am having an issue when I click on my product and go to the product page it does not show the image unless I refresh. 

I found other threads about this which referred me to https://github.com/cubecart/v6/commit/3a53be74508ef0d41c4ae13c1742f021f866e431 so I copied the code there and added it but it did not do anything that I noticed. I still have no image showing until I refresh. When I traced the code to try to determine why the image is not showing I found when I click on my product the next page shows as https://aprils-choice.com/test-video.html . For some reason the variable $featured.url contains that in it for my image in box.featured.php file. The entire section of code is this:

{if $featured}

<div class="panel" id="box-featured">

<h3>{$LANG.catalogue.title_feature}</h3>

<a class="th" href="{$featured.url}" title="{$featured.name}">

<img src="{$featured.image}" alt="{$featured.name}">

</a>

<h4><a href="{$featured.url}" title="{$featured.name}">{$featured.name}</a></h4>

{if $featured.ctrl_sale}

<span class="old_price">{$featured.price}</span> <span class="sale_price">{$featured.sale_price}</span>

{else}

{$featured.price}

{/if}

</div>

{/if}

Upon inspecting I found $featured.url contains https://aprils-choice.com/test-video.html I don't know why the image url has a video name it in. I don't even remember ever creating a test-video.html but I have been staring at this code for hours so it is quite possible I created a test and just don't remember it because I'm getting brain fogged. 

 

Any help is greatly appreciated!

Link to comment
Share on other sites

I found a website that said to type into my address bar: chrome://net-internals/#dns and hit enter and then click Clear Host Cashe Button and that got rid of the error message but now I'm left with a video frame that does not show the video. This isn't too important for me though. I can do without a video. I made one but will just use it for ads. I would like to eventually be able to get the video on my site but it's not a must have for now. The only important issue I have is trying to get my product image to show up alongside my gallery without having to refresh the page. I read about it in another thread and copied the code to correct the issue but it still is not working. 

Thanks again for your help. 

Link to comment
Share on other sites

16 hours ago, fabriceunko said:

Hello did you try to put your video in the description of your product? This is where I put them. I display the source code, and I paste my code

Hi, Yes I did try that also but got the same results. I'm wondering if it's something with my video. I am going to try to embed a youtube video and see if that works and then do that if I have to. Thanks for the suggestion!

Link to comment
Share on other sites

In the description of one of my products I use this. Maybe your video format has a problem.

 

 

<video controls="" height="240" width="320"><source src="vidéos/four-electrique.mp4" type="video/mp4" /> Your browser does not support the video tag.</video>

Link to comment
Share on other sites

On 1/17/2020 at 1:10 AM, fabriceunko said:

In the description of one of my products I use this. Maybe your video format has a problem.

 

 

<video controls="" height="240" width="320"><source src="vidéos/four-electrique.mp4" type="video/mp4" /> Your browser does not support the video tag.</video>

Thanks for the suggestion. I tried it and got the same result. I'm going to try a different video. one I didn't make. To see if it's possibly my video that is the problem. 

Link to comment
Share on other sites

I saw a similar message on the Cpanel forum thats all.

I had a recent issue with a PHP setting 'allow_url_fopen', which was disabled in PHP, this stopped me opening URL's

In the left hand column on the admin side, go to PHP info at the bottom

When the PHP info appears, just check allow_url_fopen is switched on.

It's a long shot, but worth a look.

 

If this is disabled, you might need to ask your server people to enable in in PHP.ini

Link to comment
Share on other sites

13 hours ago, keat said:

I saw a similar message on the Cpanel forum thats all.

I had a recent issue with a PHP setting 'allow_url_fopen', which was disabled in PHP, this stopped me opening URL's

In the left hand column on the admin side, go to PHP info at the bottom

When the PHP info appears, just check allow_url_fopen is switched on.

It's a long shot, but worth a look.

 

If this is disabled, you might need to ask your server people to enable in in PHP.ini

Thanks. I checked and it is set to on. 

I dont know why I didn't think it could be my video before. I think I've been fixing other issues for so long it just slipped my mind that it may not be cubecart. lol. But I tested with a different video and it works fine so it has to do with my video I created. I will try recreating it using different settings to see if I can get it to work. 

Thanks everyone for your suggestions!

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...