Skip to content

About

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

5 Commits

Folders and files

Repository files navigation

Multimedia Streaming App

A fully responsive multimedia streaming application built with React.js that allows users to stream videos, audio tracks, and view images. Features include a modern UI, dark/light theme toggle, media players, search functionality, favorites, and more.

Features

User Interface

  • ✨ Modern, clean, and intuitive UI
  • 🏠 Home page with featured content
  • πŸ“± Fully responsive design (mobile-friendly)
  • πŸŒ“ Dark & light theme toggle
  • πŸ“‹ Grid/list view toggle for browsing media

Media Players

  • 🎬 Video Player: Play, pause, seek, fullscreen, volume control
  • 🎡 Audio Player: Playlist support with next/previous track navigation
  • πŸ–ΌοΈ Image Viewer: Slideshow option with navigation

Functionalities

  • πŸ” Search bar to filter media
  • 🏷️ Category-wise media filtering (Movies, Songs, Short Clips, Images, etc.)
  • πŸ‘€ User login/signup (dummy authentication)
  • ❀️ Add to Favorites
  • ⏰ Watch Later functionality
  • ▢️ Continue Watching section
  • πŸ“€ Media upload page

Technical Features

  • ⚑ Smooth animations & transitions (Framer Motion)
  • 🎨 Tailwind CSS for styling
  • πŸ”„ Context API for state management
  • 🧭 React Router for navigation
  • πŸ’Ύ LocalStorage for persistence
  • 🧩 Reusable components

Tech Stack

  • React.js (v18.2.0) with Hooks
  • React Router (v6.20.0) for navigation
  • Context API for state management
  • Tailwind CSS (v3.3.6) for styling
  • Framer Motion (v10.16.16) for animations
  • React Icons (v4.12.0) for icons
  • Vite (v5.0.8) as build tool

Project Structure

multimedia-streaming-app/
β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ players/
β”‚   β”‚   β”‚   β”œβ”€β”€ VideoPlayer.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ AudioPlayer.jsx
β”‚   β”‚   β”‚   └── ImageViewer.jsx
β”‚   β”‚   β”œβ”€β”€ Header.jsx
β”‚   β”‚   β”œβ”€β”€ Footer.jsx
β”‚   β”‚   β”œβ”€β”€ MediaCard.jsx
β”‚   β”‚   β”œβ”€β”€ ViewToggle.jsx
β”‚   β”‚   └── CategoryFilter.jsx
β”‚   β”œβ”€β”€ context/
β”‚   β”‚   β”œβ”€β”€ ThemeContext.jsx
β”‚   β”‚   β”œβ”€β”€ AuthContext.jsx
β”‚   β”‚   └── MediaContext.jsx
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ Home.jsx
β”‚   β”‚   β”œβ”€β”€ Browse.jsx
β”‚   β”‚   β”œβ”€β”€ Player.jsx
β”‚   β”‚   β”œβ”€β”€ Login.jsx
β”‚   β”‚   β”œβ”€β”€ Upload.jsx
β”‚   β”‚   └── Favorites.jsx
β”‚   β”œβ”€β”€ data/
β”‚   β”‚   └── sampleData.js
β”‚   β”œβ”€β”€ App.jsx
β”‚   β”œβ”€β”€ main.jsx
β”‚   └── index.css
β”œβ”€β”€ index.html
β”œβ”€β”€ package.json
β”œβ”€β”€ vite.config.js
β”œβ”€β”€ tailwind.config.js
└── README.md

Installation & Setup

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn

Steps

  1. Clone or navigate to the project directory

    cd multimedia-streaming-app
    
  2. Install dependencies

    npm install
    
  3. Start the development server

    npm run dev
    
  4. Open your browser

    • The app will automatically open at http://localhost:3000
    • Or manually navigate to the URL shown in the terminal

Build for Production

npm run build

The production build will be in the dist directory.

Run Production Server

npm start

The production server serves the built React app and the live WebSocket signaling server from the same host.

Preview Production Build

npm run preview

Deployment Environment Variables

If your frontend and signaling server are deployed together with npm start, you do not need to set a signaling URL. The app will automatically use the current host.

If the signaling server is deployed separately, create this variable in your frontend deployment provider before building:

VITE_SIGNALING_URL=wss://your-signaling-server.example.com

For local setup, copy .env.example to .env and update VITE_SIGNALING_URL.

The signaling server also supports:

PORT=3001

Most hosting providers set PORT automatically, so only configure it when your deployment needs a fixed port.

Deploying

Single Node Web Service

Use this setup for platforms that support long-running Node processes and WebSockets, such as Render, Railway, Fly.io, or a VPS.

npm ci
npm run build
npm start

The included render.yaml is ready for Render Blueprint deployment.

Static Frontend Host

Static hosts can serve the React build, but live streaming requires a separate deployed signaling server.

  1. Deploy the frontend with npm run build.
  2. Deploy server/index.js as a long-running Node service.
  3. Set VITE_SIGNALING_URL in the frontend deployment to the server WebSocket URL, for example wss://your-signaling-server.example.com.

Usage Guide

Navigation

  • Home: Browse featured content, continue watching, and recently added media
  • Browse: View all media with category filters and search
  • Favorites: Access your saved favorites
  • Upload: Upload new media (requires login)
  • Login/Signup: Create an account or sign in (dummy authentication)

Features Usage

  1. Search: Use the search bar in the header to find media across the app
  2. Theme Toggle: Click the sun/moon icon in the header to switch themes
  3. View Toggle: Switch between grid and list views in the Browse page
  4. Category Filter: Filter media by category (Movies, Music, Images, etc.)
  5. Favorites: Click the heart icon on any media card to add/remove from favorites
  6. Watch Later: Click the clock icon to add media to watch later
  7. Media Players:
    • Video: Full controls including play, pause, seek, volume, and fullscreen
    • Audio: Playlist support with automatic track progression
    • Images: Slideshow mode with navigation controls

Sample Data

The app comes with pre-loaded sample media including:

  • Videos (movies, documentaries, short clips)
  • Audio tracks (jazz, electronic, classical, rock)
  • Images (landscapes, cityscapes, nature)

All sample media uses publicly available URLs for demonstration purposes.

Authentication

The app uses dummy authentication for demonstration:

  • Any email/password combination will work for login
  • Signup creates a new user profile (stored in localStorage)
  • User data persists across sessions

State Management

The app uses React Context API for state management:

  • ThemeContext: Manages dark/light theme
  • AuthContext: Handles user authentication
  • MediaContext: Manages media data, favorites, watch later, and continue watching

All user preferences and data are stored in localStorage for persistence.

Customization

Adding New Media

  1. Navigate to the Upload page (requires login)
  2. Fill in the media details:
    • Media type (video, audio, or image)
    • Title (required)
    • Description
    • Category
    • Media URL (required)
    • Thumbnail URL
    • Additional fields based on media type
  3. Click "Upload"

Modifying Sample Data

Edit src/data/sampleData.js to add or modify sample media items.

Styling

The app uses Tailwind CSS. Customize colors and styles in:

  • tailwind.config.js - Theme configuration
  • src/index.css - Global styles

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

Performance

  • Optimized with React.memo where appropriate
  • Lazy loading for images
  • Efficient state management
  • Smooth animations with Framer Motion

Future Enhancements

Potential features to add:

  • Real backend API integration
  • User profiles and settings
  • Comments and ratings
  • Social sharing
  • Advanced search filters
  • Playlist creation
  • Download functionality
  • Subtitle support for videos

License

This project is open source and available for educational purposes.

Contributing

Feel free to fork this project and submit pull requests for any improvements.

Support

For issues or questions, please open an issue on the project repository.


Enjoy streaming! πŸŽ¬πŸŽ΅πŸ–ΌοΈ

About

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages