videojs-embed

A plugin for Video.js that adds a control bar button to toggle an embed code overlay.


Keywords
videojs
License
MIT
Install
bower install videojs-embed

Documentation

VideoJS Embed Plugin

Displays an Embed button in the control bar which triggers an overlay showing the embed code for a media source.

video player

Getting started

  1. Clone, fork or download via Bower
  2. Include videojs.embed.js in your document, either compiled with your application or via the <head>.
  3. Initialize the VideoJS Player with the Embed Plugin like the configuration example.
  4. When your media source is embedable, you should see the cast button in the controlbar.

Configuration example

videojs("my_player_id", {
  	plugins: {
        embed: {
            embeddable: true,
            location: '//embed.theguardian.com/embed/video/my-video'
        }
    }
});