Example #1
0
        void ActiveMediaPlugin_AdProgressUpdated(IAdaptiveMediaPlugin mp, IAdContext adContext, AdProgress progress)
        {
            switch (progress)
            {
            case AdProgress.Start:
                startTime = DateTime.Now;
                OnAdVideoStart();
                break;

            case AdProgress.FirstQuartile:
                OnAdVideoFirstQuartile();
                break;

            case AdProgress.Midpoint:
                OnAdVideoMidpoint();
                break;

            case AdProgress.ThirdQuartile:
                OnAdVideoThirdQuartile();
                break;

            case AdProgress.Complete:
                OnAdVideoComplete();
                break;
            }
        }
        private void MediaPlugin_AdProgressUpdated(IAdaptiveMediaPlugin mediaPlugin, IAdContext adContext, AdProgress adProgress)
        {
            SendLogEntry(KnownLogEntryTypes.AdProgressUpdated,
                extendedProperties: new Dictionary<string, object> { { "Progress", adProgress.ToString() } });

            AdProgressUpdated(adContext, adProgress);

            AdvertisementProgressChanged.IfNotNull(i => i(this, new AdvertisementProgressChangedInfo { AdContext = adContext, AdProgress = adProgress }));
        }
 void ActiveMediaPlugin_AdProgressUpdated(IAdaptiveMediaPlugin mp, IAdContext adContext, AdProgress progress)
 {
     switch (progress)
     {
         case AdProgress.Start:
             startTime = DateTime.Now;
             OnAdVideoStart();
             break;
         case AdProgress.FirstQuartile:
             OnAdVideoFirstQuartile();
             break;
         case AdProgress.Midpoint:
             OnAdVideoMidpoint();
             break;
         case AdProgress.ThirdQuartile:
             OnAdVideoThirdQuartile();
             break;
         case AdProgress.Complete:
             OnAdVideoComplete();
             break;
     }
 }
 partial void AdProgressUpdated(IAdContext adContext, AdProgress adProgress);