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:
hibna
2025-10-29 07:49:06 +03:00
parent d68df70124
commit b57b24d051
47 changed files with 4414 additions and 0 deletions
+28
View File
@@ -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'