Skip to content

SmileMachine/local-video-player

Repository files navigation

Video Player

wakatime

中文文档

A simple video player built with Vue 3, Vite and Express.

You can specify the path to your local video folder in the configuration, and access it through the browser after starting the service.

Getting Started

  1. Configure environment variables in .env

    Variable Default Description
    PORT 3000 Server port
    HOST localhost Address to bind to
    NODE_ENV development Environment. Can be either development or production
    GET_VID_INFO true Whether to fetch video infos like duration and codec. May take a long time if there are many videos. ffmpeg is needed.
    PLAYER_TYPE Plyr Player type. Can be either DPlayer or Plyr
    USE_CACHE false Whether to use last scan results. If true, video infos will be cached in cache/scan-cache.json.
  2. Install dependencies, build frontend, and start server

    npm install
    npm run build
    npm run start
    # or
    npm run start:cache # use cache to skip scanning
  3. Development mode, using Vite for frontend and Express for backend, both with hot reload

    npm install
    npm run dev
    # or
    npm run dev:cache # use cache to skip scanning

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published