An open API service indexing awesome lists of open source software.

https://github.com/nexoscreator/html5-custom-video-player

This repository contains a custom video player designed to be integrated into web applications. The player is built with HTML, CSS, and JavaScript, offering a responsive and user-friendly experience.
https://github.com/nexoscreator/html5-custom-video-player

custom-video-player html5 js video-player

Last synced: 2 months ago
JSON representation

This repository contains a custom video player designed to be integrated into web applications. The player is built with HTML, CSS, and JavaScript, offering a responsive and user-friendly experience.

Awesome Lists containing this project

README

        

![GitHub Pages](https://img.shields.io/github/deployments/nexoscreator/html5-custom-video-player/github-pages.svg?style=flat-square&color=cyan)
![GitHub Release](https://img.shields.io/github/v/release/nexoscreator/html5-custom-video-player.svg?style=flat-square&color=cyan)
![GitHub License](https://img.shields.io/github/license/nexoscreator/html5-custom-video-player.svg?style=flat-square&color=cyan)
![GitHub Code](https://img.shields.io/github/languages/code-size/nexoscreator/html5-custom-video-player.svg?style=flat-square&color=cyan)

---

## 🎥 Custom HTML5 Video Player

![image](.github/preview.png)

> A **lightweight, customizable, and feature-rich** video player built using plain JavaScript and CSS. Includes essential video controls such as **play/pause, volume adjustment, speed control, fullscreen mode, theater mode, mini-player, and more**.

---

## ✨ Features

- **Responsive Design**: Works seamlessly on desktop & mobile devices.
- **Supports Multiple Video Formats**: (MP4, WebM, Ogg, etc.)
- **Keyboard Shortcuts**: for easy navigation.
- **Custom Controls**: Play/Pause, Volume, Speed Control, Fullscreen, Mini Player, Theater Mode.
- **Loading Indicator**: for better UX.
- **Touch & Click Support**: for mobile devices.
- **Customizable**: Easily modify styles & functionality.

---

## 📥 Installation

1. **Include the Video Player in HTML**

Use the following HTML to include the video player in your page:

```html


```

> **Note:** Replace `"path/to/your/video.mp4"` with your actual video file URL and update the `"Video Title"`.

2. **Link CSS Styles**

Include the necessary CSS to style the video player and controls.

```html

```

3. **Link the JavaScript**

Add the JavaScript code cdn link provided below to the functionality of the video player.

```html

```

---

## 🎯 Keyboard Shortcuts

This custom video player supports the following keyboard shortcuts to enhance your video playback experience:

| Shortcut Key | Action | Description |
| ----------------- | ------------------- | ---------------------------------------- |
| `F` | Fullscreen Toggle | Enter or exit fullscreen mode. |
| `→` (Right Arrow) | Forward | Skip the video forward. |
| `←` (Left Arrow) | Backward | Rewind the video. |
| `T` | Toggle Theater Mode | Switch between normal and theater modes. |
| `I` | Mini Player Mode | Activate or deactivate mini player view. |
| `M` | Mute/Unmute | Mute or unmute the video. |
| `+` | Increase Speed | Increase playback speed. |
| `-` | Decrease Speed | Decrease playback speed. |

---

## 🎨 Customization

You can customize the **CSS styles** and **JavaScript functionality** according to your needs.

1. **Clone the Repository:**

```bash
git clone https://github.com/nexoscreator/html5-custom-video-player.git
cd html5-custom-video-player
```

2. **Customize CSS:**
Edit the `video-player.css` file to change the styles.

3. **Customize JavaScript:**
Customize the player controls by modifying `video-player.js`. You can update controls, navigation, or error handling as needed.

---

## 🔗 Useful Links

[![Web Demo](https://img.shields.io/badge/Web-Demo-blue?style=for-the-badge&logo=google-chrome)](https://nexoscreator.github.io/html5-custom-video-player)
[![GitHub Repo](https://img.shields.io/badge/GitHub-Repo-green?style=for-the-badge&logo=github)](https://github.com/nexoscreator/html5-custom-video-player)
[![YouTube Video](https://img.shields.io/badge/YouTube-Video-red?style=for-the-badge&logo=youtube)](https://youtu.be/rMnDe0iEGRs?si=B2viVesOhHYusbBG)

---

## 🤝 Contributing

We ❤️ contributions! Follow these steps to contribute:

1. 🍴 **Fork** the repository
2. 🌿 **Create** a new branch (`git checkout -b feature/AmazingFeature`)
3. 💾 **Commit** your changes (`git commit -m 'Add some AmazingFeature'`)
4. 🚀 **Push** to the branch (`git push origin feature/AmazingFeature`)
5. 🔃 **Open a Pull Request**

📖 _See our [Contribution Guidelines](CONTRIBUTING.md) for more details._

---

## 📄 License

This project is licensed under the **MIT License**. See the [LICENSE](LICENSE) file for details.

---

## 📬 Contact & Community

💬 Join us on **Discord**: [Click Here](https://discord.gg/H7pVc9aUK2)
🐦 **Follow on Twitter**: [@nexoscreator](https://twitter.com/nexoscreator)
📧 **Email**: [[email protected]](mailto:[email protected])

If you find this project helpful, please consider **starring ⭐ the repository** or **sponsoring 💖 on GitHub**!


Created with ❤️ by @nexoscreator