@zezosoft/react-player
Version:
A lightweight and customizable video player by Zezosoft, built for seamless streaming with advanced controls, adaptive playback, and modern UI. Perfect for web and React applications.
22 lines (21 loc) • 634 B
TypeScript
import React from "react";
import { TimeCode } from "./_components/TimeLine/TimeLine";
import { IOnWatchTimeUpdated } from "../types";
interface Props {
trackSrc: string;
trackTitle?: string;
trackPoster?: string;
isTrailer?: boolean;
className?: string;
type?: "hls" | "mp4" | "other";
width?: string;
height?: string;
timeCodes?: TimeCode[];
getPreviewScreenUrl?: (hoverTimeValue: number) => string;
tracking?: {
onViewed?: () => void;
onWatchTimeUpdated?: (e: IOnWatchTimeUpdated) => void;
};
}
declare const VideoPlayer: React.FC<Props>;
export default VideoPlayer;