javascript - <video> autoplay on chrome android interrupts Spotify -


i work company setting video advertising on mobile , need html5 <video> element. chrome 53 out , supports muted autoplay had great hopes our new video advertisement.

unfortunately complains clients muted video autoplay interrupts spotify (and other background media playback).

is there way around this? our <video> element looks this:

<video width="320" height="180" preload="auto" muted="" autoplay="" webkit-playsinline="" ><source src="....." type="video/mp4"></video> 

i tried setting volume 0 javascript, doesn't seem when muted. (which makes sense).

we want autoplay muted video while keeping background playback enabled.

it current bug in chromium (actively being worked on) video audio track, still muted, initiates mediasession.

a workaround until fix bug use media no audio tracks , should prevent situation.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -