diff --git a/src/plugin.js b/src/plugin.js index 666f654..e723c9b 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -10,6 +10,7 @@ import { PLAYREADY_KEY_SYSTEM } from './ms-prefixed'; import { arrayBuffersEqual, arrayBufferFrom } from './utils'; +import {version as VERSION} from '../package.json'; export const hasSession = (sessions, initData) => { for (let i = 0; i < sessions.length; i++) { @@ -409,4 +410,7 @@ const registerPlugin = videojs.registerPlugin || videojs.plugin; registerPlugin('eme', eme); +// Include the version number. +eme.VERSION = VERSION; + export default eme;