Skip to main content
Known Participant
March 9, 2025
Question

Website not playing video links on mobile

  • March 9, 2025
  • 2 replies
  • 288 views

I have created a website using the prettyPhoto plug in. The site works fine except for the videos, which while play fine on my desktop don't play on my mobile (android) Would anyone be able to look at the code and give an indication as to what is causing this issue? The videos are external YouTube links.

 

My site is: https://www.kylehawkinscreative.com

 

Thanks in advance.

2 replies

Nancy OShea
Community Expert
Community Expert
March 9, 2025

Fix these first:  138 Code Errors -- many of them critical.

https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.kylehawkinscreative.com%2F

 

ERROR FREE TEST DOCUMENT:

 

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>YouTube Video Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

<body>
<h3>YouTube Test</h3>
<!--EMBED CODE COPIED & PASTED DIRECTLY FROM YOUTUBE-->
<iframe width="560" height="315" src="https://www.youtube.com/embed/FuS4xGXbDjE?si=kQ8UrjanMXe3iutr" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

</body>
</html>

 

 

I no longer use jQuery or jQuery based plugins. Sorry.

Hope that helps.

 

Nancy O'Shea— Product User & Community Expert
Known Participant
March 9, 2025

138 errors!! Clearly I'm not a developer. Thanks for highlighting these points. I will trawl through them and try fix these glitches.

Community Expert
March 9, 2025

When I click the links for the video I cannot see them play in Chrome from a desktop either. What I am seeing is that when the video is requested it is requesting http instead of https. This is causing a mixed content issue and causing the video not to load. It seems to be requesting that from the prettyPhoto plugin. You might need to troubleshoot this with them to see why the https link for youtube is not being requested as that should be the default to prevent mixed content errors like this.

Known Participant
March 9, 2025

Hi Ben, thanks for looking into this. It's strange this is occuring as I've used prettyPhoto before and not had this issue. But, now I know it's a mixed content error I will get in touch with them to troubleshoot this. Thanks again.