Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bel-video-element

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bel-video-element

A simple video element created with bel

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 13 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc