how the embed video plays.pauses pretty much relies on its dimensions/placement of the youtube play button itself; so if it's redirecting you to YouTube, it is most likely because the iframe 'box' is too small and you are clicking the uploader's link rather than the play button
i would actually suggest increasing the height/width and then placing the iframe into another div with the overflow:hidden element and dimensions; that way, you can cut off the excess links and just keep the play button!
this is a very brief example but you can adjust anything needed!
how the embed video plays.pauses pretty much relies on its dimensions/placement of the youtube play button itself; so if it's redirecting you to YouTube, it is most likely because the iframe 'box' is too small and you are clicking the uploader's link rather than the play button
i would actually suggest increasing the height/width and then placing the iframe into another div with the overflow:hidden element and dimensions; that way, you can cut off the excess links and just keep the play button!
this is a very brief example but you can adjust anything needed!
(and also, when you are finished, set the iframe opacity to 0.0001 instead of opacity:0 as that may make the video unclickable by default)
1 year, 6 months ago
1 year, 6 months ago