Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1580

General Questions/New to Joomla! 5.x • Re: Issue with iframe code that worked in joomla 3 but doesnt work in joomla 4 or 5

$
0
0
Iframes are not ideal, (and are security risks), and you should probably use a more modern method to embed a video such as HTML5's <video> tag or use a plugin from the extension directory for inserting video.

However, the full-screen option should only be shown when the video plays, such as with You Tube, you can see its video size options along the bottom of the video screen.(full, cinema, mini or stream to TV etc).

Joomla is known for removing HTML like iframes, for security reasons. You can prevent that in the text filtering options (global configuration).

Can we see your site that should contain that video? Perhaps the video provider simply doesn't allow iFrame embedding? Or your browser is set to block iframes, or Joomla is removing that code from your page.

That said, here's an example of You Tube's 'embed' code:

Code:

<iframe width="560" height="315" src="https://www.[[youtube]].com/embed/2p1AWvp2bx4?si=34TOjZ7DSbITcxdG" 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>
.

See if your code matches that, or that you're setting the things correctly. Note "allowfullscreen" doesn't have "=true" following it.

Sorry - long-winded reply for something that should be fairly simple 🤔

Statistics: Posted by AMurray — Wed May 08, 2024 9:47 pm



Viewing all articles
Browse latest Browse all 1580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>