mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Add canned VAST/VMAP ad responses for testing
PiperOrigin-RevId: 303286872
This commit is contained in:
parent
4454520e93
commit
09be441e3d
95
testdata/src/test/assets/ad-responses/midroll.xml
vendored
Normal file
95
testdata/src/test/assets/ad-responses/midroll.xml
vendored
Normal file
@ -0,0 +1,95 @@
|
||||
<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">
|
||||
<vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll">
|
||||
<vmap:AdSource id="preroll-ad-1" allowMultipleAds="false" followRedirects="true">
|
||||
<vmap:VASTAdData>
|
||||
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0">
|
||||
<Ad id="709684336">
|
||||
<InLine>
|
||||
<AdSystem>GDFP</AdSystem>
|
||||
<AdTitle>Preroll</AdTitle>
|
||||
<Description>
|
||||
<![CDATA[ Preroll ad ]]>
|
||||
</Description>
|
||||
<Creatives>
|
||||
<Creative id="57861016576" sequence="1">
|
||||
<Linear>
|
||||
<Duration>00:00:05</Duration>
|
||||
<MediaFiles>
|
||||
<MediaFile id="GDFP" delivery="progressive" width="640" height="360" type="video/mp4" bitrate="450" scalable="true" maintainAspectRatio="true">
|
||||
<![CDATA[
|
||||
file:///android_asset/mp4/preroll-5s.mp4
|
||||
]]>
|
||||
</MediaFile>
|
||||
</MediaFiles>
|
||||
</Linear>
|
||||
</Creative>
|
||||
</Creatives>
|
||||
</InLine>
|
||||
</Ad>
|
||||
</VAST>
|
||||
</vmap:VASTAdData>
|
||||
</vmap:AdSource>
|
||||
</vmap:AdBreak>
|
||||
<vmap:AdBreak timeOffset="00:00:06.000" breakType="linear" breakId="midroll-1">
|
||||
<vmap:AdSource id="midroll-1-ad-1" allowMultipleAds="false" followRedirects="true">
|
||||
<vmap:VASTAdData>
|
||||
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0">
|
||||
<Ad id="710742616">
|
||||
<InLine>
|
||||
<AdSystem>GDFP</AdSystem>
|
||||
<AdTitle>Midroll</AdTitle>
|
||||
<Description>
|
||||
<![CDATA[ Midroll ad ]]>
|
||||
</Description>
|
||||
<Creatives>
|
||||
<Creative id="57861202456" sequence="1">
|
||||
<Linear>
|
||||
<Duration>00:00:05</Duration>
|
||||
<MediaFiles>
|
||||
<MediaFile id="GDFP" delivery="progressive" width="640" height="360" type="video/mp4" bitrate="450" scalable="true" maintainAspectRatio="true">
|
||||
<![CDATA[
|
||||
file:///android_asset/mp4/midroll-5s.mp4
|
||||
]]>
|
||||
</MediaFile>
|
||||
</MediaFiles>
|
||||
</Linear>
|
||||
</Creative>
|
||||
</Creatives>
|
||||
</InLine>
|
||||
</Ad>
|
||||
</VAST>
|
||||
</vmap:VASTAdData>
|
||||
</vmap:AdSource>
|
||||
</vmap:AdBreak>
|
||||
<vmap:AdBreak timeOffset="end" breakType="linear" breakId="postroll">
|
||||
<vmap:AdSource id="postroll-ad-1" allowMultipleAds="false" followRedirects="true">
|
||||
<vmap:VASTAdData>
|
||||
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0">
|
||||
<Ad id="710742616">
|
||||
<InLine>
|
||||
<AdSystem>GDFP</AdSystem>
|
||||
<AdTitle>Postroll</AdTitle>
|
||||
<Description>
|
||||
<![CDATA[ Postroll ad ]]>
|
||||
</Description>
|
||||
<Creatives>
|
||||
<Creative id="57861202456" sequence="1">
|
||||
<Linear>
|
||||
<Duration>00:00:05</Duration>
|
||||
<MediaFiles>
|
||||
<MediaFile id="GDFP" delivery="progressive" width="640" height="360" type="video/mp4" bitrate="450" scalable="true" maintainAspectRatio="true">
|
||||
<![CDATA[
|
||||
file:///android_asset/mp4/postroll-5s.mp4
|
||||
]]>
|
||||
</MediaFile>
|
||||
</MediaFiles>
|
||||
</Linear>
|
||||
</Creative>
|
||||
</Creatives>
|
||||
</InLine>
|
||||
</Ad>
|
||||
</VAST>
|
||||
</vmap:VASTAdData>
|
||||
</vmap:AdSource>
|
||||
</vmap:AdBreak>
|
||||
</vmap:VMAP>
|
26
testdata/src/test/assets/ad-responses/preroll.xml
vendored
Normal file
26
testdata/src/test/assets/ad-responses/preroll.xml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
version="3.0" xsi:noNamespaceSchemaLocation="vast.xsd">
|
||||
<Ad id="697203496">
|
||||
<InLine>
|
||||
<AdSystem>GDFP</AdSystem>
|
||||
<AdTitle>Preroll</AdTitle>
|
||||
<Description>
|
||||
<![CDATA[ Preroll ]]>
|
||||
</Description>
|
||||
<Creatives>
|
||||
<Creative id="57859154776" sequence="1">
|
||||
<Linear>
|
||||
<Duration>00:00:05</Duration>
|
||||
<MediaFiles>
|
||||
<MediaFile id="GDFP" delivery="progressive" width="640" height="360" type="video/mp4" bitrate="450" scalable="true" maintainAspectRatio="true">
|
||||
<![CDATA[
|
||||
file:///android_asset/mp4/preroll-5s.mp4
|
||||
]]>
|
||||
</MediaFile>
|
||||
</MediaFiles>
|
||||
</Linear>
|
||||
</Creative>
|
||||
</Creatives>
|
||||
</InLine>
|
||||
</Ad>
|
||||
</VAST>
|
BIN
testdata/src/test/assets/mp4/midroll-5s.mp4
vendored
Normal file
BIN
testdata/src/test/assets/mp4/midroll-5s.mp4
vendored
Normal file
Binary file not shown.
BIN
testdata/src/test/assets/mp4/postroll-5s.mp4
vendored
Normal file
BIN
testdata/src/test/assets/mp4/postroll-5s.mp4
vendored
Normal file
Binary file not shown.
BIN
testdata/src/test/assets/mp4/preroll-5s.mp4
vendored
Normal file
BIN
testdata/src/test/assets/mp4/preroll-5s.mp4
vendored
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user