~ci-train-bot/media-hub/media-hub-ubuntu-yakkety-1823

« back to all changes in this revision

Viewing changes to include/core/media/player.h

  • Committer: Jim Hodapp
  • Date: 2016-08-15 19:27:29 UTC
  • mto: This revision was merged to the branch mainline in revision 204.
  • Revision ID: jim.hodapp@canonical.com-20160815192729-0nxsgwdg80tm588x
Expose the backend selection to the stub side

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
class Service;
40
40
class TrackList;
41
41
 
 
42
struct AVBackend
 
43
{
 
44
    enum Backend
 
45
    {
 
46
        none,
 
47
        hybris
 
48
    };
 
49
 
 
50
    /**
 
51
     * @brief Returns the type of audio/video decoding/encoding backend being used.
 
52
     * @return Returns the current backend type.
 
53
     */
 
54
    static Backend get_backend_type();
 
55
};
 
56
 
42
57
class Player : public std::enable_shared_from_this<Player>
43
58
{
44
59
  public:
162
177
    virtual const core::Property<bool>& is_video_source() const = 0;
163
178
    virtual const core::Property<bool>& is_audio_source() const = 0;
164
179
    virtual const core::Property<PlaybackStatus>& playback_status() const = 0;
 
180
    virtual const core::Property<AVBackend::Backend>& backend() const = 0;
165
181
    virtual const core::Property<LoopStatus>& loop_status() const = 0;
166
182
    virtual const core::Property<PlaybackRate>& playback_rate() const = 0;
167
183
    virtual const core::Property<bool>& shuffle() const = 0;