Next.js Video Player with ImageKit
Next.js video player app with ImageKit integration
README
Next.js Video Player with ImageKit
A video player built with Next.js and ImageKit featuring adaptive streaming, subtitles, watermarks, and quality control.
Features
- Adaptive Bitrate Streaming (HLS)
- Multi-language Subtitles (SRT, VTT, ASS)
- Dynamic Watermarking
- Quality Control (240p - 1080p)
- Auto-generated Thumbnails
- Video Library with JSON storage
Setup
-
Install dependencies:
npm install -
Create
.env.localfrom the example:cp .env.local.example .env.local -
Add your ImageKit credentials to
.env.local:NEXT_PUBLIC_IMAGEKIT_URL_ENDPOINT=https://ik.imagekit.io/your_imagekit_id IMAGEKIT_PUBLIC_KEY=your_public_key IMAGEKIT_PRIVATE_KEY=your_private_key -
Run the dev server:
npm run dev -
Open http://localhost:3000
ImageKit Features Used
- HLS Streaming:
video.mp4/ik-master.m3u8?tr=sr-240_360_480_720_1080 - Thumbnails:
video.mp4/ik-thumbnail.jpg - Subtitle Overlays:
l-subtitles,i-subtitles.srt - Image Watermarks:
l-image,i-watermark.png - Quality Control:
tr=q-70
