Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
videoタグ再生後poster再表示[JS]
<script >
$( window ).ready(function(){
var video = document.getElementsByTagName('video')[0];
video.addEventListener('ended', function() {
video.load();
video.autoplay=false;
}, false);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.