Coder Social home page Coder Social logo

Comments (2)

hoyon avatar hoyon commented on May 30, 2024

and add the relevant dbus interfaces in /usr/lib/dbus-1/system.d/

What do you mean by this?

It looks like you're loading the plugin multiple times. eg you're adding it to the command with --script and also have mpris.so installed in ~/.config/mpv/scripts/mpris.so and/or /etc/mpv/scripts.

The plugin doesn't currently protect against this and won't work correctly if loaded multiple times.

from mpv-mpris.

ZachIndigo avatar ZachIndigo commented on May 30, 2024

My dbus denies everything except what I allow in /usr/share/dbus-1/system.d/, I believe it has to do with how Arch Linux does pipewire.

So I tried running mpv without the command (using ~/.config/mpv/scripts/mpris.so), and moving mpris.so and loading it manually, and in both cases nothing pops up in dbus.

$ playerctl -l
mpd
mpd

$ dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames
method return time=1618424795.126584 sender=org.freedesktop.DBus -> destination=:1.282 serial=3 reply_serial=2
   array [
      string "org.freedesktop.DBus"
      string ":1.205"
      string "org.freedesktop.Notifications"
      string ":1.7"
      string "org.freedesktop.login1"
      string "org.freedesktop.ReserveDevice1.Audio0"
      string ":1.207"
      string ":1.72"
      string ":1.73"
      string ":1.40"
      string "org.freedesktop.DisplayManager"
      string ":1.41"
      string ":1.282"
      string ":1.75"
      string "org.freedesktop.PolicyKit1"
      string "org.bluez"
      string ":1.76"
      string ":1.10"
      string ":1.77"
      string ":1.33"
      string ":1.11"
      string "org.pulseaudio.Server"
      string ":1.14"
      string ":1.277"
      string ":1.38"
      string ":1.3"
      string ":1.39"
      string ":1.4"
      string "org.freedesktop.RealtimeKit1"
      string "org.mpris.MediaPlayer2.mpd"
   ]

And in both cases, mpv doesn't output any errors or messages except for what is playing

[file] This is a directory - adding to playlist.

Playing: /home/zachir/Videos/How+To+Enable+DRM+Restricted+Content+In+LibreWolf-bJsdnBxDKI8(1).mp4
 (+) Video --vid=1 (*) (h264 640x360 30.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 640x360 yuv420p
AV: 00:01:28 / 00:04:53 (30%) A-V:  0.000

Exiting... (Quit)

from mpv-mpris.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.