Initial commit: modern React video player library
Add all source files for a feature-rich, reusable video player built with React, TypeScript, and Vite. Includes core components, context, hooks, utilities, styles, demo app, and configuration files.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// Main component
|
||||
export { VideoPlayer } from './components/VideoPlayer'
|
||||
|
||||
// Context
|
||||
export { PlayerProvider, usePlayerContext } from './contexts/PlayerContext'
|
||||
|
||||
// Types
|
||||
export type {
|
||||
VideoPlayerProps,
|
||||
SubtitleTrack,
|
||||
VideoQuality,
|
||||
PlayerTheme,
|
||||
VideoState,
|
||||
UIState,
|
||||
PlayerSettings,
|
||||
PlayerContextValue,
|
||||
} from './types'
|
||||
|
||||
// Utils
|
||||
export { formatTime, parseTime } from './utils/time'
|
||||
export { parseSRT, createSubtitleBlobURL, fetchSubtitle } from './utils/subtitles'
|
||||
export { initializePolyfills, features } from './utils/polyfills'
|
||||
export { validateVideoURL, getCORSErrorMessage, isCORSError, checkVideoCORS } from './utils/corsHelper'
|
||||
export { loadHls, isHlsSupported, hasNativeHlsSupport } from './utils/hlsLoader'
|
||||
|
||||
// Hooks (for advanced users)
|
||||
export { useKeyboardShortcuts } from './hooks/useKeyboardShortcuts'
|
||||
export { useTouchGestures } from './hooks/useTouchGestures'
|
||||
Reference in New Issue
Block a user