UNPKG

vast-player-react

Version:

A React Component That Plays an Inline VAST 4.0 Ad

73 lines 4.01 kB
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <VAST version="4.0"> <Ad id="abc123" sequence="0"> <Wrapper> <VASTAdTagURI>http://localhost:8080/test/data/inline-test.xml</VASTAdTagURI> <AdSystem version="1.0">Shibby Service</AdSystem> <Impression>http://localhost:8080/impression</Impression> <Pricing model="CPM" currency="USD">4.00</Pricing> <Survey type="text/javascript">https://localhost:8080/survey.js</Survey> <Extensions/> <ViewableImpression> <Viewable>https://localhost:8080/viewable</Viewable> <NotViewable>https://localhost:8080/notViewable</NotViewable> <ViewUndetermined>https://localhost:8080/notDetermined</ViewUndetermined> </ViewableImpression> <AdVerification/> <Creatives> <Creative adId="abc123" sequence="0" apiFramework="iab-api"> <UniversalAdId idValue="unknown">unknown</UniversalAdId> <CreativeExtensions> <CreativeExtension> <Custom>this is custom stuff</Custom> </CreativeExtension> </CreativeExtensions> <Linear> <Duration>00:00:30</Duration> <TrackingEvents> <Tracking event="creativeView">http://localhost:8080/creativeView</Tracking> <Tracking event="start">http://localhost:8080/start</Tracking> <Tracking event="midpoint">http://localhost:8080/midpoint</Tracking> <Tracking event="firstQuartile">http://localhost:8080/firstQuartile</Tracking> <Tracking event="thirdQuartile">http://localhost:8080/thirdQuartile</Tracking> <Tracking event="complete">http://localhost:8080/complete</Tracking> </TrackingEvents> <VideoClicks> <ClickThrough>http://localhost:8080/clickThrough</ClickThrough> <ClickTracking>http://localhost:8080/clickTracking</ClickTracking> </VideoClicks> <MediaFiles> <MediaFile delivery="progressive" type="video/mp4" bitrate="600" width="1280" height="720" scalable="true" maintainAspectRatio="true">http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_stereo.ogg</MediaFile> </MediaFiles> <AdParameters><![CDATA[qs=test&reddit=true]]></AdParameters> <Icons> <Icon>http://adchoices.com</Icon> </Icons> </Linear> </Creative> <Creative AdID="123-Companion"> <CompanionAds> <Companion width="1280" height="820" assetWidth="1280" assetHeight="820"> <HTMLResource><![CDATA[http://localhost:8080/test/data/test-companion.html]]></HTMLResource> <TrackingEvents> <Tracking event="creativeView">http://localhost:8080/companionTracking</Tracking> </TrackingEvents> </Companion> <Companion width="1280" height="820" assetWidth="1280" assetHeight="820"> <IFrameResource><![CDATA[http://localhost:8080/test/data/test-iframe.html]]></IFrameResource> </Companion> <Companion width="1280" height="820" assetWidth="1280" assetHeight="820"> <StaticResource creativeType="image/jpeg"><![CDATA[http://localhost:8080/test/data/banner1280x100.png]]></StaticResource> <StaticResource creativeType="application/json"><![CDATA[http://localhost:8080/test/data/test-alert.js]]></StaticResource> <StaticResource creativeType="text/css"><![CDATA[http://localhost:8080/test/data/test-css.css]]></StaticResource> <StaticResource creativeType="test/test"><![CDATA[http://localhost:8080/test/data/fail.test]]></StaticResource> <TrackingEvents> <Tracking event="creativeView">http://localhost:8080/companionTracking</Tracking> </TrackingEvents> </Companion> </CompanionAds> </Creative> </Creatives> </Wrapper> </Ad> </VAST>