From fd0965e8ffb3390d053a176a6bc4b56c66bb8dc0 Mon Sep 17 00:00:00 2001 From: Alexander_Afanasev Date: Wed, 26 Dec 2018 01:14:18 +0300 Subject: [PATCH] Added listener for PLAY_STARTED --- js/ooyala_ssai.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ooyala_ssai.js b/js/ooyala_ssai.js index 5fbac7d..8b02fc6 100644 --- a/js/ooyala_ssai.js +++ b/js/ooyala_ssai.js @@ -161,6 +161,11 @@ OO.Ads.manager(function(_, $) amc.addPlayerListener(amc.EVENTS.FULLSCREEN_CHANGED, _.bind(this.onFullscreenChanged, this)); amc.addPlayerListener(amc.EVENTS.AD_VOLUME_CHANGED, _.bind(this.onAdVolumeChanged, this)); amc.addPlayerListener(amc.EVENTS.MUTE_STATE_CHANGED, _.bind(this.onMuteStateChanged, this)); + amc.addPlayerListener(amc.EVENTS.PLAY_STARTED, _.bind(this.onPlayStarted, this)); + }; + + this.onPlayStarted = function () { + _sendMetadataRequest(); }; /**