Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.
/ mx-player Public archive

A simple video player like telegram for React.

Notifications You must be signed in to change notification settings

Innei/mx-player

Repository files navigation

mx-player

A simple lovely player.

NPM JavaScript Style Guide

Install

npm install --save mx-player
# or
yarn add mx-player

Demo

Live Demo

Usage

import 'mx-player/dist/index.css'
import { Player } from 'mx-player'

const App = () => {
  return <Player src={src} />
}

Interface

interface PlayerProps {
  maxHeight?: number
  maxWidth?: number
  src: string
  height?: number
  width?: number
}
export declare const Player: React.FC<
  PlayerProps &
    Omit<
      React.DetailedHTMLProps<
        React.VideoHTMLAttributes<HTMLVideoElement>,
        HTMLVideoElement
      >,
      'height' | 'width'
    >
>

License

MIT © Innei