Package org.bluez
Interface Media1
- All Superinterfaces:
org.freedesktop.dbus.interfaces.DBusInterface
public interface Media1
extends org.freedesktop.dbus.interfaces.DBusInterface
File generated - 2023-02-20.
Based on bluez Documentation: media-api.txt.
Service: org.bluez
Interface: org.bluez.Media1
Object path:
[variable prefix]/{hci0,hci1,...}
Supported properties:
array{string} SupportedUUIDs [readonly]:
List of 128-bit UUIDs that represents the supported
Endpoint registration.
Based on bluez Documentation: media-api.txt.
Service: org.bluez
Interface: org.bluez.Media1
Object path:
[variable prefix]/{hci0,hci1,...}
Supported properties:
array{string} SupportedUUIDs [readonly]:
List of 128-bit UUIDs that represents the supported
Endpoint registration.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisterApplication(org.freedesktop.dbus.DBusPath _root, Map<String, org.freedesktop.dbus.types.Variant<?>> _options) From bluez documentation:
Register endpoints an player objects within root
object which must implement ObjectManager.
The application object path together with the D-Bus
system bus connection ID define the identification of
the application.
voidRegisterEndpoint(org.freedesktop.dbus.DBusPath _endpoint, Map<String, org.freedesktop.dbus.types.Variant<?>> _properties) From bluez documentation:
Register a local end point to sender, the sender can
register as many end points as it likes.
Note: If the sender disconnects the end points are
automatically unregistered.
possible properties:
string UUID:
UUID of the profile which the endpoint
is for.
UUID must be in the list of
SupportedUUIDS.
byte Codec:
Assigned number of codec that the
endpoint implements.voidRegisterPlayer(org.freedesktop.dbus.DBusPath _player, Map<String, org.freedesktop.dbus.types.Variant<?>> _properties) From bluez documentation:
Register a media player object to sender, the sender
can register as many objects as it likes.
Object must implement at least
org.mpris.MediaPlayer2.Player as defined in MPRIS 2.2
spec:
http://specifications.freedesktop.org/mpris-spec/latest/
Note: If the sender disconnects its objects are
automatically unregistered.
voidUnregisterApplication(org.freedesktop.dbus.DBusPath _application) From bluez documentation:
This unregisters the services that has been
previously registered.voidUnregisterEndpoint(org.freedesktop.dbus.DBusPath _endpoint) From bluez documentation:
Unregister sender end point.
voidUnregisterPlayer(org.freedesktop.dbus.DBusPath _player) From bluez documentation:
Unregister sender media player.
Methods inherited from interface org.freedesktop.dbus.interfaces.DBusInterface
getObjectPath, isRemote
-
Method Details
-
RegisterEndpoint
void RegisterEndpoint(org.freedesktop.dbus.DBusPath _endpoint, Map<String, org.freedesktop.dbus.types.Variant<?>> _properties) throws BluezInvalidArgumentsExceptionFrom bluez documentation:
Register a local end point to sender, the sender can
register as many end points as it likes.
Note: If the sender disconnects the end points are
automatically unregistered.
possible properties:
string UUID:
UUID of the profile which the endpoint
is for.
UUID must be in the list of
SupportedUUIDS.
byte Codec:
Assigned number of codec that the
endpoint implements. The values should
match the profile specification which
is indicated by the UUID.
array{byte} Capabilities:
Capabilities blob, it is used as it is
so the size and byte order must match.
- Parameters:
_endpoint- endpoint_properties- properties- Throws:
BluezInvalidArgumentsException- when argument is invalid
-
UnregisterEndpoint
void UnregisterEndpoint(org.freedesktop.dbus.DBusPath _endpoint) From bluez documentation:
Unregister sender end point.
- Parameters:
_endpoint- endpoint
-
RegisterPlayer
void RegisterPlayer(org.freedesktop.dbus.DBusPath _player, Map<String, org.freedesktop.dbus.types.Variant<?>> _properties) throws BluezInvalidArgumentsException, BluezNotSupportedExceptionFrom bluez documentation:
Register a media player object to sender, the sender
can register as many objects as it likes.
Object must implement at least
org.mpris.MediaPlayer2.Player as defined in MPRIS 2.2
spec:
http://specifications.freedesktop.org/mpris-spec/latest/
Note: If the sender disconnects its objects are
automatically unregistered.
- Parameters:
_player- player_properties- properties- Throws:
BluezInvalidArgumentsException- when argument is invalidBluezNotSupportedException- when operation not supported
-
UnregisterPlayer
void UnregisterPlayer(org.freedesktop.dbus.DBusPath _player) From bluez documentation:
Unregister sender media player.
- Parameters:
_player- player
-
RegisterApplication
void RegisterApplication(org.freedesktop.dbus.DBusPath _root, Map<String, org.freedesktop.dbus.types.Variant<?>> _options) throws BluezInvalidArgumentsException, BluezAlreadyExistsExceptionFrom bluez documentation:
Register endpoints an player objects within root
object which must implement ObjectManager.
The application object path together with the D-Bus
system bus connection ID define the identification of
the application.
- Parameters:
_root- root_options- options- Throws:
BluezInvalidArgumentsException- when argument is invalidBluezAlreadyExistsException- when item already exists
-
UnregisterApplication
void UnregisterApplication(org.freedesktop.dbus.DBusPath _application) throws BluezInvalidArgumentsException, BluezDoesNotExistException From bluez documentation:
This unregisters the services that has been
previously registered. The object path parameter
must match the same value that has been used
on registration.
- Parameters:
_application- application- Throws:
BluezInvalidArgumentsException- when argument is invalidBluezDoesNotExistException- when item does not exist
-