diff --git a/.npmignore b/.npmignore index 012512e..a6f680e 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,5 @@ .all-contributorsrc +.github .eslintrc .prettierrc tsconfig.json @@ -8,4 +9,4 @@ src/ public/ node_modules/ example/ -.vscode/ \ No newline at end of file +.vscode/ diff --git a/package.json b/package.json index 96c6ff0..608f5fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-hls-video-player", - "version": "3.2.0", + "version": "3.2.1", "description": "A simple and easy to use react component for playing an hls live stream", "main": "./dist/index.js", "types": "./dist", diff --git a/src/components/ReactHlsPlayer.tsx b/src/components/ReactHlsPlayer.tsx index fc6823a..d0bbb4d 100644 --- a/src/components/ReactHlsPlayer.tsx +++ b/src/components/ReactHlsPlayer.tsx @@ -7,14 +7,14 @@ declare global { } } -export interface HlsPlayerProps extends React.VideoHTMLAttributes<HTMLVideoElement> { +export interface ReactHlsPlayerProps extends React.VideoHTMLAttributes<HTMLVideoElement> { hlsConfig?: HlsConfig playerRef?: RefObject<HTMLVideoElement> getHLSInstance?: (hls: Hls) => void src: string } -const ReactHlsPlayer: React.FC<HlsPlayerProps> = ({ +const ReactHlsPlayer: React.FC<ReactHlsPlayerProps> = ({ hlsConfig, playerRef, getHLSInstance, diff --git a/src/index.tsx b/src/index.tsx index 7aae1f8..d43af2a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,2 +1,2 @@ export { default } from './components/ReactHlsPlayer' -export type { HlsPlayerProps } from './components/ReactHlsPlayer' +export type { ReactHlsPlayerProps } from './components/ReactHlsPlayer'