aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorArthur Hulsman <a.hulsman@orangegames.com>2018-01-18 12:31:10 +0100
committerArthur Hulsman <a.hulsman@orangegames.com>2018-01-18 12:31:10 +0100
commit8af312fe3cfe55c5003b645f1fcfe23601fc435f (patch)
tree0746562ce2a48a9ccc727827374191d59e9fd434 /src/js
parentd87ada4f58c71299f38ed2764da04a77312faf93 (diff)
downloadplyr-8af312fe3cfe55c5003b645f1fcfe23601fc435f.tar.lz
plyr-8af312fe3cfe55c5003b645f1fcfe23601fc435f.tar.xz
plyr-8af312fe3cfe55c5003b645f1fcfe23601fc435f.zip
Updated pause and resume content methods within Ads class.
Diffstat (limited to 'src/js')
-rw-r--r--src/js/plugins/ads.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/js/plugins/ads.js b/src/js/plugins/ads.js
index bdd07d34..2e7b1e93 100644
--- a/src/js/plugins/ads.js
+++ b/src/js/plugins/ads.js
@@ -284,7 +284,7 @@ class Ads {
// for example display a pause button and remaining time. Fired when content should
// be paused. This usually happens right before an ad is about to cover the content.
this.handleEventListeners('CONTENT_PAUSE_REQUESTED');
- this.pause();
+ this.pauseContent();
break;
case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:
// This event indicates the ad has finished - the video player can perform
@@ -292,7 +292,7 @@ class Ads {
// Fired when content should be resumed. This usually happens when an ad finishes
// or collapses.
this.handleEventListeners('CONTENT_RESUME_REQUESTED');
- this.resume();
+ this.resumeContent();
break;
case google.ima.AdEvent.Type.LOADED:
// This is the first event sent for an ad - it is possible to determine whether the
@@ -395,7 +395,7 @@ class Ads {
/**
* Resume our video.
*/
- resume() {
+ resumeContent() {
this.player.debug.log('Resume video.');
// Hide our ad container.
@@ -413,7 +413,7 @@ class Ads {
/**
* Pause our video.
*/
- pause() {
+ pauseContent() {
this.player.debug.log('Pause video.');
// Show our ad container.
@@ -436,7 +436,7 @@ class Ads {
this.player.debug.warn('Ad cancelled.');
// Pause our video.
- this.resume();
+ this.resumeContent();
// Tell our instance that we're done for now.
this.handleEventListeners('ERROR');