VideoJS Embed Plugin
Displays an Embed button in the control bar which triggers an overlay showing the embed code for a media source.
- Clone, fork or download via Bower
- Include
videojs.embed.js
in your document, either compiled with your application or via the<head>
. - Initialize the VideoJS Player with the Embed Plugin like the configuration example.
- When your media source is embedable, you should see the cast button in the controlbar.
videojs("my_player_id", {
plugins: {
embed: {
embeddable: true,
location: '//embed.theguardian.com/embed/video/my-video'
}
}
});