Hi, I was wondering if there is a way to input the VAST Client JS into a hype file when producing video only adverts
Many thanks
Hi, I was wondering if there is a way to input the VAST Client JS into a hype file when producing video only adverts
Many thanks
You can use any external JS library within Hype. To make the functions present in that library accessible within Hype, you would load that library’s source in the Head of your Hype document. You can edit the contents of the <head>…</head>
of your exported .html file by clicking on ‘Edit HTML Head’ in the Document Inspector. There, you would insert the required library files by either loading them using the resource URL (if you added them to your resource library) such as:
"${resourcesFolderName}/file.js"
or, from a CDN like: https://www.jsdelivr.com/package/npm/vast-client
which would give you a script like:
<script src="https://cdn.jsdelivr.net/npm/vast-client@2.0.4/dist/vast-client.min.js" integrity="sha256-9PZmur8AxXVXg0Wrg641LsW+JSjaMljECbeS7ikt8Lk=" crossorigin="anonymous"></script>
Many thanks Daniel
Will give this a go!
: )