mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: create improved player for hosted videos
This commit is contained in:
parent
e4d5c44aae
commit
7139448195
6 changed files with 435 additions and 90 deletions
17
apps/web/types/react-plyr.d.ts
vendored
Normal file
17
apps/web/types/react-plyr.d.ts
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
declare module 'react-plyr' {
|
||||
import { Component } from 'react'
|
||||
|
||||
interface PlyrProps {
|
||||
source: {
|
||||
type: string
|
||||
sources: Array<{
|
||||
src: string
|
||||
type: string
|
||||
}>
|
||||
}
|
||||
options?: any
|
||||
onReady?: () => void
|
||||
}
|
||||
|
||||
export default class Plyr extends Component<PlyrProps> {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue