Skip to main content

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

  1. install auto-play-in-mpv: pipx install auto-play-in-mpv, start as apim.
  2. install tampermonkey in your browser
  3. install the script from greasyfork
  4. 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


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)

Uploaded Source

Built Distribution

auto_play_in_mpv-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for auto_play_in_mpv-0.1.2.tar.gz
Algorithm Hash digest
SHA256 df2c80688b046b4d1d25a87cd151583a226c5859dc4c2cbfdf9e76350665873b
MD5 3cd9a435fd8b77f2b0a93eccea59e051
BLAKE2b-256 8fa86f8d96d8d7708f538cf656049e830706beb0a2a38ff32112da897efb7094

See more details on using hashes here.

File details

Details for the file auto_play_in_mpv-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_play_in_mpv-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 64e31d3dda59b2c1203b179c8a9fbaf89e873fe09e40a9e6665fcb773ed015d6
MD5 c16762f4623bb3296c685acb2fdc896b
BLAKE2b-256 4dd6ab37a83b6d6ade11e9001c6d5e291c62a4e9be45042bdcb633c3b0658599

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page