How do I get youtube to work with iFrame?

0 favourites
  • 4 posts
From the Asset Store
_______ Huge collection of metal fixtures ________
  • Using C3 online version.

    Rumble embeded link works in preview using chrome.

    Youtue embeded link does not work in preview using chrome.

    The iframe displays "www.youtube.com refused to connect" with the youtube link.

    Any thoughts?

  • My code is stupid simple to test. There must be a setting I'm missing or some security issue?

  • You're using the wrong url format. On the Youtube video page, when you click the share button, you need to choose Embed and use that url. The same goes for Vimeo.

    It will look like this...

    "https://www.youtube.com/embed/yWHamO_OUj4"

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Solved:

    Thanks for the pointer. Was running in circles.

    Just incase anyone else has this issue.

    Youtube embed link example:

    <iframe width="560" height="315" src=

    "https://www.youtube.com/embed/uyraC7ajsfg"

    frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

    iFrame: Navagate to: "https://www.youtube.com/embed/uyraC7ajsfg"

    Vimeo is the same format.

    Rumble format works fine.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)