Music Hub  ..
A session-wide music playback service
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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 <boost/utility/identity_type.hpp>
38 
39 #include <string>
40 #include <tuple>
41 #include <vector>
42 
43 namespace dbus = core::dbus;
44 
45 namespace mpris
46 {
47 struct Player
48 {
49  static const std::string& name()
50  {
51  static const std::string s{"org.mpris.MediaPlayer2.Player"};
52  return s;
53  }
54 
55  struct LoopStatus
56  {
57  LoopStatus() = delete;
58 
59  static const char* from(core::ubuntu::media::Player::LoopStatus status)
60  {
61  switch(status)
62  {
63  case core::ubuntu::media::Player::LoopStatus::none:
64  return LoopStatus::none;
65  case core::ubuntu::media::Player::LoopStatus::track:
66  return LoopStatus::track;
67  case core::ubuntu::media::Player::LoopStatus::playlist:
68  return LoopStatus::playlist;
69  }
70 
71  return nullptr;
72  }
73 
74  static constexpr const char* none{"None"};
75  static constexpr const char* track{"Track"};
76  static constexpr const char* playlist{"Playlist"};
77  };
78 
80  {
81  PlaybackStatus() = delete;
82 
84  {
85  switch(status)
86  {
87  case core::ubuntu::media::Player::PlaybackStatus::null:
88  case core::ubuntu::media::Player::PlaybackStatus::ready:
89  case core::ubuntu::media::Player::PlaybackStatus::stopped:
91 
92  case core::ubuntu::media::Player::PlaybackStatus::playing:
94  case core::ubuntu::media::Player::PlaybackStatus::paused:
96  }
97 
98  return nullptr;
99  }
100 
101  static constexpr const char* playing{"Playing"};
102  static constexpr const char* paused{"Paused"};
103  static constexpr const char* stopped{"Stopped"};
104  };
105 
106  typedef std::map<std::string, core::dbus::types::Variant> Dictionary;
107 
108  DBUS_CPP_METHOD_DEF(Next, Player)
109  DBUS_CPP_METHOD_DEF(Previous, Player)
110  DBUS_CPP_METHOD_DEF(Pause, Player)
111  DBUS_CPP_METHOD_DEF(PlayPause, Player)
112  DBUS_CPP_METHOD_DEF(Stop, Player)
113  DBUS_CPP_METHOD_DEF(Play, Player)
114  DBUS_CPP_METHOD_DEF(Seek, Player)
115  DBUS_CPP_METHOD_DEF(SetPosition, Player)
116  DBUS_CPP_METHOD_DEF(CreateVideoSink, Player)
117  DBUS_CPP_METHOD_DEF(Key, Player)
118  DBUS_CPP_METHOD_DEF(OpenUri, Player)
119  DBUS_CPP_METHOD_DEF(OpenUriExtended, Player)
120 
121  struct Signals
122  {
123  DBUS_CPP_SIGNAL_DEF(Seeked, Player, std::int64_t)
124  DBUS_CPP_SIGNAL_DEF(EndOfStream, Player, void)
125  DBUS_CPP_SIGNAL_DEF(PlaybackStatusChanged, Player, core::ubuntu::media::Player::PlaybackStatus)
126  DBUS_CPP_SIGNAL_DEF(VideoDimensionChanged, Player, std::uint64_t)
127  };
128 
129  struct Properties
130  {
131  DBUS_CPP_READABLE_PROPERTY_DEF(PlaybackStatus, Player, std::string)
132  DBUS_CPP_READABLE_PROPERTY_DEF(TypedPlaybackStatus, Player, core::ubuntu::media::Player::PlaybackStatus)
133 
134  DBUS_CPP_WRITABLE_PROPERTY_DEF(LoopStatus, Player, std::string)
135  DBUS_CPP_WRITABLE_PROPERTY_DEF(TypedLoopStatus, Player, core::ubuntu::media::Player::LoopStatus)
136  DBUS_CPP_WRITABLE_PROPERTY_DEF(AudioStreamRole, Player, core::ubuntu::media::Player::AudioStreamRole)
137  DBUS_CPP_READABLE_PROPERTY_DEF(Orientation, Player, core::ubuntu::media::Player::Orientation)
138  DBUS_CPP_WRITABLE_PROPERTY_DEF(Lifetime, Player, core::ubuntu::media::Player::Lifetime)
139  DBUS_CPP_WRITABLE_PROPERTY_DEF(PlaybackRate, Player, double)
140  DBUS_CPP_WRITABLE_PROPERTY_DEF(Rate, Player, double)
141  DBUS_CPP_WRITABLE_PROPERTY_DEF(Shuffle, Player, bool)
142  DBUS_CPP_READABLE_PROPERTY_DEF(Metadata, Player, Dictionary)
143  DBUS_CPP_READABLE_PROPERTY_DEF(TypedMetaData, Player, core::ubuntu::media::Track::MetaData)
144  DBUS_CPP_WRITABLE_PROPERTY_DEF(Volume, Player, double)
145  DBUS_CPP_READABLE_PROPERTY_DEF(Position, Player, std::int64_t)
146  DBUS_CPP_READABLE_PROPERTY_DEF(Duration, Player, std::int64_t)
147  DBUS_CPP_READABLE_PROPERTY_DEF(MinimumRate, Player, double)
148  DBUS_CPP_READABLE_PROPERTY_DEF(MaximumRate, Player, double)
149  DBUS_CPP_READABLE_PROPERTY_DEF(IsVideoSource, Player, bool)
150  DBUS_CPP_READABLE_PROPERTY_DEF(IsAudioSource, Player, bool)
151  DBUS_CPP_READABLE_PROPERTY_DEF(CanGoNext, Player, bool)
152  DBUS_CPP_READABLE_PROPERTY_DEF(CanGoPrevious, Player, bool)
153  DBUS_CPP_READABLE_PROPERTY_DEF(CanPlay, Player, bool)
154  DBUS_CPP_READABLE_PROPERTY_DEF(CanPause, Player, bool)
155  DBUS_CPP_READABLE_PROPERTY_DEF(CanSeek, Player, bool)
156  DBUS_CPP_READABLE_PROPERTY_DEF(CanControl, Player, bool)
157  };
158 
159  // Convenience struct to create a skeleton implementation for org.mpris.MediaPlayer2.Player
160  struct Skeleton
161  {
162  static const std::vector<std::string>& the_empty_list_of_invalidated_properties()
163  {
164  static const std::vector<std::string> instance; return instance;
165  }
166 
167  // Creation time options go here.
169  {
170  // The bus connection that should be used
171  core::dbus::Bus::Ptr bus;
172  // The dbus object that should implement org.mpris.MediaPlayer2
173  core::dbus::Object::Ptr object;
174 
175  // Default values for properties
176  struct Defaults
177  {
178  Properties::CanPlay::ValueType can_play{true};
179  Properties::CanPause::ValueType can_pause{true};
180  Properties::CanSeek::ValueType can_seek{true};
181  Properties::CanControl::ValueType can_control{true};
182  Properties::CanGoNext::ValueType can_go_next{true};
183  Properties::CanGoPrevious::ValueType can_go_previous{true};
184  Properties::IsVideoSource::ValueType is_video_source{false};
185  Properties::IsAudioSource::ValueType is_audio_source{true};
186  Properties::PlaybackStatus::ValueType playback_status{PlaybackStatus::stopped};
187  Properties::TypedPlaybackStatus::ValueType typed_playback_status{core::ubuntu::media::Player::PlaybackStatus::null};
188  Properties::LoopStatus::ValueType loop_status{LoopStatus::none};
189  Properties::TypedLoopStatus::ValueType typed_loop_status{core::ubuntu::media::Player::LoopStatus::none};
190  Properties::PlaybackRate::ValueType playback_rate{1.f};
191  Properties::Shuffle::ValueType shuffle{false};
192  Properties::TypedMetaData::ValueType typed_meta_data{};
193  Properties::Volume::ValueType volume{0.f};
194  Properties::Position::ValueType position{0};
195  Properties::Duration::ValueType duration{0};
196  Properties::MinimumRate::ValueType minimum_rate{1.f};
197  Properties::MaximumRate::ValueType maximum_rate{1.f};
198  Properties::Orientation::ValueType orientation{core::ubuntu::media::Player::Orientation::rotate0};
199  } defaults;
200  };
201 
203  : configuration(configuration),
204  properties
205  {
206  configuration.object->template get_property<Properties::CanPlay>(),
207  configuration.object->template get_property<Properties::CanPause>(),
208  configuration.object->template get_property<Properties::CanSeek>(),
209  configuration.object->template get_property<Properties::CanControl>(),
210  configuration.object->template get_property<Properties::CanGoNext>(),
211  configuration.object->template get_property<Properties::CanGoPrevious>(),
212  configuration.object->template get_property<Properties::IsVideoSource>(),
213  configuration.object->template get_property<Properties::IsAudioSource>(),
214  configuration.object->template get_property<Properties::PlaybackStatus>(),
215  configuration.object->template get_property<Properties::TypedPlaybackStatus>(),
216  configuration.object->template get_property<Properties::LoopStatus>(),
217  configuration.object->template get_property<Properties::TypedLoopStatus>(),
218  configuration.object->template get_property<Properties::AudioStreamRole>(),
219  configuration.object->template get_property<Properties::Orientation>(),
220  configuration.object->template get_property<Properties::Lifetime>(),
221  configuration.object->template get_property<Properties::PlaybackRate>(),
222  configuration.object->template get_property<Properties::Shuffle>(),
223  configuration.object->template get_property<Properties::TypedMetaData>(),
224  configuration.object->template get_property<Properties::Volume>(),
225  configuration.object->template get_property<Properties::Position>(),
226  configuration.object->template get_property<Properties::Duration>(),
227  configuration.object->template get_property<Properties::MinimumRate>(),
228  configuration.object->template get_property<Properties::MaximumRate>()
229  },
230  signals
231  {
232  configuration.object->template get_signal<Signals::Seeked>(),
233  configuration.object->template get_signal<Signals::EndOfStream>(),
234  configuration.object->template get_signal<Signals::PlaybackStatusChanged>(),
235  configuration.object->template get_signal<Signals::VideoDimensionChanged>(),
236  configuration.object->template get_signal<core::dbus::interfaces::Properties::Signals::PropertiesChanged>()
237  }
238  {
239  properties.can_play->set(configuration.defaults.can_play);
240  properties.can_pause->set(configuration.defaults.can_pause);
241  properties.can_seek->set(configuration.defaults.can_seek);
242  properties.can_control->set(configuration.defaults.can_control);
243  properties.can_go_next->set(configuration.defaults.can_go_next);
244  properties.can_go_previous->set(configuration.defaults.can_go_previous);
245  properties.is_video_source->set(configuration.defaults.is_video_source);
246  properties.is_audio_source->set(configuration.defaults.is_audio_source);
247  properties.playback_status->set(configuration.defaults.playback_status);
248  properties.typed_playback_status->set(configuration.defaults.typed_playback_status);
249  properties.loop_status->set(configuration.defaults.loop_status);
250  properties.typed_loop_status->set(configuration.defaults.typed_loop_status);
251  properties.audio_stream_role->set(core::ubuntu::media::Player::AudioStreamRole::multimedia);
252  properties.orientation->set(core::ubuntu::media::Player::Orientation::rotate0);
253  properties.lifetime->set(core::ubuntu::media::Player::Lifetime::normal);
254  properties.playback_rate->set(configuration.defaults.playback_rate);
255  properties.is_shuffle->set(configuration.defaults.shuffle);
256  properties.position->set(configuration.defaults.position);
257  properties.duration->set(configuration.defaults.duration);
258  properties.minimum_playback_rate->set(configuration.defaults.minimum_rate);
259  properties.maximum_playback_rate->set(configuration.defaults.maximum_rate);
260 
261  // Make sure the Orientation Property gets sent over DBus to the client
262  properties.orientation->changed().connect([this](const core::ubuntu::media::Player::Orientation& o)
263  {
264  on_property_value_changed<Properties::Orientation>(o);
265  });
266 
267  properties.position->changed().connect([this](std::int64_t position)
268  {
269  on_property_value_changed<Properties::Position>(position);
270  });
271 
272  properties.duration->changed().connect([this](std::int64_t duration)
273  {
274  on_property_value_changed<Properties::Duration>(duration);
275  });
276 
277  properties.playback_status->changed().connect([this](const std::string& status)
278  {
279  on_property_value_changed<Properties::PlaybackStatus>(status);
280  });
281 
282  properties.loop_status->changed().connect([this](const std::string& status)
283  {
284  on_property_value_changed<Properties::LoopStatus>(status);
285  });
286  }
287 
288  template<typename Property>
289  void on_property_value_changed(const typename Property::ValueType& value)
290  {
291  Dictionary dict; dict[Property::name()] = dbus::types::Variant::encode(value);
292 
293  signals.properties_changed->emit(std::make_tuple(
294  dbus::traits::Service<Player>::interface_name(),
295  dict,
297  }
298 
299  Dictionary get_all_properties()
300  {
301  Dictionary dict;
302  dict[Properties::CanPlay::name()] = dbus::types::Variant::encode(properties.can_play->get());
303  dict[Properties::CanPause::name()] = dbus::types::Variant::encode(properties.can_pause->get());
304  dict[Properties::CanSeek::name()] = dbus::types::Variant::encode(properties.can_seek->get());
305  dict[Properties::CanControl::name()] = dbus::types::Variant::encode(properties.can_control->get());
306  dict[Properties::CanGoNext::name()] = dbus::types::Variant::encode(properties.can_go_next->get());
307  dict[Properties::CanGoPrevious::name()] = dbus::types::Variant::encode(properties.can_go_previous->get());
308  dict[Properties::PlaybackStatus::name()] = dbus::types::Variant::encode(properties.playback_status->get());
309  dict[Properties::TypedPlaybackStatus::name()] = dbus::types::Variant::encode(properties.typed_playback_status->get());
310  dict[Properties::LoopStatus::name()] = dbus::types::Variant::encode(properties.loop_status->get());
311  dict[Properties::TypedLoopStatus::name()] = dbus::types::Variant::encode(properties.typed_loop_status->get());
312  dict[Properties::AudioStreamRole::name()] = dbus::types::Variant::encode(properties.audio_stream_role->get());
313  dict[Properties::Orientation::name()] = dbus::types::Variant::encode(properties.orientation->get());
314  dict[Properties::Lifetime::name()] = dbus::types::Variant::encode(properties.lifetime->get());
315  dict[Properties::PlaybackRate::name()] = dbus::types::Variant::encode(properties.playback_rate->get());
316  dict[Properties::Shuffle::name()] = dbus::types::Variant::encode(properties.is_shuffle->get());
317  dict[Properties::Duration::name()] = dbus::types::Variant::encode(properties.duration->get());
318  dict[Properties::Position::name()] = dbus::types::Variant::encode(properties.position->get());
319  dict[Properties::MinimumRate::name()] = dbus::types::Variant::encode(properties.minimum_playback_rate->get());
320  dict[Properties::MaximumRate::name()] = dbus::types::Variant::encode(properties.maximum_playback_rate->get());
321 
322  return dict;
323  }
324 
325  // We just store creation time properties
327  // All the properties exposed to the bus go here.
328  struct
329  {
330  std::shared_ptr<core::dbus::Property<Properties::CanPlay>> can_play;
331  std::shared_ptr<core::dbus::Property<Properties::CanPause>> can_pause;
332  std::shared_ptr<core::dbus::Property<Properties::CanSeek>> can_seek;
333  std::shared_ptr<core::dbus::Property<Properties::CanControl>> can_control;
334  std::shared_ptr<core::dbus::Property<Properties::CanGoNext>> can_go_next;
335  std::shared_ptr<core::dbus::Property<Properties::CanGoPrevious>> can_go_previous;
336  std::shared_ptr<core::dbus::Property<Properties::IsVideoSource>> is_video_source;
337  std::shared_ptr<core::dbus::Property<Properties::IsAudioSource>> is_audio_source;
338 
339  std::shared_ptr<core::dbus::Property<Properties::PlaybackStatus>> playback_status;
340  std::shared_ptr<core::dbus::Property<Properties::TypedPlaybackStatus>> typed_playback_status;
341  std::shared_ptr<core::dbus::Property<Properties::LoopStatus>> loop_status;
342  std::shared_ptr<core::dbus::Property<Properties::TypedLoopStatus>> typed_loop_status;
343  std::shared_ptr<core::dbus::Property<Properties::AudioStreamRole>> audio_stream_role;
344  std::shared_ptr<core::dbus::Property<Properties::Orientation>> orientation;
345  std::shared_ptr<core::dbus::Property<Properties::Lifetime>> lifetime;
346  std::shared_ptr<core::dbus::Property<Properties::PlaybackRate>> playback_rate;
347  std::shared_ptr<core::dbus::Property<Properties::Shuffle>> is_shuffle;
348  std::shared_ptr<core::dbus::Property<Properties::TypedMetaData>> typed_meta_data_for_current_track;
349  std::shared_ptr<core::dbus::Property<Properties::Volume>> volume;
350  std::shared_ptr<core::dbus::Property<Properties::Position>> position;
351  std::shared_ptr<core::dbus::Property<Properties::Duration>> duration;
352  std::shared_ptr<core::dbus::Property<Properties::MinimumRate>> minimum_playback_rate;
353  std::shared_ptr<core::dbus::Property<Properties::MaximumRate>> maximum_playback_rate;
354  } properties;
355 
356  struct
357  {
358  typename core::dbus::Signal<Signals::Seeked, Signals::Seeked::ArgumentType>::Ptr seeked_to;
359  typename core::dbus::Signal<Signals::EndOfStream, Signals::EndOfStream::ArgumentType>::Ptr end_of_stream;
360  typename core::dbus::Signal<Signals::PlaybackStatusChanged, Signals::PlaybackStatusChanged::ArgumentType>::Ptr playback_status_changed;
361  typename core::dbus::Signal<Signals::VideoDimensionChanged, Signals::VideoDimensionChanged::ArgumentType>::Ptr video_dimension_changed;
362 
363  dbus::Signal
364  <
365  core::dbus::interfaces::Properties::Signals::PropertiesChanged,
366  core::dbus::interfaces::Properties::Signals::PropertiesChanged::ArgumentType
368  } signals;
369  };
370 };
371 }
372 
373 #endif // MPRIS_PLAYER_H_
std::shared_ptr< core::dbus::Property< Properties::Duration > > duration
Definition: player.h:351
void on_property_value_changed(const typename Property::ValueType &value)
Definition: player.h:289
std::shared_ptr< core::dbus::Property< Properties::AudioStreamRole > > audio_stream_role
Definition: player.h:343
Properties::CanGoPrevious::ValueType can_go_previous
Definition: player.h:183
std::shared_ptr< core::dbus::Property< Properties::IsAudioSource > > is_audio_source
Definition: player.h:337
Properties::CanControl::ValueType can_control
Definition: player.h:181
std::shared_ptr< core::dbus::Property< Properties::LoopStatus > > loop_status
Definition: player.h:341
Properties::MaximumRate::ValueType maximum_rate
Definition: player.h:197
Properties::Volume::ValueType volume
Definition: player.h:193
static const std::string & name()
Definition: player.h:49
static constexpr const char * none
Definition: player.h:74
std::shared_ptr< core::dbus::Property< Properties::MinimumRate > > minimum_playback_rate
Definition: player.h:352
Properties::Duration::ValueType duration
Definition: player.h:195
core::dbus::Object::Ptr object
Definition: player.h:173
static constexpr const char * playlist
Definition: player.h:76
static constexpr const char * paused
Definition: player.h:102
std::shared_ptr< core::dbus::Property< Properties::MaximumRate > > maximum_playback_rate
Definition: player.h:353
Properties::CanGoNext::ValueType can_go_next
Definition: player.h:182
static constexpr const char * stopped
Definition: player.h:103
static const char * from(core::ubuntu::media::Player::PlaybackStatus status)
Definition: player.h:83
core::dbus::Signal< Signals::VideoDimensionChanged, Signals::VideoDimensionChanged::ArgumentType >::Ptr video_dimension_changed
Definition: player.h:361
Properties::CanPause::ValueType can_pause
Definition: player.h:179
static const std::vector< std::string > & the_empty_list_of_invalidated_properties()
Definition: player.h:162
std::shared_ptr< core::dbus::Property< Properties::Shuffle > > is_shuffle
Definition: player.h:347
Properties::TypedPlaybackStatus::ValueType typed_playback_status
Definition: player.h:187
Properties::PlaybackStatus::ValueType playback_status
Definition: player.h:186
Properties::Orientation::ValueType orientation
Definition: player.h:198
struct mpris::Player::Skeleton::Configuration::Defaults defaults
struct mpris::Player::Skeleton::@14 properties
Properties::Position::ValueType position
Definition: player.h:194
std::map< std::string, core::dbus::types::Variant > Dictionary
Definition: player.h:106
static const char * from(core::ubuntu::media::Player::LoopStatus status)
Definition: player.h:59
Configuration configuration
Definition: player.h:326
std::shared_ptr< core::dbus::Property< Properties::IsVideoSource > > is_video_source
Definition: player.h:336
std::shared_ptr< core::dbus::Property< Properties::TypedLoopStatus > > typed_loop_status
Definition: player.h:342
std::shared_ptr< core::dbus::Property< Properties::CanGoPrevious > > can_go_previous
Definition: player.h:335
std::shared_ptr< core::dbus::Property< Properties::CanPause > > can_pause
Definition: player.h:331
Properties::PlaybackRate::ValueType playback_rate
Definition: player.h:190
Properties::TypedLoopStatus::ValueType typed_loop_status
Definition: player.h:189
std::shared_ptr< core::dbus::Property< Properties::Lifetime > > lifetime
Definition: player.h:345
Properties::CanSeek::ValueType can_seek
Definition: player.h:180
Dictionary get_all_properties()
Definition: player.h:299
struct mpris::Player::Skeleton::@15 signals
std::shared_ptr< core::dbus::Property< Properties::Volume > > volume
Definition: player.h:349
std::shared_ptr< core::dbus::Property< Properties::CanSeek > > can_seek
Definition: player.h:332
static constexpr const char * track
Definition: player.h:75
core::dbus::Signal< Signals::Seeked, Signals::Seeked::ArgumentType >::Ptr seeked_to
Definition: player.h:358
Properties::TypedMetaData::ValueType typed_meta_data
Definition: player.h:192
Properties::IsAudioSource::ValueType is_audio_source
Definition: player.h:185
std::shared_ptr< core::dbus::Property< Properties::Orientation > > orientation
Definition: player.h:344
Skeleton(const Configuration &configuration)
Definition: player.h:202
std::shared_ptr< core::dbus::Property< Properties::TypedPlaybackStatus > > typed_playback_status
Definition: player.h:340
Properties::MinimumRate::ValueType minimum_rate
Definition: player.h:196
std::shared_ptr< core::dbus::Property< Properties::PlaybackStatus > > playback_status
Definition: player.h:339
Properties::CanPlay::ValueType can_play
Definition: player.h:178
std::shared_ptr< core::dbus::Property< Properties::TypedMetaData > > typed_meta_data_for_current_track
Definition: player.h:348
core::dbus::Signal< Signals::EndOfStream, Signals::EndOfStream::ArgumentType >::Ptr end_of_stream
Definition: player.h:359
std::shared_ptr< core::dbus::Property< Properties::CanPlay > > can_play
Definition: player.h:330
Properties::IsVideoSource::ValueType is_video_source
Definition: player.h:184
std::shared_ptr< core::dbus::Property< Properties::CanControl > > can_control
Definition: player.h:333
static constexpr const char * playing
Definition: player.h:101
std::shared_ptr< core::dbus::Property< Properties::Position > > position
Definition: player.h:350
std::shared_ptr< core::dbus::Property< Properties::CanGoNext > > can_go_next
Definition: player.h:334
Properties::LoopStatus::ValueType loop_status
Definition: player.h:188
std::shared_ptr< core::dbus::Property< Properties::PlaybackRate > > playback_rate
Definition: player.h:346
dbus::Signal< core::dbus::interfaces::Properties::Signals::PropertiesChanged, core::dbus::interfaces::Properties::Signals::PropertiesChanged::ArgumentType >::Ptr properties_changed
Definition: player.h:367
core::dbus::Signal< Signals::PlaybackStatusChanged, Signals::PlaybackStatusChanged::ArgumentType >::Ptr playback_status_changed
Definition: player.h:360
Properties::Shuffle::ValueType shuffle
Definition: player.h:191