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.
-
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
orproduction
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
orPlyr
USE_CACHE
false
Whether to use last scan results. If true, video infos will be cached in cache/scan-cache.json
. -
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
-
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