/xgplayer-mirror-plugin

xgplayer mirror plugin

Primary LanguageTypeScriptMIT LicenseMIT

xgplayer-mirror-plugin

npm version npm downloads

Install

via pnpm, yarn or npm:

pnpm add xgplayer-mirror-plugin
# or
yarn add xgplayer-mirror-plugin
# or
npm i -S xgplayer-mirror-plugin

Usage

import Player from 'xgplayer';
import { mirror, s_mirror } from 'xgplayer-mirror-plugin'

Player.installAll([mirror, s_mirror]);

new Player({

  ...

  mirror: {
    horizontal: true,
    vertical: true,
  },
});