Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ewal committed May 16, 2014
1 parent 4c6d78a commit 73d325c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ bower install bg-video
## Test for HTML5 video support

```javascript
if($.supportsVideo()) {
// initialize code
if($.supportsVideo()) {
// initialize code
}
```

Expand All @@ -31,15 +31,18 @@ $(function() {
'http://techslides.com/demos/sample-videos/small.mp4',
'http://techslides.com/demos/sample-videos/small.webm',
'http://techslides.com/demos/sample-videos/small.ogv'
]
],
cssPosition: 'absolute', // static|absolute|fixed
alignment: 'top left', // top left|top right|bottom left|bottom right
hideBodyScrollbars: true
}, {
autoplay: 'autoplay',
controls: false, // default: 'controls'
loop: 'loop',
muted: 'muted',
poster: null, // default: url to image
preload: 'auto' // auto | metadata | none
}
}
);
}
});
Expand Down

0 comments on commit 73d325c

Please sign in to comment.