New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

embed-plugin-media

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embed-plugin-media

An embed-js plugin to embed audio, video or images.

latest
Source
npmnpm
Version
5.0.4
Version published
Weekly downloads
161
-3.59%
Maintainers
1
Weekly downloads
 
Created
Source

embed-plugin-highlight

A plugin that can be used to embed video, audio or image those are supported by the browser.

Installation

npm i -S embed-js embed-plugin-media

CDN

https://unpkg.com/embed-plugin-media

Usage

Embeds video, audio or image those are supported by the browser.

import EmbedJS from 'embed-js'
import media from 'embed-plugin-media'

const x = new EmbedJS({
  input: document.getElementById('element'),
  plugins: [
  media({
    regex: /regex/gi, // in case you want to define a custom regex
    template(args) {
      // optional template
    },
    onLoad(element) {} // in case you want to do something when the component has loaded on the client.
   })
 ]
})

You can use video.js or plyr by applying it in the onLoad() method.

License

MIT @ Ritesh Kumar

FAQs

Package last updated on 17 Jun 2019

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