This is a simple React application that allows users to fetch and play unlisted YouTube videos using the YouTube Data API V3.
## Features
- Fetch YouTube video details by entering an unlisted video ID.
- Display the video title and play the video using a custom video player.
## Prerequisites
Before you begin, ensure you have the following:
- Node.js installed on your machine.
- A YouTube Data API V3 key. You can obtain one by creating a project in the [Google Cloud Console](https://console.cloud.google.com/) and enabling the YouTube Data API.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/akashtripathiiiii/youtube-video-app.git
-
Navigate to the project folder:
cd youtube-video-app
-
Install dependencies:
npm install
Replace the placeholders in src/App.js
with your actual YouTube Data API key:
// Replace 'YOUR_API_KEY' with your actual YouTube Data API key
const apiKey = 'YOUR_API_KEY';
-
Start the React application:
npm start
-
Open your browser and visit http://localhost:3000.
-
Enter the unlisted YouTube video ID in the input field and click "Load Video."
-
The video details will be displayed, and you can play the video using the custom video player.
This project is licensed under the MIT License - see the LICENSE file for details.
- This project was created using Create React App.