Comments (4)
First: this is not related to bluez-dbus because the mpris stuff has nothing to do with bluetooth or bluez.
I assume you are not listening to the correct dbus bus.
Bluez is usually found on system bus, while most of the things happening in user context is on session bus.
The sample you referenced uses the system bus only to catch properties changed events issued by/for bluez related actions.
As I don't have the mpris stuff on my Ubuntu machine, I cannot check, but I would check if the desired information is found on session bus.
from bluez-dbus.
First: this is not related to bluez-dbus because the mpris stuff has nothing to do with bluetooth or bluez.
I assume you are not listening to the correct dbus bus. Bluez is usually found on system bus, while most of the things happening in user context is on session bus.
Sorry, I'm pretty new to dbus, didn't know there's system bus and there's session bus.
The sample you referenced uses the system bus only to catch properties changed events issued by/for bluez related actions.
I added the code before the filtering-out-bluez code, I can see information about org.freedesktop.NetworkManager
or org.freedesktop.systemd1.Service
been printed, but no Metadata
information of org.mpris.MediaPlayer2.Player
. So I guess your assumption could be right. But I do see PlaybackStatus
information of org.mpris.MediaPlayer2.Player
, could firefox send these two information to different bus?
As I don't have the mpris stuff on my Ubuntu machine, I cannot check, but I would check if the desired information is found on session bus.
The mpris interface stuff seems been implemented in firefox 75 already. I also tested Audacious media player, I also see information about org.mpris.MediaPlayer2.Player
in dbus-monitor
command ouput.
from bluez-dbus.
Firefox does not provide mpris on my machine, nothing to see in d-feet on system or session bus.
When starting audacious, I can see the mpris stuff in the audacious process on session bus org.mpris.MediaPlayer2.audacious
.
So it looks like you have to add a listener to the session bus.
from bluez-dbus.
Firefox does not provide mpris on my machine, nothing to see in d-feet on system or session bus.
I guess you need visit a URL contains media content (say, youtube), and play it.
So it looks like you have to add a listener to the session bus.
Yes, you're totally correct. I test it today, and I got the Metadata
information as expected from session bus.
from bluez-dbus.
Related Issues (20)
- How to pair a new device (phone) using bluez-dbus HOT 2
- New minor release with recent fixes HOT 1
- how to response to ATT `Handle Value Notification` HOT 1
- Possible Map marshalling/de-marshalling issue HOT 1
- Scan Response (Question) HOT 2
- GATTService address wrong ? HOT 3
- "could not load FFI provider jnr.ffi.provider.jffi.Provider" when using module-info.java HOT 1
- Ability to remove property and signal handlers from the com.github.hypfvieh.bluetooth.DeviceManager HOT 2
- Can I write a descriptor to enable notification? HOT 2
- bluez-dbus license HOT 1
- Question Mesh API support HOT 4
- File descriptors in method returns HOT 3
- Create A BLE Server HOT 1
- bluez-dbus with dbus-java 3.3.2 HOT 2
- How to use this library for Bluetooth intermediate communication HOT 22
- How to set bluetooth mtu HOT 3
- get RSSI fail HOT 2
- Bluetooth scanning can scan for devices that are turned off HOT 4
- Method "Disconnect" on interface "org.bluez.Device1" doesn't exist HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluez-dbus.