Skip to content

favish/dynamic-vmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generates Dynamic VMap files based on input parameters

This is a very simple proof of concept but should scale without too much trouble with the addition of a k8s service, pod, and ingress that specifies an nginx and SSL (lets encrypt) annotation.

You may want to use the released build artifact (binary) of this project in the creation of a new project that specifies these things as it is poutside the scope of this generally useful too that we can make publicly available.

Use

  • Consumes description_url and referrer as query parameters to dynamically create VMAP and also set CORS host.

TODO

  • Use environment vars to specify the VAST tags instead of hard code to allow us to use in mulitple places
  • Break monofunction into something more comprehensible
  • Eventually create a map of minimum video lengths before new ad formats take effect (e.g. all video longer than 0 seconds get only preroll, all videos longer than 60 second get preroll and post roll, all longer than 180 get...)