Skip to content

An HTML-based framework for creating interactive videos

Notifications You must be signed in to change notification settings

raphv/playalong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PlayAlong.js

A basic framework for creating interactive videos

Add interactive elements to HTML videos by adding a few HTML attributes to your document

Use

Use the HTML video element in the classic way:

<video id="my-video" controls>
  <source src="my-film.mp4" type="video/mp4">
</video>

Use the video-id attribute to associate other HTML elements with the video

Use the video-overlay property to turn an HTML element into an overlay

<div video-overlay>
  <p>This is an overlay</p>
</div>

Use video-start and video-end to make HTML elements appear and/or disappear at specific times in the video (these can be overlays too, or can be anywhere in the documents)

<div video-id="my-video" video-start="00:15" video-end="07:30">
  <p>This text is visible from the 00:15 until 07:30</p>
</div>

Use video-play to create a Play button

<button video-id="my-video" video-play>Play or Pause</button>

Compatibility

Tested with Firefox 65, Chrome 72.

Compatible with Bootstrap (see Example file).

Future improvements

More options for overlay positioning.

Automatic generation of a timeline.

More custom controls.

Use of a Video Player library for compatibility with FLV, YouTube, Vimeo, etc.

Please contact me for any suggestions!

About

An HTML-based framework for creating interactive videos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published