LoginSignup
1
2

More than 5 years have passed since last update.

vimeoコントロールなし自動再生メモ

Posted at

vimeoコントロールなし自動再生メモ

script読み込み

<script src="https://player.vimeo.com/api/player.js"></script>

動画読み込みの準備

js
 var player = new Vimeo.Player($('#player'), {
    id: ID,
    autopause: false,
    muted: true,
    loop: true,
    background: true
  });

apiで自動再生にする場合
optionsのmutedは必ず設定しないと、自動再生にならないことに注意!

ボタンの設定をしない場合はbackgroundの設定をする
こうすることで、ボタンなどの装飾がないまま、動画の制御が出来る

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2