Music Hub  ..
A session-wide music playback service
player.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Thomas Voß <thomas.voss@canonical.com>
17  * Jim Hodapp <jim.hodapp@canonical.com>
18  */
19 
20 #ifndef MPRIS_PLAYER_H_
21 #define MPRIS_PLAYER_H_
22 
23 #include <core/media/player.h>
24 #include <core/media/track.h>
25 
26 #include "core/media/codec.h"
27 
28 #include <core/dbus/bus.h>
29 #include <core/dbus/macros.h>
30 #include <core/dbus/object.h>
31 #include <core/dbus/property.h>
32 #include <core/dbus/interfaces/properties.h>
33 #include <core/dbus/types/any.h>
34 #include <core/dbus/types/object_path.h>
35 #include <core/dbus/types/variant.h>
36 
37 #include <core/dbus/types/stl/tuple.h>
38 
39 #include <boost/utility/identity_type.hpp>
40 
41 #include <string>
42 #include <tuple>
43 #include <vector>
44 
45 #include <cstdint>
46 
47 namespace dbus = core::dbus;
48 
49 namespace mpris
50 {
51 struct Player
52 {
53  static const std::string& name()
54  {
55  static const std::string s{"org.mpris.MediaPlayer2.Player"};
56  return s;
57  }
58 
59  struct LoopStatus
60  {
61  LoopStatus() = delete;
62 
63  static const char* from(core::ubuntu::media::Player::LoopStatus status)
64  {
65  switch(status)
66  {
67  case core::ubuntu::media::Player::LoopStatus::none:
68  return LoopStatus::none;
69  case core::ubuntu::media::Player::LoopStatus::track:
70  return LoopStatus::track;
71  case core::ubuntu::media::Player::LoopStatus::playlist:
72  return LoopStatus::playlist;
73  }
74 
75  return nullptr;
76  }
77 
78  static constexpr const char* none{"None"};
79  static constexpr const char* track{"Track"};
80  static constexpr const char* playlist{"Playlist"};
81  };
82 
84  {
85  PlaybackStatus() = delete;
86 
88  {
89  switch(status)
90  {
91  case core::ubuntu::media::Player::PlaybackStatus::null:
92  case core::ubuntu::media::Player::PlaybackStatus::ready:
93  case core::ubuntu::media::Player::PlaybackStatus::stopped:
95 
96  case core::ubuntu::media::Player::PlaybackStatus::playing:
98  case core::ubuntu::media::Player::PlaybackStatus::paused:
100  }
101 
102  return nullptr;
103  }
104 
105  static constexpr const char* playing{"Playing"};
106  static constexpr const char* paused{"Paused"};
107  static constexpr const char* stopped{"Stopped"};
108  };
109 
110  struct Error
111  {
113  {
114  static constexpr const char* name
115  {
116  "mpris.Player.Error.OutOfProcessBufferStreamingNotSupported"
117  };
118  };
119  };
120 
121  typedef std::map<std::string, core::dbus::types::Variant> Dictionary;
122 
123  DBUS_CPP_METHOD_DEF(Next, Player)
124  DBUS_CPP_METHOD_DEF(Previous, Player)
125  DBUS_CPP_METHOD_DEF(Pause, Player)
126  DBUS_CPP_METHOD_DEF(PlayPause, Player)
127  DBUS_CPP_METHOD_DEF(Stop, Player)
128  DBUS_CPP_METHOD_DEF(Play, Player)
129  DBUS_CPP_METHOD_DEF(Seek, Player)
130  DBUS_CPP_METHOD_DEF(SetPosition, Player)
131  DBUS_CPP_METHOD_DEF(CreateVideoSink, Player)
132  DBUS_CPP_METHOD_DEF(Key, Player)
133  DBUS_CPP_METHOD_DEF(OpenUri, Player)
134  DBUS_CPP_METHOD_DEF(OpenUriExtended, Player)
135 
136  struct Signals
137  {
138  DBUS_CPP_SIGNAL_DEF(Seeked, Player, std::int64_t)
139  DBUS_CPP_SIGNAL_DEF(AboutToFinish, Player, void)
140  DBUS_CPP_SIGNAL_DEF(EndOfStream, Player, void)
141  DBUS_CPP_SIGNAL_DEF(PlaybackStatusChanged, Player, core::ubuntu::media::Player::PlaybackStatus)
142  DBUS_CPP_SIGNAL_DEF(VideoDimensionChanged, Player, core::ubuntu::media::video::Dimensions)
143  DBUS_CPP_SIGNAL_DEF(Error, Player, core::ubuntu::media::Player::Error)
144  };
145 
146  struct Properties
147  {
148  DBUS_CPP_READABLE_PROPERTY_DEF(PlaybackStatus, Player, std::string)
149  DBUS_CPP_READABLE_PROPERTY_DEF(TypedPlaybackStatus, Player, core::ubuntu::media::Player::PlaybackStatus)
150 
151  DBUS_CPP_WRITABLE_PROPERTY_DEF(LoopStatus, Player, std::string)
152  DBUS_CPP_WRITABLE_PROPERTY_DEF(TypedLoopStatus, Player, core::ubuntu::media::Player::LoopStatus)
153  DBUS_CPP_WRITABLE_PROPERTY_DEF(AudioStreamRole, Player, core::ubuntu::media::Player::AudioStreamRole)
154  DBUS_CPP_READABLE_PROPERTY_DEF(Orientation, Player, core::ubuntu::media::Player::Orientation)
155  DBUS_CPP_WRITABLE_PROPERTY_DEF(Lifetime, Player, core::ubuntu::media::Player::Lifetime)
156  DBUS_CPP_WRITABLE_PROPERTY_DEF(PlaybackRate, Player, double)
157  DBUS_CPP_WRITABLE_PROPERTY_DEF(Rate, Player, double)
158  DBUS_CPP_WRITABLE_PROPERTY_DEF(Shuffle, Player, bool)
159  DBUS_CPP_READABLE_PROPERTY_DEF(Metadata, Player, Dictionary)
160  DBUS_CPP_READABLE_PROPERTY_DEF(TypedMetaData, Player, core::ubuntu::media::Track::MetaData)
161  DBUS_CPP_WRITABLE_PROPERTY_DEF(Volume, Player, double)
162  DBUS_CPP_READABLE_PROPERTY_DEF(Position, Player, std::int64_t)
163  DBUS_CPP_READABLE_PROPERTY_DEF(Duration, Player, std::int64_t)
164  DBUS_CPP_READABLE_PROPERTY_DEF(MinimumRate, Player, double)
165  DBUS_CPP_READABLE_PROPERTY_DEF(MaximumRate, Player, double)
166  DBUS_CPP_READABLE_PROPERTY_DEF(IsVideoSource, Player, bool)
167  DBUS_CPP_READABLE_PROPERTY_DEF(IsAudioSource, Player, bool)
168  DBUS_CPP_READABLE_PROPERTY_DEF(CanGoNext, Player, bool)
169  DBUS_CPP_READABLE_PROPERTY_DEF(CanGoPrevious, Player, bool)
170  DBUS_CPP_READABLE_PROPERTY_DEF(CanPlay, Player, bool)
171  DBUS_CPP_READABLE_PROPERTY_DEF(CanPause, Player, bool)
172  DBUS_CPP_READABLE_PROPERTY_DEF(CanSeek, Player, bool)
173  DBUS_CPP_READABLE_PROPERTY_DEF(CanControl, Player, bool)
174  };
175 
176  // Convenience struct to create a skeleton implementation for org.mpris.MediaPlayer2.Player
177  struct Skeleton
178  {
179  static const std::vector<std::string>& the_empty_list_of_invalidated_properties()
180  {
181  static const std::vector<std::string> instance; return instance;
182  }
183 
184  // Creation time options go here.
186  {
187  // The bus connection that should be used
188  core::dbus::Bus::Ptr bus;
189  // The dbus object that should implement org.mpris.MediaPlayer2
190  core::dbus::Object::Ptr object;
191 
192  // Default values for properties
193  struct Defaults
194  {
195  Properties::CanPlay::ValueType can_play{true};
196  Properties::CanPause::ValueType can_pause{true};
197  Properties::CanSeek::ValueType can_seek{true};
198  Properties::CanControl::ValueType can_control{true};
199  Properties::CanGoNext::ValueType can_go_next{true};
200  Properties::CanGoPrevious::ValueType can_go_previous{true};
201  Properties::IsVideoSource::ValueType is_video_source{false};
202  Properties::IsAudioSource::ValueType is_audio_source{true};
203  Properties::PlaybackStatus::ValueType playback_status{PlaybackStatus::stopped};
204  Properties::TypedPlaybackStatus::ValueType typed_playback_status{core::ubuntu::media::Player::PlaybackStatus::null};
205  Properties::LoopStatus::ValueType loop_status{LoopStatus::none};
206  Properties::TypedLoopStatus::ValueType typed_loop_status{core::ubuntu::media::Player::LoopStatus::none};
207  Properties::PlaybackRate::ValueType playback_rate{1.f};
208  Properties::Shuffle::ValueType shuffle{false};
209  Properties::TypedMetaData::ValueType typed_meta_data{};
210  Properties::Volume::ValueType volume{0.f};
211  Properties::Position::ValueType position{0};
212  Properties::Duration::ValueType duration{0};
213  Properties::MinimumRate::ValueType minimum_rate{1.f};
214  Properties::MaximumRate::ValueType maximum_rate{1.f};
215  Properties::Orientation::ValueType orientation{core::ubuntu::media::Player::Orientation::rotate0};
216  } defaults;
217  };
218 
220  : configuration(configuration),
221  properties
222  {
223  configuration.object->template get_property<Properties::CanPlay>(),
224  configuration.object->template get_property<Properties::CanPause>(),
225  configuration.object->template get_property<Properties::CanSeek>(),
226  configuration.object->template get_property<Properties::CanControl>(),
227  configuration.object->template get_property<Properties::CanGoNext>(),
228  configuration.object->template get_property<Properties::CanGoPrevious>(),
229  configuration.object->template get_property<Properties::IsVideoSource>(),
230  configuration.object->template get_property<Properties::IsAudioSource>(),
231  configuration.object->template get_property<Properties::PlaybackStatus>(),
232  configuration.object->template get_property<Properties::TypedPlaybackStatus>(),
233  configuration.object->template get_property<Properties::LoopStatus>(),
234  configuration.object->template get_property<Properties::TypedLoopStatus>(),
235  configuration.object->template get_property<Properties::AudioStreamRole>(),
236  configuration.object->template get_property<Properties::Orientation>(),
237  configuration.object->template get_property<Properties::Lifetime>(),
238  configuration.object->template get_property<Properties::PlaybackRate>(),
239  configuration.object->template get_property<Properties::Shuffle>(),
240  configuration.object->template get_property<Properties::TypedMetaData>(),
241  configuration.object->template get_property<Properties::Volume>(),
242  configuration.object->template get_property<Properties::Position>(),
243  configuration.object->template get_property<Properties::Duration>(),
244  configuration.object->template get_property<Properties::MinimumRate>(),
245  configuration.object->template get_property<Properties::MaximumRate>()
246  },
247  signals
248  {
249  configuration.object->template get_signal<Signals::Seeked>(),
250  configuration.object->template get_signal<Signals::AboutToFinish>(),
251  configuration.object->template get_signal<Signals::EndOfStream>(),
252  configuration.object->template get_signal<Signals::PlaybackStatusChanged>(),
253  configuration.object->template get_signal<Signals::VideoDimensionChanged>(),
254  configuration.object->template get_signal<Signals::Error>(),
255  configuration.object->template get_signal<core::dbus::interfaces::Properties::Signals::PropertiesChanged>()
256  }
257  {
258  properties.can_play->set(configuration.defaults.can_play);
259  properties.can_pause->set(configuration.defaults.can_pause);
260  properties.can_seek->set(configuration.defaults.can_seek);
261  properties.can_control->set(configuration.defaults.can_control);
262  properties.can_go_next->set(configuration.defaults.can_go_next);
263  properties.can_go_previous->set(configuration.defaults.can_go_previous);
264  properties.is_video_source->set(configuration.defaults.is_video_source);
265  properties.is_audio_source->set(configuration.defaults.is_audio_source);
266  properties.playback_status->set(configuration.defaults.playback_status);
267  properties.typed_playback_status->set(configuration.defaults.typed_playback_status);
268  properties.loop_status->set(configuration.defaults.loop_status);
269  properties.typed_loop_status->set(configuration.defaults.typed_loop_status);
270  properties.audio_stream_role->set(core::ubuntu::media::Player::AudioStreamRole::multimedia);
271  properties.orientation->set(core::ubuntu::media::Player::Orientation::rotate0);
272  properties.lifetime->set(core::ubuntu::media::Player::Lifetime::normal);
273  properties.playback_rate->set(configuration.defaults.playback_rate);
274  properties.is_shuffle->set(configuration.defaults.shuffle);
275  properties.position->set(configuration.defaults.position);
276  properties.duration->set(configuration.defaults.duration);
277  properties.minimum_playback_rate->set(configuration.defaults.minimum_rate);
278  properties.maximum_playback_rate->set(configuration.defaults.maximum_rate);
279 
280  // Make sure the Orientation Property gets sent over DBus to the client
281  properties.orientation->changed().connect([this](const core::ubuntu::media::Player::Orientation& o)
282  {
283  on_property_value_changed<Properties::Orientation>(o);
284  });
285 
286  properties.position->changed().connect([this](std::int64_t position)
287  {
288  on_property_value_changed<Properties::Position>(position);
289  });
290 
291  properties.duration->changed().connect([this](std::int64_t duration)
292  {
293  on_property_value_changed<Properties::Duration>(duration);
294  });
295 
296  properties.playback_status->changed().connect([this](const std::string& status)
297  {
298  on_property_value_changed<Properties::PlaybackStatus>(status);
299  });
300 
301  properties.loop_status->changed().connect([this](const std::string& status)
302  {
303  on_property_value_changed<Properties::LoopStatus>(status);
304  });
305  }
306 
307  template<typename Property>
308  void on_property_value_changed(const typename Property::ValueType& value)
309  {
310  Dictionary dict; dict[Property::name()] = dbus::types::Variant::encode(value);
311 
312  signals.properties_changed->emit(std::make_tuple(
313  dbus::traits::Service<Player>::interface_name(),
314  dict,
316  }
317 
318  Dictionary get_all_properties()
319  {
320  Dictionary dict;
321  dict[Properties::CanPlay::name()] = dbus::types::Variant::encode(properties.can_play->get());
322  dict[Properties::CanPause::name()] = dbus::types::Variant::encode(properties.can_pause->get());
323  dict[Properties::CanSeek::name()] = dbus::types::Variant::encode(properties.can_seek->get());
324  dict[Properties::CanControl::name()] = dbus::types::Variant::encode(properties.can_control->get());
325  dict[Properties::CanGoNext::name()] = dbus::types::Variant::encode(properties.can_go_next->get());
326  dict[Properties::CanGoPrevious::name()] = dbus::types::Variant::encode(properties.can_go_previous->get());
327  dict[Properties::PlaybackStatus::name()] = dbus::types::Variant::encode(properties.playback_status->get());
328  dict[Properties::TypedPlaybackStatus::name()] = dbus::types::Variant::encode(properties.typed_playback_status->get());
329  dict[Properties::LoopStatus::name()] = dbus::types::Variant::encode(properties.loop_status->get());
330  dict[Properties::TypedLoopStatus::name()] = dbus::types::Variant::encode(properties.typed_loop_status->get());
331  dict[Properties::AudioStreamRole::name()] = dbus::types::Variant::encode(properties.audio_stream_role->get());
332  dict[Properties::Orientation::name()] = dbus::types::Variant::encode(properties.orientation->get());
333  dict[Properties::Lifetime::name()] = dbus::types::Variant::encode(properties.lifetime->get());
334  dict[Properties::PlaybackRate::name()] = dbus::types::Variant::encode(properties.playback_rate->get());
335  dict[Properties::Shuffle::name()] = dbus::types::Variant::encode(properties.is_shuffle->get());
336  dict[Properties::Duration::name()] = dbus::types::Variant::encode(properties.duration->get());
337  dict[Properties::Position::name()] = dbus::types::Variant::encode(properties.position->get());
338  dict[Properties::MinimumRate::name()] = dbus::types::Variant::encode(properties.minimum_playback_rate->get());
339  dict[Properties::MaximumRate::name()] = dbus::types::Variant::encode(properties.maximum_playback_rate->get());
340 
341  return dict;
342  }
343 
344  // We just store creation time properties
346  // All the properties exposed to the bus go here.
347  struct
348  {
349  std::shared_ptr<core::dbus::Property<Properties::CanPlay>> can_play;
350  std::shared_ptr<core::dbus::Property<Properties::CanPause>> can_pause;
351  std::shared_ptr<core::dbus::Property<Properties::CanSeek>> can_seek;
352  std::shared_ptr<core::dbus::Property<Properties::CanControl>> can_control;
353  std::shared_ptr<core::dbus::Property<Properties::CanGoNext>> can_go_next;
354  std::shared_ptr<core::dbus::Property<Properties::CanGoPrevious>> can_go_previous;
355  std::shared_ptr<core::dbus::Property<Properties::IsVideoSource>> is_video_source;
356  std::shared_ptr<core::dbus::Property<Properties::IsAudioSource>> is_audio_source;
357 
358  std::shared_ptr<core::dbus::Property<Properties::PlaybackStatus>> playback_status;
359  std::shared_ptr<core::dbus::Property<Properties::TypedPlaybackStatus>> typed_playback_status;
360  std::shared_ptr<core::dbus::Property<Properties::LoopStatus>> loop_status;
361  std::shared_ptr<core::dbus::Property<Properties::TypedLoopStatus>> typed_loop_status;
362  std::shared_ptr<core::dbus::Property<Properties::AudioStreamRole>> audio_stream_role;
363  std::shared_ptr<core::dbus::Property<Properties::Orientation>> orientation;
364  std::shared_ptr<core::dbus::Property<Properties::Lifetime>> lifetime;
365  std::shared_ptr<core::dbus::Property<Properties::PlaybackRate>> playback_rate;
366  std::shared_ptr<core::dbus::Property<Properties::Shuffle>> is_shuffle;
367  std::shared_ptr<core::dbus::Property<Properties::TypedMetaData>> typed_meta_data_for_current_track;
368  std::shared_ptr<core::dbus::Property<Properties::Volume>> volume;
369  std::shared_ptr<core::dbus::Property<Properties::Position>> position;
370  std::shared_ptr<core::dbus::Property<Properties::Duration>> duration;
371  std::shared_ptr<core::dbus::Property<Properties::MinimumRate>> minimum_playback_rate;
372  std::shared_ptr<core::dbus::Property<Properties::MaximumRate>> maximum_playback_rate;
373  } properties;
374 
375  struct
376  {
377  typename core::dbus::Signal<Signals::Seeked, Signals::Seeked::ArgumentType>::Ptr seeked_to;
378  typename core::dbus::Signal<Signals::AboutToFinish, Signals::AboutToFinish::ArgumentType>::Ptr about_to_finish;
379  typename core::dbus::Signal<Signals::EndOfStream, Signals::EndOfStream::ArgumentType>::Ptr end_of_stream;
380  typename core::dbus::Signal<Signals::PlaybackStatusChanged, Signals::PlaybackStatusChanged::ArgumentType>::Ptr playback_status_changed;
381  typename core::dbus::Signal<Signals::VideoDimensionChanged, Signals::VideoDimensionChanged::ArgumentType>::Ptr video_dimension_changed;
382  typename core::dbus::Signal<Signals::Error, Signals::Error::ArgumentType>::Ptr error;
383 
384  dbus::Signal
385  <
386  core::dbus::interfaces::Properties::Signals::PropertiesChanged,
387  core::dbus::interfaces::Properties::Signals::PropertiesChanged::ArgumentType
389  } signals;
390  };
391 };
392 }
393 
394 #endif // MPRIS_PLAYER_H_
struct mpris::Player::Skeleton::@16 signals
std::shared_ptr< core::dbus::Property< Properties::Duration > > duration
Definition: player.h:370
void on_property_value_changed(const typename Property::ValueType &value)
Definition: player.h:308
std::shared_ptr< core::dbus::Property< Properties::AudioStreamRole > > audio_stream_role
Definition: player.h:362
std::tuple< Height, Width > Dimensions
Height and Width of a video.
Definition: dimensions.h:139
Properties::CanGoPrevious::ValueType can_go_previous
Definition: player.h:200
std::shared_ptr< core::dbus::Property< Properties::IsAudioSource > > is_audio_source
Definition: player.h:356
Properties::CanControl::ValueType can_control
Definition: player.h:198
std::shared_ptr< core::dbus::Property< Properties::LoopStatus > > loop_status
Definition: player.h:360
Properties::MaximumRate::ValueType maximum_rate
Definition: player.h:214
Properties::Volume::ValueType volume
Definition: player.h:210
static const std::string & name()
Definition: player.h:53
static constexpr const char * none
Definition: player.h:78
std::shared_ptr< core::dbus::Property< Properties::MinimumRate > > minimum_playback_rate
Definition: player.h:371
Properties::Duration::ValueType duration
Definition: player.h:212
core::dbus::Object::Ptr object
Definition: player.h:190
static constexpr const char * playlist
Definition: player.h:80
static constexpr const char * paused
Definition: player.h:106
std::shared_ptr< core::dbus::Property< Properties::MaximumRate > > maximum_playback_rate
Definition: player.h:372
Properties::CanGoNext::ValueType can_go_next
Definition: player.h:199
static constexpr const char * stopped
Definition: player.h:107
struct mpris::Player::Skeleton::@15 properties
static const char * from(core::ubuntu::media::Player::PlaybackStatus status)
Definition: player.h:87
core::dbus::Signal< Signals::VideoDimensionChanged, Signals::VideoDimensionChanged::ArgumentType >::Ptr video_dimension_changed
Definition: player.h:381
Properties::CanPause::ValueType can_pause
Definition: player.h:196
static const std::vector< std::string > & the_empty_list_of_invalidated_properties()
Definition: player.h:179
std::shared_ptr< core::dbus::Property< Properties::Shuffle > > is_shuffle
Definition: player.h:366
Properties::TypedPlaybackStatus::ValueType typed_playback_status
Definition: player.h:204
Properties::PlaybackStatus::ValueType playback_status
Definition: player.h:203
Properties::Orientation::ValueType orientation
Definition: player.h:215
struct mpris::Player::Skeleton::Configuration::Defaults defaults
Properties::Position::ValueType position
Definition: player.h:211
std::map< std::string, core::dbus::types::Variant > Dictionary
Definition: player.h:121
static const char * from(core::ubuntu::media::Player::LoopStatus status)
Definition: player.h:63
Configuration configuration
Definition: player.h:345
core::dbus::Signal< Signals::AboutToFinish, Signals::AboutToFinish::ArgumentType >::Ptr about_to_finish
Definition: player.h:378
std::shared_ptr< core::dbus::Property< Properties::IsVideoSource > > is_video_source
Definition: player.h:355
std::shared_ptr< core::dbus::Property< Properties::TypedLoopStatus > > typed_loop_status
Definition: player.h:361
std::shared_ptr< core::dbus::Property< Properties::CanGoPrevious > > can_go_previous
Definition: player.h:354
std::shared_ptr< core::dbus::Property< Properties::CanPause > > can_pause
Definition: player.h:350
Properties::PlaybackRate::ValueType playback_rate
Definition: player.h:207
Properties::TypedLoopStatus::ValueType typed_loop_status
Definition: player.h:206
std::shared_ptr< core::dbus::Property< Properties::Lifetime > > lifetime
Definition: player.h:364
Properties::CanSeek::ValueType can_seek
Definition: player.h:197
Dictionary get_all_properties()
Definition: player.h:318
std::shared_ptr< core::dbus::Property< Properties::Volume > > volume
Definition: player.h:368
std::shared_ptr< core::dbus::Property< Properties::CanSeek > > can_seek
Definition: player.h:351
static constexpr const char * track
Definition: player.h:79
core::dbus::Signal< Signals::Seeked, Signals::Seeked::ArgumentType >::Ptr seeked_to
Definition: player.h:377
Properties::TypedMetaData::ValueType typed_meta_data
Definition: player.h:209
Properties::IsAudioSource::ValueType is_audio_source
Definition: player.h:202
std::shared_ptr< core::dbus::Property< Properties::Orientation > > orientation
Definition: player.h:363
Skeleton(const Configuration &configuration)
Definition: player.h:219
std::shared_ptr< core::dbus::Property< Properties::TypedPlaybackStatus > > typed_playback_status
Definition: player.h:359
Properties::MinimumRate::ValueType minimum_rate
Definition: player.h:213
std::shared_ptr< core::dbus::Property< Properties::PlaybackStatus > > playback_status
Definition: player.h:358
Properties::CanPlay::ValueType can_play
Definition: player.h:195
std::shared_ptr< core::dbus::Property< Properties::TypedMetaData > > typed_meta_data_for_current_track
Definition: player.h:367
core::dbus::Signal< Signals::EndOfStream, Signals::EndOfStream::ArgumentType >::Ptr end_of_stream
Definition: player.h:379
std::shared_ptr< core::dbus::Property< Properties::CanPlay > > can_play
Definition: player.h:349
Properties::IsVideoSource::ValueType is_video_source
Definition: player.h:201
std::shared_ptr< core::dbus::Property< Properties::CanControl > > can_control
Definition: player.h:352
static constexpr const char * playing
Definition: player.h:105
std::shared_ptr< core::dbus::Property< Properties::Position > > position
Definition: player.h:369
std::shared_ptr< core::dbus::Property< Properties::CanGoNext > > can_go_next
Definition: player.h:353
Properties::LoopStatus::ValueType loop_status
Definition: player.h:205
std::shared_ptr< core::dbus::Property< Properties::PlaybackRate > > playback_rate
Definition: player.h:365
dbus::Signal< core::dbus::interfaces::Properties::Signals::PropertiesChanged, core::dbus::interfaces::Properties::Signals::PropertiesChanged::ArgumentType >::Ptr properties_changed
Definition: player.h:388
core::dbus::Signal< Signals::PlaybackStatusChanged, Signals::PlaybackStatusChanged::ArgumentType >::Ptr playback_status_changed
Definition: player.h:380
core::dbus::Signal< Signals::Error, Signals::Error::ArgumentType >::Ptr error
Definition: player.h:382
Properties::Shuffle::ValueType shuffle
Definition: player.h:208