setupAutoplayFailDetection = function setupAutoplayFailDetection() {
                return _this3._setupAutoplayFailDetection();
              }
Set HTML5 media element to autoplay or not. If no argument is specified, by
default it will autoplay.

@method autoplay
@param {Boolean} shouldAutoplay whether the element should autoplay
@chainable
@example
<div><code>
let videoElement;
function setup() {
  noCanvas();
  videoElement = createVideo(['assets/small.mp4'], onVideoLoad);
}
function onVideoLoad() {
  // The media will play as soon as it is loaded.
  videoElement.autoplay();
  videoElement.volume(0);
  videoElement.size(100, 100);
}
</code></div>

<div><code>
let videoElement;
function setup() {
  noCanvas();
  videoElement = createVideo(['assets/small.mp4'], onVideoLoad);
}
function onVideoLoad() {
  // The media will not play untill some explicitly triggered.
  videoElement.autoplay(false);
  videoElement.volume(0);
  videoElement.size(100, 100);
}

function mouseClicked() {
  videoElement.play();
}
</code></div>

@alt
An example of a video element which autoplays after it is loaded.
An example of a video element which waits for a trigger for playing.