AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MPRISPlayer.h>
Public Member Functions | |
virtual | ~MPRISPlayer () |
Destructor. More... | |
Public Member Functions inherited from alexaClientSDK::bluetoothImplementations::blueZ::DBusObject< MPRISPlayer > | |
virtual | ~DBusObject ()=default |
Public Member Functions inherited from alexaClientSDK::bluetoothImplementations::blueZ::DBusObjectBase | |
virtual | ~DBusObjectBase () |
bool | registerWithDBus () |
void | unregisterObject () |
Static Public Member Functions | |
static std::unique_ptr< MPRISPlayer > | create (std::shared_ptr< DBusConnection > connection, std::shared_ptr< DBusProxy > media, std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus > eventBus, const std::string &playerPath=MPRIS_OBJECT_PATH) |
Static Public Attributes | |
static const std::string | MPRIS_OBJECT_PATH |
The default MPRIS object path for players. More... | |
Additional Inherited Members | |
Public Types inherited from alexaClientSDK::bluetoothImplementations::blueZ::DBusObject< MPRISPlayer > | |
using | commandHandler_t = void(MPRISPlayer ::*)(GVariant *parameters, GDBusMethodInvocation *invocation) |
Protected Member Functions inherited from alexaClientSDK::bluetoothImplementations::blueZ::DBusObject< MPRISPlayer > | |
DBusObject (std::shared_ptr< DBusConnection > connection, std::string xmlInterfaceIntrospection, std::string objectPath, std::unordered_map< std::string, commandHandler_t > methodMap) | |
Protected Member Functions inherited from alexaClientSDK::bluetoothImplementations::blueZ::DBusObjectBase | |
DBusObjectBase (std::shared_ptr< DBusConnection > connection, const std::string &xmlInterfaceIntrospection, const std::string &objectPath, GDBusInterfaceMethodCallFunc methodCallFunc) | |
void | onMethodCalledInternal (const char *methodName) |
|
virtual |
Destructor.
|
static |
Creates an instance of the MPRISPlayer.
connection | A DBusConnection object. |
media | The org.bluez.Media1 object. |
eventBus | The eventbus to notify of the AVRCPCommand . |
playerPath | The object path to create the player at. This is defaulted to the path specified by MPRIS, but BlueZ will accept other paths as well. |
MPRISPlayer
if successful, else a nullptr.
|
static |
The default MPRIS object path for players.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0