Mohammed Taysser
Results
2
comments of
Mohammed Taysser
Instead of single player: ```js const player = new Plyr('#player'); ``` use the multi-players as the following: ```js const players = Array.from(document.querySelectorAll('.js-player')).map((p) => new Plyr(p)); ``` According to docs https://github.com/sampotts/plyr#multiple-players
I use the following code as Plyr component also, I made a small doc about usage: https://github.com/Mohammed-Taysser/circle/blob/main/DOCS.md#plyrviewer ```tsx import { AspectRatio } from '@mantine/core'; import Plyr from 'plyr'; import {...