question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DMVAST usage example

See original GitHub issue

Hello, and congruts for this tool!

I’m trying a create a player using the DMVAST client, but i can’t clearly figure out how to use it Are there any more analytical examples on this.

I am using the flow bellow: i am requesting a vast code as bellow, parse the video URL, create a Vast tracker and then create a video element dynamically with the video url

	DMVAST.client.get('http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=is&c=23&pl=VAST&pli=14222276&PluID=0&pos=1901&ord=[timestamp]&cim=1', function(response, error)
		{
			// process the VAST response
			var VAST = response;
			var videoURL = response.ads["0"].creatives["0"].mediaFiles["0"].fileURL;


			// Create a VAST Tracker instance
			var vastTracker = new DMVAST.tracker(response.ads["0"], response.ads["0"].creatives["0"]);
		

			var content = document.getElementById("story_body");
			var video = document.createElement("video");
			video.controls = true;
			video.muted = true;
			video.src = videoURL;
			video.load();

After that, how do i call any tracking events? or they are fired automatically? Also, Is it supposed to show the skip button automatically, or do i have to saw it manually, and how?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
briganticommented, Dec 15, 2016

I want to clean it first ^^

edit: I’ll keep this issue open as a reminder

1reaction
briganticommented, Dec 14, 2016

Hi @giannoudak

I agree with you, we’re clearly missing some documentation about how to use the VAST client. This lib just provides a VAST parser and a tracker. However, you have to do the integration with the video player. You have to provide some info to the tracker so it can ping the tracking URLs. I’ve done a quick JsBin with a skippable linear ad to show you the basic:

https://jsbin.com/wayukaw/edit?html,js,output If you don’t have an ad, keep refreshing and you should get one.

Some tracking is missing (like play, pause, mute… full list here) but all the important ones are there.

Hope it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vast-client examples - CodeSandbox
Learn how to use vast-client by viewing and forking vast-client example apps on CodeSandbox.
Read more >
Free Automated Malware Analysis Service - powered by Falcon ...
Submit malware for free analysis with Falcon Sandbox and Hybrid Analysis technology. Hybrid Analysis develops and licenses analysis tools to fight malware.
Read more >
videojs.vast.js - CodePen
1. (function(window, vjs, vast) { ; 2. 'use strict'; ; 3. ​ ; 4. var extend = function(obj) { ; 5. var arg,...
Read more >
Untitled - Plunker
(function(window, document, vjs, undefined) { "use strict"; var /** * Copies ... DMVAST=e()}}(function(){var define,module,exports;return (function e(t,n ...
Read more >
Algorithmic evaluation of Parameter Estimation for Hidden ...
subgroups in the time series. An example of such a relaxation, and actually one of the most simplistic one, would be to use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found