Skip to content

Instantly share code, notes, and snippets.

@Pseric
Created October 27, 2016 04:06
Show Gist options
  • Select an option

  • Save Pseric/2a1f963d8ae85ec658af06f0e08dc01c to your computer and use it in GitHub Desktop.

Select an option

Save Pseric/2a1f963d8ae85ec658af06f0e08dc01c to your computer and use it in GitHub Desktop.
<div data-video="VIDEO_ID"
data-autoplay="0"
data-loop="1"
id="youtube-audio">
</div>
<script src="https://www.youtube.com/iframe_api"></script>
<script src="https://cdn.rawgit.com/labnol/files/master/yt.js"></script>
@kingdomofs

Copy link
Copy Markdown

I tried using this code to add multiple videos on a page but it doesn't work? can that functionality be added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment