Continuous Video Player
About this app
A web app that plays copyright free videos non-stop.
Continuous Video Player
Related apps
Put this on your site
Source
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Continuous Video Player</title>
<meta name="description" content="A web app that plays copyright-free videos non-stop.">
<meta name="keywords" content="video, player, copyright free, continuous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript">
var videoIndex = 0;
var videoList = [];
function fetchVideoList() {
var apiKey = 'YOUR_PIXABAY_API_KEY';
$.get("https://pixabay.com/api/videos/", {
key: apiKey,
per_page: 50,
editors_choice: true
}, function(data) {
videoList = data.hits;
if (videoList.length > 0) {
loadNextVideo();
}
});
}
function loadNextVideo() {
var video = videoList[videoIndex];
var videoUrl = video.videos.large.url;
$('video').attr('src', videoUrl);
videoIndex = (videoIndex + 1) % videoList.length;
}
$(document).ready(function() {
fetchVideoList();
$('video').on('ended', function() {
loadNextVideo();
});
});
</script>
<style>
body {
margin: 0;
padding: 0;
}
video {
width: 100%;
height: 100vh;
}
</style>
</head>
<body>
<video autoplay muted controls></video>
</body>
</html>
NEW APPS
These are apps made by the community!