jqyt

A jQuery plug-in for easily working with YouTube videos

Usage no npm install needed!

<script type="module">
  import jqyt from 'https://cdn.skypack.dev/jqyt';
</script>

README

jqyt

jQuery plug-in for the YouTube iFrame API

Basic Example

HTML

<div class="video" style="width:500px;height:300px;"></div>

JavaScript

$( '.video' ).jqyt( { videoId: 'bHQqvYy5KYo' } );

Basic Example : Multiple Videos

HTML

<div class="video" data-jqyt-video-id="bHQqvYy5KYo" style="width:500px;height:300px;"></div>
<div class="video" data-jqyt-video-id="EgeMgjplANY" style="width:500px;height:300px;"></div>

JavaScript

$( '.video' ).jqyt();