bel-video-element
v1.0.0
Published
A simple video element created with bel
Downloads
4
Readme
bel-video-element
A simple video element with bel
Install
$ npm i bel-video-element --save
Usage
var Video = require('bel-video-element')
var bel = require('bel')
function render () {
var opts = {
poster: 'example/sources/rides.png',
mp4Src: 'example/sources/rides.mp4'
}
return bel`${Video(opts)}`
}
var app = render()
document.body.appendChild(app)
Options
Width
480 - The width of the videoStyles
object - The style objectControls
boolean - Whether to show controls, default to trueposter
String - The src of the poster urlmp4Src
String - Mp4 format srcoggSrc
String - ogg format srcwebmSrc
String - webm format src
License
(c) 2016 Fraser Xu. MIT License