Not Providing Milkshakes

    bel-video-element

    1.0.0 • Public • Published

    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

    Keywords

    Install

    npm i bel-video-element

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • fraserxu