Automatically redirect to mpv player when playing online video
Project description
Auto play in MPV
Automatically redirect to mpv player when playing online video.
Installation / Usage
- install auto-play-in-mpv:
pipx install auto-play-in-mpv
, start asapim
. - install tampermonkey in your browser
- install the script from greasyfork
- just click a video from supported sites.
mpv config
Note that this is just my config example. You may need to change some settings.
Autostart server
It's better to start the websocket server at startup.
- On NixOS: Add this to your
configuration.nix
systemd.user.services.apim = { enable = true; description = "Open online video in local mpv player"; script = "~/.local/bin/apim"; wantedBy = [ "default.target" ]; path = with pkgs; [ mpv yt-dlp kdePackages.kwallet ]; };
Supported sites
- bilibili (video, live)
- youtube
TODO
- auto start
- fix behavior on youtube
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
auto_play_in_mpv-0.1.2.tar.gz
(13.0 kB
view details)
Built Distribution
File details
Details for the file auto_play_in_mpv-0.1.2.tar.gz
.
File metadata
- Download URL: auto_play_in_mpv-0.1.2.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df2c80688b046b4d1d25a87cd151583a226c5859dc4c2cbfdf9e76350665873b |
|
MD5 | 3cd9a435fd8b77f2b0a93eccea59e051 |
|
BLAKE2b-256 | 8fa86f8d96d8d7708f538cf656049e830706beb0a2a38ff32112da897efb7094 |
File details
Details for the file auto_play_in_mpv-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: auto_play_in_mpv-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64e31d3dda59b2c1203b179c8a9fbaf89e873fe09e40a9e6665fcb773ed015d6 |
|
MD5 | c16762f4623bb3296c685acb2fdc896b |
|
BLAKE2b-256 | 4dd6ab37a83b6d6ade11e9001c6d5e291c62a4e9be45042bdcb633c3b0658599 |