How nikilmunireddy/streaming-app works
Streamer is a browser-based streaming app: users authenticate, choose live video, on-demand video, or music, then select a source and play it. The graph follows the shown React entry and route ownership, the login component’s Firebase authentication calls, and the catalogs’ localStorage handoff to the player. Source excerpts do not establish a direct external streaming-service API or show service-worker registration from the app entry, so those links are omitted.
Main entry points: Choose.jsx Catalog chooser · Main.jsx Route switch · LoginPage.jsx Login and signup · Play.jsx Stream player
Components 13
App navigation
- React entry
src/index.js - App shell
src/components/App.jsx - Route switch
src/components/Main.jsx
Account access
- Login and signup
src/components/LoginPage.jsx - Firebase Auth
Stream catalogs
- Catalog chooser
src/components/Choose.jsx - On-demand catalog
src/components/OnDemand.jsx - Live catalog
src/components/LiveStreaming.jsx - Music catalog
src/components/FM.jsx
Playback
- Selected stream URL
- Stream player
src/components/Play.jsx - HLS playback library
Other components
- Viewer
Connections 16
- Viewer → React entry: opens app
src/index.js - React entry → App shell: renders
src/index.js - App shell → Route switch: renders
src/components/App.jsx - Route switch → Login and signup: routes /
src/components/Main.jsx - Route switch → Catalog chooser: routes /choose
src/components/Main.jsx - Route switch → Stream player: routes /play
src/components/Main.jsx - Login and signup → Firebase Auth: authenticates
src/components/LoginPage.jsx - Login and signup → Catalog chooser: redirects after sign-in
src/components/LoginPage.jsx - Catalog chooser → On-demand catalog: renders default
src/components/Choose.jsx - Catalog chooser → Live catalog: renders on selection
src/components/Choose.jsx - Catalog chooser → Music catalog: renders on selection
src/components/Choose.jsx - On-demand catalog → Selected stream URL: stores URL
src/components/OnDemand.jsx - Live catalog → Selected stream URL: stores URL
src/components/LiveStreaming.jsx - Music catalog → Selected stream URL: stores URL
src/components/FM.jsx - Selected stream URL → Stream player: reads URL
src/components/Play.jsx - Stream player → HLS playback library: renders stream
src/components/Play.jsx