I have an autoplay video on my site which also serves as a link to another page. But now I found a problem in the power saving mode of the iPhone. Clicking on the video plays the video. But when I click again nothing happens. However, I would like the integrated link to open.
My code:
video {
width: 80vw;
height: auto;
margin-left: auto;
margin-right: auto;
display: block;
}
<body>
<a href="http://www.google.com">
<video autoplay loop playsinline src="https://www.w3schools.com/html/mov_bbb.mp4" target="_self"></video>
</a>
</body>
Can you help me so that the link also opens in power saving mode?
You can accomplish this with JS and an
onclickevent.404.404 is not a real URL, it is just to produce a 404 error and demonstrate that the code redirects.