diff --git a/src/plugin.js b/src/plugin.js index e2cd4c6..099b8f4 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -61,7 +61,7 @@ const downloadButton = function(options) { }; // Register the plugin with video.js. -videojs.plugin('downloadButton', downloadButton); +videojs.registerPlugin('downloadButton', downloadButton); // Include the version number. downloadButton.VERSION = '__VERSION__';