私はVimeoでpopcorn.jsを使用しています。プログラムでVimeoビデオを再生したいのですが、Vimeoビデオで基本的なplay()
方法が機能しないようです。
popcorn.js.orgのサンプルコードは私には機能しません。ビデオは「すぐに再生」されません。
document.addEventListener("DOMContentLoaded", function () {
var example = Popcorn.vimeo(
'#video',
'http://player.vimeo.com/video/25107077');
// add a footnote at 2 seconds, and remove it at 6 seconds
example.footnote({
start: 2,
end: 6,
text: "Pop!",
target: "footnotediv"
});
// play the video right away
example.play();
}, false);