Get started with lite-youtube-embed CDN
Apache-2.0 licensed
Lightweight library embeds YouTube videos, no extra Google API features.
Tags:- youtube
- embed
- video
Stable version
Copied!
How to start using lite-youtube-embed CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with lite-youtube-embed CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/lite-youtube-embed@0.3.2/lite-yt-embed.js"></script>
</head>
<body>
<div id="player"></div>
<script>
const player = new LiteYouTube.Player('player', {
height: '390',
width: '640',
playerVars: {
autoplay: 1,
controls: 1,
rel: 0,
showinfo: 0,
modestbranding: 1,
playsinline: 1,
},
videoId: 'YOUR_VIDEO_ID',
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!