-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support multiple VAST versions
- Loading branch information
Showing
6 changed files
with
104 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,18 @@ The Eyevinn Test Adserver is an adserver that can be used in different testing c | |
This component is released under open source and we are happy for contributions! | ||
|
||
## Requirements | ||
|
||
- Node v12+ | ||
|
||
## Database | ||
|
||
Right now the test-adserver uses in-memory storage for all its data, no external database is required. | ||
|
||
In a future update, we will add support for persistent storage using PostgreSQL. | ||
Other databases can be used also, as long as they follow the same implementation steps that of the coming PostgreSQL example. | ||
Other databases can be used also, as long as they follow the same implementation steps that of the coming PostgreSQL example. | ||
|
||
## Usage | ||
|
||
## Usage | ||
- `git clone https://github.com/Eyevinn/test-adserver.git` | ||
- `cd test-adserver` | ||
- `npm install`, then | ||
|
@@ -62,8 +65,8 @@ Stop the service: | |
|
||
docker-compose down | ||
|
||
|
||
## Using Specific Ads | ||
|
||
If the enviroment variable `MRSS_ORIGIN` has been set, then the test-adserver shall return VAST responses populated with Ads selected from | ||
the collection of Ads found in the mRSS feed that can be reached through this origin endpoint. The url for the feed should follow this structure | ||
`${MRSS_ORIGIN}${ADSERVER_HOST}.mrss`. Where `ADSERVER_HOST` is the same as the host data that can be found in the request headers sent to the test-adserver. | ||
|
@@ -77,7 +80,9 @@ Knowing the adserver host and `MRSS_ORIGIN`, the test-adserver will then fetch t | |
Alternatively, you can specify what file contains the collection of ads through the `coll` parameter on the `/api/v1/vast` or `/api/v1/vmap` request. In this case, the file will be expected to be at `${MRSS_ORIGIN}${coll}.mrss`. This is useful for example if you want to switch easily between different collection of ads without having to host multiple ad servers. | ||
|
||
### MRSS Feed Structure | ||
|
||
The test-adserver is expecting an mRSS feed which should include text/xml with the following structure: | ||
|
||
``` | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<feed xmlns="http://www.w3.org/2005/Atom"> | ||
|
@@ -96,21 +101,22 @@ The test-adserver is expecting an mRSS feed which should include text/xml with t | |
</entry> | ||
</feed> | ||
``` | ||
Simply populate your xml file with `<entry></entry>` tags for each Ad asset with the necessary data (id, universalId, link, duration, etc...). | ||
|
||
Simply populate your xml file with `<entry></entry>` tags for each Ad asset with the necessary data (id, universalId, link, duration, etc...). | ||
|
||
If you have ads in multiple formats (eg. DASH, HLS, MP4), you can add multiple `<link></link>` for each one. | ||
|
||
## Commercial Options | ||
|
||
The Eyevinn Test Adserver is released under open source but we do offer some commercial options in relation to it. Contact [email protected] if you are interested for pricing and more information. | ||
The Eyevinn Test Adserver is released under open source but we do offer some commercial options in relation to it. Contact <[email protected]> if you are interested for pricing and more information. | ||
|
||
### Hosting | ||
|
||
We host the service in our environment for a monthly recurring fee. Included is business hours support on a best effort basis. | ||
|
||
### Deployment | ||
|
||
We help you deploy and integrate the service in your environment on a time-of-material basis. | ||
We help you deploy and integrate the service in your environment on a time-of-material basis. | ||
|
||
### Feature Development | ||
|
||
|
@@ -120,11 +126,10 @@ When you need a new feature developed and does not have the capacity or competen | |
|
||
When you need help with building for example integration adaptors or other development in your code base related to this open source project we can offer a development team from us to help out on a time-of-material basis. | ||
|
||
|
||
## About Eyevinn Technology | ||
|
||
Eyevinn Technology is an independent consultant firm specialized in video and streaming. Independent in a way that we are not commercially tied to any platform or technology vendor. | ||
|
||
At Eyevinn, every software developer consultant has a dedicated budget reserved for open source development and contribution to the open source community. This give us room for innovation, team building and personal competence development. And also gives us as a company a way to contribute back to the open source community. | ||
|
||
Want to know more about Eyevinn and how it is to work here. Contact us at [email protected]! | ||
Want to know more about Eyevinn and how it is to work here. Contact us at <[email protected]>! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters