Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.
/ video-crafty.js Public archive

Crafty Video Element 📽

License

Notifications You must be signed in to change notification settings

qertis/video-crafty.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

video-crafty.js

HTML5 Video module

How to use:

Insert script video-crafty.js on your html5 page After Crafty.init write for FullScreenStyle:

  Crafty.e('Video').attr({
    poster: 'your_poster.jpg', //optional
    videos: {
      webm: 'your_video.webm',//optional
      mp4: 'your_video.mp4'
    },
    once: true //optional (default is false)
  }).createVideo()
    .setFullScreenStyle() // or setInnerScreenStyle
  ;

TODO:

InnerVideo

DEMO:

http://codepen.io/qertis/full/mIgzf/