1.1.8 • Published 2 years ago

@ztxtxwd/react-ts-flv-player v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm package

React TS FLV Player

A React component to play flv streaming video also support typescript.

yarn add @ztxtxwd/react-ts-flv-player

Usage

import { Fragment } from "react";
import { ReactFlvPlayer } from "@ztxtxwd/react-ts-flv-player";
const LiveDashboardPage = () => {
  const url = "https://xxx.flv";
  return (
    <Fragment>
      <ReactFlvPlayer
        url={url}
        isMuted={false}
        isLive={true}
        showControls={true}
        enableStashBuffer={true}
      />
    </Fragment>
  );
};

export default LiveDashboardPage;

Use with NextJS with SSR disable

// create wrapper components 
import dynamic from "next/dynamic";
export const FlvNextPlayer = dynamic(
  () => import("@ztxtxwd/react-ts-flv-player/dist/NextReactFlvPlayer"),
  {
    ssr: false,
  }
);

License

MIT

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago