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

https://github.com/dds05/vertical-player

video.js based player built with nextjs to facilitate a vertical scrolling experience.
https://github.com/dds05/vertical-player

vertical-player vertical-video-player videojs

Last synced: 5 months ago
JSON representation

video.js based player built with nextjs to facilitate a vertical scrolling experience.

Awesome Lists containing this project

README

          

## Vertical Player
A video.js based video player built with Next.js, focused on immersive, scrollable vertical video playback (similar to TikTok/Reels).


Screenshot 2025-12-28 at 12 35 17 AM

## 👉🏻 Installation
```
npm install vertical-player
```

## 👨🏻‍💻 Usage
```
"use client"
import {VerticalPlayer} from 'vertical-player/esm/index.es.js';

export default function Home() {
const handleLike=(e)=>{
console.log(e);
}

const handleShare=(e)=>{
console.log(e);
}

const DATA: any = [
{
id: 1,
tag: "BRAND",
asset_url: 'https://www.abc.com/~dnn/clips/RW20seconds_2.mp4',
description: 'This is a simple description which describes the video'
},
{
id: 2,
tag: "BRAND",
asset_url: 'https://www.abc.com/~dnn/clips/RW20seconds_2.mp4',
description: 'This is a simple description which describes the video'
},
{
id: 3,
tag: "BRAND",
asset_url: 'https://www.abc.com/~dnn/clips/RW20seconds_2.mp4',
description: 'This is a simple description which describes the video'
},
{
id: 4,
tag: "BRAND",
asset_url: 'https://www.abc.com/~dnn/clips/RW20seconds_2.mp4',
description: 'This is a simple description which describes the video'
},
{
id: 5,
tag: "BRAND",
asset_url: 'https://www.abc.com/~dnn/clips/RW20seconds_2.mp4',
description: 'This is a simple description which describes the video'
},

];
return (

);
}

```

## 👉🏻 Options

| Option | Type | Required | Description |
| ------- | -------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `data` | `object[]` | ✅ Yes | Array of objects containing url of the asset and metadata: id, title, description |
| `handleLike` | `fn()` | ❌ No | Callback fn emitted when like button is clicked
| `handleShare` | `fn()` | ❌ No | Callback fn emitted when share button is clicked


## Demo

https://github.com/user-attachments/assets/44fc682d-dea6-4013-8daf-113058a68cf6

## ❤️ Support
https://buymeacoffee.com/dds05