Video Cloner
About this app
Clone and split a video into multiple tiles.
Video Cloner
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<title>Video Cloner</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="Clone and split a video into multiple tiles.">
<meta name="keywords" content="video cloner, video splitter, video tiles, youtube video">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Press Start 2P', cursive;
background: #0d6efd;
color: #fff;
text-align: center;
}
.video-tile {
position: relative;
display: inline-block;
overflow: hidden;
margin: 2px;
}
.video-tile iframe {
pointer-events: none;
}
#main-container {
padding-top: 20px;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
const videoUrl = 'https://www.youtube.com/embed/d7i37ZVKs1g';
const cloneCount = 8261;
const $container = $('#main-container');
function createVideoTiles(count) {
for (let i = 0; i < count; i++) {
const $tile = $('<div>', { class: 'video-tile' });
const $iframe = $('<iframe>', {
src: videoUrl,
frameborder: 0,
allow: 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture',
allowfullscreen: true
});
$tile.append($iframe);
$container.append($tile);
}
}
function adjustVideoTiles() {
const width = Math.sqrt($container.width());
$('.video-tile').css({
width: width,
height: width
});
$('iframe').css({
width: width * Math.sqrt(cloneCount),
height: width * Math.sqrt(cloneCount)
});
}
createVideoTiles(cloneCount);
adjustVideoTiles();
$(window).resize(adjustVideoTiles);
});
</script>
</head>
<body>
<div id="main-container" class="container">
<!-- Video tiles will be generated here -->
</div>
</body>
</html>
NEW APPS
These are apps made by the community!