0.0.4 • Published 8 years ago

autoplay v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

YouPlay

A simple way to control play and pause of youtube videos on mobile devices.

Usage

It’s simple. You can create an element with these data attributes and then magic happens. :D

<div class=“example”
  data-video-id="YR5ApYxkU-U"
  data-you-play=".button-play"
  data-you-pause=".button-pause"
  data-you-stop=".button-stop">Loading...</div>

Why?

Because it’s lightweight, fast, easy to use and prevents you waste your time.

There’s a lot of features to add on this package, but for now, that's it.

If you have an idea or an issue with this package, please create a fork and send a pull request or open an issue. This would help me a lot.