Skip to content

Commit

Permalink
Merge pull request googleads#76 from shawnbuso/issue54
Browse files Browse the repository at this point in the history
Fixes googleads#54 - using IMA player detection
  • Loading branch information
shawnbuso committed Apr 20, 2015
2 parents 82effe5 + 41f8931 commit 0c03ed1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/videojs.ima.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,11 @@
countdownDiv.style.display = showCountdown ? 'block' : 'none';
}

/**
* Current plugin version.
*/
var VERSION = '0.2.0';

/**
* Stores user-provided settings.
*/
Expand Down Expand Up @@ -865,6 +870,9 @@
adsLoader.getSettings().setLocale(settings.locale);
}

adsLoader.getSettings().setPlayerType('videojs-ima');
adsLoader.getSettings().setPlayerVersion(VERSION);

adsLoader.addEventListener(
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
player.ima.onAdsManagerLoaded_,
Expand Down

0 comments on commit 0c03ed1

Please sign in to comment.