Skip to content

Player for local videos with light/dark theme, keyboard shortcuts, progress retrieval and more.

License

Notifications You must be signed in to change notification settings

dltmtt/video-player

Repository files navigation

Player for local videos

This video player is a PWA that allows you to watch local videos in your browser. It supports the following features:

  • Light/dark theme (following system preferences)
  • Continue watching from where you left off1
  • Keyboard shortcuts
  • Global Media Controls integration
  • Register as a handler for video files

Screenshots

Selection screen (light) Selection screen (dark) Video screen (light) Video screen (dark)

Usage

To open a video, drag and drop it onto the app or click on the Choose file button. If another video is opened, its state will be saved and the dragged video will replace the current one.

Alternatively, install the PWA, right click on the video you want to open, select Open With and choose this app. You can also register this app as the default handler for video files by right clicking on a video file, selecting Get Info, scrolling down to Open with, selecting this app and clicking on Change All....

Note: In order for Picture-in-Picture (PiP) to work, Chrome must be opened (launching only this PWA won't work). I guess it's a bug in Chrome..

Keyboard shortcuts

The following keyboard shortcuts are supported:

Key Action
Space
K
Toggle play/pause
S Slow down by 0.1x
D Speed up by 0.1x
Z

Rewind 10 seconds
X

Forward 10 seconds
R Reset default speed
T Toggle time/remaining
A Set speed to 1.8x
C Toggle video zoom
P Toggle PiP
F
Enter
Toggle fullscreen

Footnotes

  1. The video state is saved in the browser's local storage. If you clear your browser's data, the state will be lost. Saved state will be deleted upon video completion or for videos last played more than 30 days before.

About

Player for local videos with light/dark theme, keyboard shortcuts, progress retrieval and more.

Topics

Resources

License

Stars

Watchers

Forks