Package Exports
- bel-video-element
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bel-video-element) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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