~ubuntu-branches/ubuntu/vivid/media-hub/vivid-security

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-11-04 06:10:54 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20141104061054-m5de4s9l0qcpd5cb
Tags: 2.0.0+15.04.20141104-0ubuntu1
New rebuild forced

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
        phone
87
87
    };
88
88
 
 
89
    enum Orientation
 
90
    {
 
91
        rotate0,
 
92
        rotate90,
 
93
        rotate180,
 
94
        rotate270
 
95
    };
 
96
 
89
97
    Player(const Player&) = delete;
90
98
    virtual ~Player();
91
99
 
127
135
    virtual const core::Property<int64_t>& position() const = 0;
128
136
    virtual const core::Property<int64_t>& duration() const = 0;
129
137
    virtual const core::Property<AudioStreamRole>& audio_stream_role() const = 0;
 
138
    virtual const core::Property<Orientation>& orientation() const = 0;
130
139
 
131
140
    virtual core::Property<LoopStatus>& loop_status() = 0;
132
141
    virtual core::Property<PlaybackRate>& playback_rate() = 0;
137
146
    virtual const core::Signal<int64_t>& seeked_to() const = 0;
138
147
    virtual const core::Signal<void>& end_of_stream() const = 0;
139
148
    virtual core::Signal<PlaybackStatus>& playback_status_changed() = 0;
 
149
    /**
 
150
     * Called when the video height/width change. Passes height and width as a bitmask with
 
151
     * height in the upper 32 bits and width in the lower 32 bits (both unsigned values)
 
152
     */
 
153
    virtual const core::Signal<uint64_t>& video_dimension_changed() const = 0;
140
154
  protected:
141
155
    Player();
142
156