TAAFT
Free mode
100% free
Freemium
Free Trial
Deals

Next.js Video Player with ImageKit

techwithtim / VideoPlayer

Next.js video player app with ImageKit integration

6 0 Language: TypeScript Updated: 3mo ago

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

  1. Install dependencies:

    npm install
  2. Create .env.local from the example:

    cp .env.local.example .env.local
  3. 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
  4. Run the dev server:

    npm run dev
  5. 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

Resources

0 AIs selected
Clear selection
#
Name
Task