EXAMPLE
Non-standard Ads
VAST PLUGIN PRO
The VastPro plugin allows you to play LINEAR, non-standard ads defined directly through javascript. Such types of ads can also be included in the list of multiple ads executed at different time offset and can be mixed with standard VAST ad tags.
There are two parameters required for a non-standard linear ad: the video source and the clickthrough URL. If a non-standard ad is one of the list items, you will also need to define the timeOffset option. Other optional options for a non-standard ad that you may consider using are:If the
Values for the
The live stream duration isEvents that will be tracked this way are: start, firstQuartile, midpoint, thirdQuatile, pause, resume, fullscreen, exitFullscreen, mute, unmute, clickthrough, skip, complete.
This is how you can configure a single non-standard linear ad:
Code snippet
player.vast ({media: {src:"video-source-url",type:"media/type"}, clickthrough: "ad-click-url",adId: "ad-unique-id", // (optional)trackingUrl: "tracking-url", // (optional)skip: "5", //(optional)icon: "image-icon-URL" //(optional)}});List of multiple ads
You can include non-standard ads in the list of ads to execute at the desired time position. Non-standard ads can be mixed with standard VAST Tag ads.Code snippet
player.vast ({ads:[ {media: {src:"video-source-url.mp4",type:"video/mp4"}, clickthrough: "ad-click-url",adId: "ad-unique-id", //(optional)trackingUrl: "tracking-url", //(optional)skip: "5" //(optional)icon: "icon-image-URL" //(optional)clickthroughMethod:"link:", //(optional)timeOffset: "start"} , {tagURL: ""path-to-vast-file"timeOffset: 20} , {media: {src:"video-source-url.m3u8",type:"application/x-mpegURL"}, clickthrough: "ad-click-url",adId: "ad-unique-id",trackingUrl: "tracking-url"timeOffset: "50%"skip: "10"},});timeOffsetoption is not defined, the ad will play as a preroll.
Values for the
timeOffsetoption can be provided either as a number of seconds, a percentage value, or an
endfor postroll (VOD video only).
The live stream duration is
Infinity, so the current video time cannot be calculated. Midroll and postroll ads will be ignored.
Tracking
If you defineadIdand
trackingURLoptions, ad events will be sent to a tracking URL with 2 parameters in request: action and id, e.g.
Code snippet
https://domain.com/your-tracking-script?action=skip&id=ad-idhttps://domain.com/your-tracking-script?action=firstQuartile&id=ad-idhttps://domain.com/your-tracking-script?action=complete&id=ad-idThis demo
Demo player above utilize:- non-standard preroll ad with 5 second skip option, clickthroughtMethod =
link
and industry icon from PNG image. - standard VAST from tagURL with 2 video ad pods at the time offset = 20 seconds.
- non-standard midroll ad at 50% of the main video length, with a 10-second skip option.
The VAST PRO plugin is a separate product, working with th video.js player and Nuevo plugin.
A lifetime license can be ordered upon the first Nuevo software order, or at any time later in the client area.
A lifetime license can be ordered upon the first Nuevo software order, or at any time later in the client area.