Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Latest commit

 

History

History
25 lines (22 loc) · 534 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 534 Bytes

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/