audiojs icon indicating copy to clipboard operation
audiojs copied to clipboard

autoplay does not allow pausing

Open fchampreux opened this issue 8 years ago • 5 comments

Trying from provided example 3 http://kolber.github.io/audiojs/demos/test3.html I noticed that the autoplay option is efficient, but clicking on the Pause button does not stop playing the music. I am using Firefox 34.0 on Linux Mint Debian Edition.

fchampreux avatar Jun 29 '16 05:06 fchampreux

I'm having exactly the same issue with FF50.1 and latest Chrome. This is happening both in examples and when I write my own code.

bodrovis avatar Dec 23 '16 10:12 bodrovis

same problem(

aysenz avatar Aug 31 '17 23:08 aysenz

html5 autoplayes how to autoplay using js api?

aysenz avatar Sep 01 '17 00:09 aysenz

Guys, the solution was:

<script> audiojs.events.ready(function() { var as = audiojs.create(document.getElementById('about_subsidy'), { autoplay: true }); }); </script> <audio id="about_subsidy" src="https://ayzakh.bitbucket.io/about_subsidy.mp3"></audio>

aysenz avatar Sep 01 '17 00:09 aysenz

So why i need to read source code? I wasn't found documentation

aysenz avatar Sep 01 '17 00:09 aysenz