Jump to content

VAST from mp4 file


cremz

Recommended Posts

Considering the VAST plugin is a paid one, would it be possible to add an option to create simple vast ads using an mp4 file and a link?

I know there is an option to add a file in the Player settings or embed settings, but would like to rotate it among other vast ads, not replace them

Link to comment
Share on other sites

You can create an XML file on your server and use it for VAST URL:

<?xml version="1.0" encoding="UTF-8"?>
<VAST version="3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/InteractiveAdvertisingBureau/vast/master/vast3_draft.xsd">
	<Ad>
		<InLine>
			<AdSystem>Custom</AdSystem>
			<AdTitle><![CDATA[Advertising1]]></AdTitle>
			<Creatives>
				<Creative>
					<Linear skipoffset="00:00:05">
						<Duration>00:00:20</Duration>
						<VideoClicks>
							<ClickThrough><![CDATA[http://google.com]]></ClickThrough>
						</VideoClicks>
						<MediaFiles>
							<MediaFile type="video/mp4">
								<![CDATA[/files/vast.mp4]]>
							</MediaFile>
						</MediaFiles>
					</Linear>
				</Creative>
			</Creatives>
		</InLine>
	</Ad>
</VAST>

Replace:

  • http://google.com - with your desired click URL
  • /files/vast.mp4 - with URL to your video file
  • Delete skipoffset="00:00:05" if you don't want this ad to be skippable
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...