Try using autoplay as a method
instead of a flag
. The documentation is not very clear about using it as a flag. As a method I'm totally sure it works, as you can see in this fiddle.
$(document).ready( function() {
var popClip = Popcorn("#sampleClip");
popClip.autoplay();
});
Besides, make sure jQuery and popcorn were actually loaded. I'm also not sure that ..sample.mp4
is actually going to work as a source. Try replacing them by something formatted like this: ../sample.mp4
.