Hey all, my clients are running ads on instagram and they have their website links on ads. The video
Hey all, my clients are running ads on instagram and they have their website links on ads. The video is using the player api - https://atomipage.appworthit.com/atomicplayer2/
If you open the website link in any browser on click of the image on the video it will get played with unmuted. I am using following code:
document.getElementById("atomi-playpause").addEventListener("click", () => {
player.muted = false;
player.play().catch(() => {
player.muted = true;
player.play();
});
document.getElementById("atomi-playpause").style.display = "none"
});
But it is entering the catch block in instagram browser on android only. You can copy paste the above website link in any instagram chat and then open the link and it will get opened in instagram browser. You will notice that the video is playing muted as it is entering the catch block. This is happening only in instagram browser on android.
Can anyone help me with this?
If you open the website link in any browser on click of the image on the video it will get played with unmuted. I am using following code:
document.getElementById("atomi-playpause").addEventListener("click", () => {
player.muted = false;
player.play().catch(() => {
player.muted = true;
player.play();
});
document.getElementById("atomi-playpause").style.display = "none"
});
But it is entering the catch block in instagram browser on android only. You can copy paste the above website link in any instagram chat and then open the link and it will get opened in instagram browser. You will notice that the video is playing muted as it is entering the catch block. This is happening only in instagram browser on android.
Can anyone help me with this?