-1

We have the following two iFrames:

<iframe width="560" height="315" src="https://www.youtube.com/embed/DmiMpABb804" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe src="https://open.spotify.com/embed/track/39LLxExYz6ewLAcYrzQQyP" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>

The YouTube iFrame has, "Watch on YouTube" at the bottom left corner. This redirects the user to YouTube.

The Spotify iFrame has the 'Spotify logo' on top right corner, that redirects the user to Spotify.

Our Aim: Nothing happens when the user clicks/taps on either of these.


Directly open the embed players here:

Varun
  • 73
  • 1
  • 10
  • This can't be controlled from our side. You'd need to check YT and Spotify's documentation for that. You can use [modest branding for YouTube](https://developers.google.com/youtube/player_parameters#modestbranding) but with the some [conditions](https://stackoverflow.com/questions/40353582/modestbranding-not-working-for-youtube-embed). – lastman93 May 26 '21 at 19:15
  • @omkarbhagat Okay. I wasn't aware of modest branding, thank you for educating me. Can't we do something to completely block our website from redirecting? It's harsh actually. Is there a way to restrict certain divs from redirecting? – Varun May 26 '21 at 20:23
  • @omkarbhagat Perhaps block redirects to certain domains? – Varun May 26 '21 at 20:28

1 Answers1

-1

You can check out a video CDN service called Swarmify, and I think more video CDN's are working on this, but Swarmify (I have no affiliation) essentially recode and host the video which is not ideal for all.

Path
  • 19
  • 6
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/33091634) – chrslg Nov 07 '22 at 18:02