コード例 #1
0
        private void unit_ActiveSourceChanged(object sender, EventArgs e)
        {
            AdSequencingPayload activeAdPod = sender as AdSequencingPayload;

            if (activeAdPod.ActiveSource == null)
            {
                ProcessNextAdInQueue(activeAdPod.AdQueue);
            }
        }
コード例 #2
0
        private AdSequencingPayload TriggerAd(IAdSequencingTrigger Trigger)
        {
            var activeAdPod = new AdSequencingPayload(Trigger);

            activeAdPod.WasAtLivePosition = player.IsMediaLive && player.IsPositionLive;
            activeAdPod.ActiveSource      = ProcessNextAdInQueue(activeAdPod.AdQueue);
            if (activeAdPod.ActiveSource != null)
            {
                return(activeAdPod);
            }
            else
            {
                return(null);
            }
        }