Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26682

Re: Audio autoplay again

From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.javascript
Subject Re: Audio autoplay again
Date 2015-01-24 02:29 +0100
Organization solani.org
Message-ID <m9usi7$p1c$1@solani.org> (permalink)
References <7qudnc66lNbiFVzJnZ2dnUVZ8iednZ2d@westnet.com.au> <m9ui12$jgh$1@solani.org> <qeidneZjpvPgbV_JnZ2dnUVZ8sudnZ2d@westnet.com.au>

Show all headers | View raw


Andrew Poulos wrote:

> Currently I'm testing calling play() without setting autoplay and then
> testing for onplay because it seems to me that devices that let you
> start playback using code also allow autoplay.

If I'm not mistaken, "all" browsers accept play(), if it is called on
direct user interaction, e.g.

  button.onclick = function () {
      audio.play();
  };

should work "everywhere" (e.g. on iOS), whereas

  window.onload = function () {
      audio.play();
  };

does not necessarily.

-- 
Christoph M. Becker

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Audio autoplay again Andrew Poulos <ap_prog@hotmail.com> - 2015-01-23 10:26 +1100
  Re: Audio autoplay again Scott Sauyet <scott.sauyet@gmail.com> - 2015-01-23 05:36 -0800
    Re: Audio autoplay again Andrew Poulos <ap_prog@hotmail.com> - 2015-01-24 11:56 +1100
  Re: Audio autoplay again Dr.Kral@nyc.rr.com - 2015-01-23 17:14 -0500
    Re: Audio autoplay again Andrew Poulos <ap_prog@hotmail.com> - 2015-01-24 11:36 +1100
  Re: Audio autoplay again "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-23 23:30 +0100
    Re: Audio autoplay again Andrew Poulos <ap_prog@hotmail.com> - 2015-01-24 12:02 +1100
      Re: Audio autoplay again "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-24 02:29 +0100
        Re: Audio autoplay again Andrew Poulos <ap_prog@hotmail.com> - 2015-01-24 13:08 +1100
  Re: Audio autoplay again Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-24 15:29 +0100
    Re: Audio autoplay again Andrew Poulos <ap_prog@hotmail.com> - 2015-01-26 12:30 +1100
  Re: Audio autoplay again "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-01-26 12:11 -0800
    Re: Audio autoplay again Andrew Poulos <ap_prog@hotmail.com> - 2015-01-27 08:22 +1100
      Re: Audio autoplay again "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-01-26 13:45 -0800
        Re: Audio autoplay again Andrew Poulos <ap_prog@hotmail.com> - 2015-01-27 12:05 +1100
          Re: Audio autoplay again Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-01-27 13:07 +0100
      Re: Audio autoplay again "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-01-26 13:52 -0800

csiph-web