THEOplayer / web-ui

UI component library for the THEOplayer Web SDK
https://www.theoplayer.com/docs/open-video-ui/web/
MIT License
10 stars 0 forks source link

Import chromeless THEOplayer #31

Closed MattiasBuelens closed 1 year ago

MattiasBuelens commented 1 year ago

Previously, we used import {/*...*/} from 'theoplayer', which would import the full THEOplayer library including the old video.js-based UI. Since we only need the chromeless player library (without UI) in this project, we now import from 'theoplayer/THEOplayer.chromeless' instead.

This is a (small) breaking change for TypeScript users. THEOplayer.chromeless.js has always been packaged together with the theoplayer npm package, but we only recently (as of version 5.1.0) also ship dedicated TypeScript type definitions for this file. Therefore, TypeScript users will need to update to the latest version of THEOplayer.