38 access_service()->object_for_path(
39 dbus::types::ObjectPath(
40 dbus::traits::Service<media::Service>::object_path()))})
50 auto op = d->object->invoke_method_synchronously<mpris::Service::CreateSession,
51 dbus::types::ObjectPath>();
54 throw std::runtime_error(
"Problem creating session: " + op.error());
56 return std::shared_ptr<media::Player>(
new media::PlayerStub(shared_from_this(), op.value()));
61 std::cout << __PRETTY_FUNCTION__ << std::endl;
62 auto op = d->object->invoke_method_synchronously<mpris::Service::PauseOtherSessions,
66 throw std::runtime_error(
"Problem pausing other sessions: " + op.error());
core::dbus::Bus::Ptr the_session_bus()