Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
/ videojs-embed Public archive

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

Notifications You must be signed in to change notification settings

guardian/videojs-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
        }
    }
});

About

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

Resources

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •