user2673664 user2673664 -4 years ago 160
iOS Question

iOS 10 video tag with "autoplay muted playsinline" stops background music (spotify)

I am trying to keep playing background music like Spotify playing with playing a inline video with attributs: "autoplay muted playsinline".

<video id="video" muted="muted" autoplay loop muted playsinline >
<source src="video.mp4" type="video/mp4">

window.onload = function () {
var element = document.getElementById('video');
element.muted = "muted";

But when I run this the video is plays inline and autoplaying. But as soon as the video start the background music app is pausing.

Answer Source

Simple answer. You can't.

One solution: is if you remove the sound track from the video. The background music like Spotify DO NOT stop playing.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download