Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration how to #429

Open
redimongo opened this issue Aug 12, 2022 · 3 comments
Open

Integration how to #429

redimongo opened this issue Aug 12, 2022 · 3 comments
Labels

Comments

@redimongo
Copy link

redimongo commented Aug 12, 2022

So I have downloaded and got to the stage where it is returning all the values in the VAST is JSOn - really handy,
But because we are stitching ads into live audio, we need to be able to fire of the triggers at the correct times.

How do we do this we us pipe() to stream the audio file to the clients live stream.

I am trying to work out how do I call the tracking with the following method.

For example:

vastClient.get('https://x3.DOMAIN/v3/vast/3131?domain=DOMAIN.com')
  .then(res => {
    // Do something with the parsed VAST response

    request.get(res.ads[0].creatives[0].mediaFiles[0].fileURL).pipe(response)
  })
  .catch(err => {
    // Deal with the error
  });

});
                                                  
@BellezaEmporium
Copy link

BellezaEmporium commented Aug 20, 2022

I suppose "request" and "response" come from somewhere. I think the most viable solution you might have is that you treat the answer from vastClient and add your advertisment after some time over an AJAX request, as long as the response is treatable.

@redimongo
Copy link
Author

I suppose "request" and "response" come from somewhere. I think the most viable solution you might have is that you treat the answer from vastClient and add your advertisment after some time over an AJAX request, as long as the response is treatable.

Would of hoped to be able to use the VastTrack feature that this plugin also has.

@ZacharieTFR
Copy link
Contributor

Hello @redimongo,

Yes you definitely can !
Please refer to the VASTTracker documentation to see all the events and public methods available to fire the trackers you need.

Let me know if you need additional informations ! 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants