Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stroeer/stroeer-videoplayer-ivad-plugin


https://github.com/stroeer/stroeer-videoplayer-ivad-plugin

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

Ströer Videoplayer Plugin Interactive Video Ads
===============================================

## Development

Install via dependencies via `yarn --dev`.

Build via `yarn run build`. Lint via `yarn run lint`. Test via `yarn run test`.

See coverage with `yarn run test --coverage`.

## Usage

### Events

- IVADerror
- IVADimpression
- IVADpause
- IVADresume
- IVADclick
- IVADmute
- IVADunmute
- IVADfullscreen
- IVADexitFullscreen
- IVADfirstQuartile
- IVADmidpoint
- IVADthirdQuartile
- IVADended

### Basic Markup

```html

StroeerVideoplayer.registerUI(StroeerVideoplayerDefaultUI);
StroeerVideoplayer.registerUI(StroeerVideoplayerIvadUI)
StroeerVideoplayer.registerPlugin(StroeerVideoplayerIvadPlugin)
const video = document.getElementById('myvideoplayer1')
const myvideoplayer1 = new StroeerVideoplayer(video)
myvideoplayer1.loadStreamSource()
myvideoplayer1.initPlugin('ivad')

```