I'm having an issue with an embedded video from youtube. It was working fine until recently and now I can see it when I load the site from my desktop but not from the server. The code is as follows:

Singing doesn’t stop  after the lesson- I will help get you involved in the music community.
      <p>Watch a former voice student perform at a  special Valentines Day gig at The Company House in Halifax. I arranged the show especially for  talented up-and-coming young stars!</p>
      <p align="center"><br />
        <script type="text/javascript">
AC_AX_RunContent( 'width','560','height','340','src','http://www.youtube.com/v/xqnhBLoi_Sk&hl=en_US&fs=1&','type','application/x-shockwave-flash','allowscriptaccess','always','allowfullscreen','true','movie','http://www.youtube.com/v/xqnhBLoi_Sk&hl=en&fs=1&' ); //end AC code
        </script>
        <noscript>
        <object width="560" height="340">
          <param name="movie" value="http://www.youtube.com/v/xqnhBLoi_Sk&amp;hl=en&amp;fs=1&amp;" />
          <param name="allowFullScreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <embed src="http://www.youtube.com/v/xqnhBLoi_Sk&amp;hl=en_US&amp;fs=1&amp;" width="560" height="340" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" movie="http://www.youtube.com/v/xqnhBLoi_Sk&amp;hl=en&amp;fs=1&amp;"></embed>
        </object>
        </noscript>

I'd appreciate any help.

Dani AI

Generated

A few focused checks will usually find the cause when an embed shows up locally but not when served. @cabdriver is using an older, Flash-based embed helper (the AC* helper), and asked to see it live — the most common problems are missing helper scripts on the server, differences between local (case-insensitive) and server (case-sensitive) file names, or the browser/server blocking the Flash resource (mixed HTTP/HTTPS or Flash being deprecated). Also check for double-escaped entities (for example &amp;amp;), which will break the flash/object movie param values when the page is served.

Practical troubleshooting, in order:

  • Open the browser DevTools Console and Network tabs on the live site. Look for 404/403 for JS or SWF files and for JS errors like the embed helper being undefined.
  • Compare the server-served HTML (View Source) with the local file to spot encoding changes, extra escaping, or missing script includes.
  • Check whether the site is HTTPS while the embed is HTTP; modern browsers block active mixed content.
  • Remember server filesystem case sensitivity: AC_RunActiveContent.js vs ac_runactivecontent.js.
  • Hosts can also block hotlinking or strip/refuse plugins; check host logs.

If Flash-based embedding is the problem, switch to the modern YouTube iframe player (HTML5). Example template:

<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

References: Adobe Flash end-of-life and browser blocking details are on the Adobe site, YouTube recommends the iframe player (see the IFrame Player API), and mixed-content rules are explained on MDN. If the helper script is missing but you need to keep the old approach temporarily, verify the SWFObject/AC script is uploaded and the path matches exactly (case included).

Can we see it live on your website?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.