Sign inSign up

placr/demo-player

By placr

Updated over 10 years ago

The demo player

Image
0

3.5K

placr/demo-player repository overview

Demo player

This application implements a demonstration video player that fronts the Advertisement Decision System.

It communicates with the following components:

  1. ADS interface: To get a playlist and report status notifications.
  2. Content interface: To get the available entertainments.
  3. Video interface: Serves requests from the end-user player for the m3u8 manifest file which it then segments according to the given playlist.

The repository contains a docker file. Running the docker requires the following parameters:

ADS interface related:

  1. ADS_ADS1_HOST: Maestro-ng formatted locator for finding the ADS host.
  2. ADS_ADS1_ADS_PORT: Maestro-ng formatted locator for finding the ADS port on that host.
  3. ADS_PLACEMENT_PATH: The location of the REST API on the ADS hosting the placement request interface. Defaults to '/ads-kd-web/ads4as/v1/simple/placement'
  4. ADS_NOTIFICATION_PATH: The location of the REST API on the ADS hosting the placement status notifications interface. Defaults to '/ads-kd-web/ads4as/v1/simple/status'

Content interface related:

  1. ENV_CONTENT_SHEET_ID: The google docs sheet containing the entertainment information. Defaults to 1tWsOLSJ1LGR3sfUKyNFO3oOlS_Dk1PpXBDEceAlOzbo.
  2. ENV_ENTERTAINMENT_TAB_NAME: The tab in the Google spreadsheet with the relevant information. Defaults to PLACR.
  3. ENV_AD_TAB_NAME: The tab in the Google spreadsheet with the advertisements.

Example without maestro-ng:

docker run -d -p 8080:8080 -e ADS_ADS1_HOST=ads -e ADS_ADS1_ADS_PORT=8080 placr/demo-player

where 'ads' is either a linked name to the ADS docker or should be replaced with the real IP/name of the system that hosts the ADS API.

Tag summary

Content type

Image

Digest

sha256:1315cab80

Size

290.7 MB

Last updated

over 10 years ago

docker pull placr/demo-player