NonLinear ads pause the player.

Apr 16, 2013 at 10:38 AM
Edited Apr 16, 2013 at 10:39 AM
Hello,

I might have found a bug, but I'm not sure. Probably I'm doing something wrong. The situation is very simple; I have a non-linear ad (overlay image) which when shown pauses the player.

MAST
<?xml version="1.0" encoding="utf-8" ?>
<MAST xsi:schemaLocation="http://openvideoplayer.sf.net/mast http://openvideoplayer.sf.net/mast/mast.xsd" xmlns="http://openvideoplayer.sf.net/mast" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <triggers>
    <trigger id="overlay" description="overlay ad">
      <startConditions>
        <condition type="property" name="Position" value="00:00:10.0" operator="GEQ" />
      </startConditions>
      <endConditions>
        <condition type="event" name="OnItemEnd"/>
      </endConditions>
      <sources>
        <source uri="vast_overlay.xml" format="vast">
          <sources />
          <targets>
            <target type="overlay" region="UpperVideoArea" />
          </targets>
        </source>
      </sources>
    </trigger>
  </triggers>
</MAST>
VAST
<?xml version="1.0" encoding="utf-8"?>
<VAST version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="oxml.xsd">
  <Ad id="ZAPADS">
    <InLine>
      <AdSystem version="2.0 alpha">ZAPADS</AdSystem>
      <AdTitle>Unknown</AdTitle>
      <Description>Unknown</Description>
      <Survey>http://mySurveyURL/survey</Survey>
      <Error>Success</Error>
      <Impression id="Atlas"><![CDATA[some link here]]></Impression>

      <Creatives>

        <!-- Non linear add that plays with the main video or other ads. -->
        <Creative sequence="0" id="overlay" AdID="">
          <NonLinearAds>
            <NonLinear id="overlay" width="468" height="60">

              <!-- Image to show. .png and .jpeg/.jpg are allowed -->
              <StaticResource creativeType="image/jpg"><![CDATA[some url to an image]]></StaticResource>

              <!-- New browser window will be opened when user clicks on the ad -->
              <NonLinearClickThrough><![CDATA[some url to an image]]></NonLinearClickThrough>

              <!-- Events to track. In this case URL will be called on video start -->
              <TrackingEvents>
                <Tracking event="start"><![CDATA[some url to an image]]></Tracking>
              </TrackingEvents>
            </NonLinear>
          </NonLinearAds>
        </Creative>
      </Creatives>
      
      <Extensions>
        <Extension />
      </Extensions>
    </InLine>
  </Ad>
</VAST>
The image shows ok on the 10th second but player gets paused. I have made a quick fix by removing
Player.ActiveMediaPlugin.Pause();
from "ExecutePayload" methond in "AdHandler.cs".

And to stop flickering I have also removed
Player.ActiveMediaPlugin.VisualElement.IfNotNull(v => v.Visibility = System.Windows.Visibility.Collapsed);
from the same method in the same class.

Version of the player - 2.7 (Silverlight).