Skip to content

Commit

Permalink
fix: Fixed player version reporting. (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbuso committed Dec 13, 2017
1 parent c833a39 commit c176781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdk-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* https://www.github.com/googleads/videojs-ima
*/

import version from '../package.json';
import pkg from '../package.json';

/**
* Implementation of the IMA SDK for the plugin.
Expand Down Expand Up @@ -184,7 +184,7 @@ SdkImpl.prototype.initAdObjects = function() {
}

this.adsLoader.getSettings().setPlayerType('videojs-ima');
this.adsLoader.getSettings().setPlayerVersion(version);
this.adsLoader.getSettings().setPlayerVersion(pkg.version);
this.adsLoader.getSettings().setAutoPlayAdBreaks(this.autoPlayAdBreaks);

this.adsLoader.addEventListener(
Expand Down

0 comments on commit c176781

Please sign in to comment.