A video.js plugin that allows a configurable share screen during playback.
On your web page:
<script src="video.js"></script>
<script src="src/js/videojs-share.js"></script>
<script src="src/js/ui/share-overlay.js"></script>
<script src="src/js/ui/share-control-bar-button.js"></script>
<script>
var player = videojs('video');
// See Plugin code for model schema
var optionalShareObject = {};
player.share(optionalShareObject);
player.play();
</script>
This is a demo repo for Brightcove consideration. Please see the example.html. If using the Connect server grunt task, it should open at the following url:
http://localhost:9999/example.html
Some notes are as follows;
-
This plugin requires a compiled SWF for the clipboard functionality. This works across desktop but mobile will still need some workaround. Clipboard API in browsers not universally supported yet.
-
To test the clipboard API, click on either the direct link or embed code then paste elsewhere.
-
The plugin has the following grunt commands;
grunt mxmlc
grunt connect
grunt dist
Fired from player to show the share overlay screen.
Fired from player to hide the share overlay screen.