JSPM

bel-video-element

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q15871F
  • License MIT

A simple video element created with bel

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

bel-video-element

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 video
  • Styles object - The style object
  • Controls boolean - Whether to show controls, default to true
  • poster String - The src of the poster url
  • mp4Src String - Mp4 format src
  • oggSrc String - ogg format src
  • webmSrc String - webm format src

License

(c) 2016 Fraser Xu. MIT License