Skip to content

Commit

Permalink
feat: expose plugin version (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
amtins committed Aug 18, 2022
1 parent 4b330d5 commit 5f9a1ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down Expand Up @@ -409,4 +410,7 @@ const registerPlugin = videojs.registerPlugin || videojs.plugin;

registerPlugin('eme', eme);

// Include the version number.
eme.VERSION = VERSION;

export default eme;

0 comments on commit 5f9a1ea

Please sign in to comment.