David Mennenoh
David Mennenoh

Reputation: 290

Flowplayer cannot get autoplay working

I have a div like so for containing flowplayer:

<div id="vidPlayer">
  <div class="flowplayer" id="flowplayer">
    <video autoplay>
      <source type="video/mp4" src="media/video/Lesson1.mp4">
    </video>
  </div>
</div>

That is just a place holder. Later, I load a video into the player with JS like:

      var api = flowplayer();
      api.load([
        { mp4:  "media/video/Lesson2.mp4" },
        { webm: "media/video/Lesson2.webm" }
      ]);
    
The video loads fine, but I have to click it to begin play.

Upvotes: 0

Views: 1340

Answers (1)

Amit Singh
Amit Singh

Reputation: 134

Try this code

clip: { autoPlay: true }

Upvotes: 0

Related Questions