Site live on https://videoplayer-withnotes.netlify.app/
This application is a video player that allows users to take notes at specific timestamps. It supports adding images and using an HTML editor to format the notes. The notes are saved locally and can be accessed later. The project is built with React, Bootstrap, and Framer Motion, using React Router for navigation.
- Video Player: Play YouTube videos using the YouTube IFrame Player API.
- Notes: Add, edit, and delete notes linked to specific timestamps in the video.
- Image Upload: Upload and manage images within notes.
- HTML Editor: Use a rich text editor to format notes with HTML content.
- History: Automatically save and display the history of watched videos.
-
Clone the repository:
git clone https://github.com/ayush1108g/Video-Player-with-Notes-Features.git cd video-player-with-notes cd client
-
Install the dependencies:
npm install
-
Start the development server:
npm start
- Home Page: Enter a YouTube video ID and click "Submit" to play the video.
- Video Page: Watch the video and add notes at specific timestamps.
- Notes: Add text, images, and HTML content to notes. Notes are saved locally and displayed with timestamps.
- History: View recently watched videos on the home page.
The main application component that sets up the router and context providers.
The header component with a link to the home page.
Defines the routes for the application.
The home page where users can enter a video ID and view recently watched videos.
The page where users watch the video and add notes.
The component that handles video playback using the YouTube IFrame Player API.
The component for adding and displaying notes.
The component for individual notes, including editing and deleting functionalities.
A component for displaying images in a modal.
A rich text editor component for formatting notes with HTML content.
Context for managing global alerts and notifications.
A collection of helper functions used throughout the application.
Styled using CSS Modules for scoped styling.
AlertContext.js
: Provides a context for showing alerts.
HelperFunctions.js
: Contains utility functions for API calls, image uploads, and date formatting.
- Navigate to the video page by entering a video ID on the home page.
- Use the "Add Notes" button to open the note editor.
- Enter your note using the rich text editor and optionally upload images.
- Save the note to store it locally.
- Notes are displayed below the video player.
- Click on the timestamp in the note to seek to the specific time in the video.