Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

tfausak/jawa

Repository files navigation

Jawa

Type definitions for JWP events.

https://docs.jwplayer.com/players/reference/javascript-player-api-introduction

This package provides types along with JSON decoders (and encoders) for events from JW Player's JavaScript player. It is meant to be used together with a port to listen to .on('all') events, or any subset of those.

jwplayer().on('all', (_, data) =>
    yourApp.ports.yourPort.send(JSON.stringify(data)));