How chaitanyakumar-redsec/popcorn works
This is a browser-based movie and series browsing and playback app. The main workflow loads catalog data through CSV utilities, lets users browse or search titles, and launches selected media into a private screening view with playback controls and track options. Local-media browsing and subtitle handling are additional capabilities. The graph follows shown imports and calls; unsampled component details and catalog-file wiring are not inferred.
Main entry points: App.tsx App coordinator · PrivateScreen.tsx Screening view · VideoPlayer.tsx Video player · subtitleLoader.ts Subtitle loader
Components 19
Catalog and discovery
- App coordinator
src/App.tsx - Navigation header
src/components/Header.tsx - Home browsing
src/components/HomePage.tsx - Movie catalog
src/components/MovieGrid.tsx - Series catalog
src/components/SeriesGrid.tsx - CSV catalog loader
src/utils/csvLoader.ts - Media data types
src/types.ts
Private screening
- Screening view
src/components/PrivateScreen.tsx - Screening options
src/components/PrivateScreenModal.tsx - Video player
src/components/VideoPlayer.tsx - Audio track guidance
src/components/AudioTrackFlagChecker.tsx - Local media browser
src/components/BrowseMediaModal.tsx - Stream media form
src/components/StreamMediaForm.tsx - Subtitle controls
src/components/SubtitleCard.tsx
Media utilities
- Track detector
src/utils/mediaTrackDetector.ts - Subtitle loader
src/utils/subtitleLoader.ts - Playback cleanup
src/utils/mediaControl.ts
Other components
- Viewer
- Subtitle fetch proxies
Connections 20
- Viewer → App coordinator: opens app
- App coordinator → Navigation header: renders
src/App.tsx - App coordinator → Home browsing: renders
src/App.tsx - App coordinator → Movie catalog: renders
src/App.tsx - App coordinator → Series catalog: renders
src/App.tsx - App coordinator → CSV catalog loader: loads catalog
src/App.tsx - App coordinator → Screening view: renders
src/App.tsx - App coordinator → Playback cleanup: stops playback
src/App.tsx - Home browsing → Screening view: launches media
src/App.tsx - Movie catalog → Screening view: launches media
- Series catalog → Screening view: launches media
- Screening view → Video player: renders
src/components/PrivateScreen.tsx - Screening view → Local media browser: renders
src/components/PrivateScreen.tsx - Screening view → Screening options: uses options
- Screening view → Audio track guidance: renders
src/components/PrivateScreen.tsx - Local media browser → Track detector: detects tracks
src/components/BrowseMediaModal.tsx - Video player → Track detector: formats track names
src/components/VideoPlayer.tsx - Video player → Subtitle loader: loads subtitles
src/components/VideoPlayer.tsx - Subtitle controls → Subtitle loader: loads subtitles
src/components/SubtitleCard.tsx - Subtitle loader → Subtitle fetch proxies: fetches fallback
src/utils/subtitleLoader.ts