A
A
aarty202018-07-17 20:09:45
JavaScript
aarty20, 2018-07-17 20:09:45

Why is autoplay not working in vimeo js api?

I launch the video according to the official documentation , but the player ignores both player.play(); and autoplay: true in the config.

But, if you load another video via loadVideo() in the same player, then autoplay works.
Demo here: jsfiddle.net/b2eLc530/32

Maybe someone came across how to immediately start the video?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Danil Sapegin, 2018-07-17
@aarty20

browser may disable autoplay

P
Paul Nice, 2018-07-18
@Paul_Nice

This is more of a Google question.
Perhaps meticulous developers will find workarounds.

T
ttm, 2020-10-30
@TouchTheMind

The browser disables autoplay by default.
You can start.
From the beginning you need to mute the player.

player.setVolume(0);
player.play();

Unfortunately it won't work on iOS without user focus on the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question