Added QMediaRecorder::status property
QMediaRecorder::state property represents the user request and changed synchronously during record(), pause() or stop() calls. Recorder status is changed asynchronously and represents the actual status of media recorder. This also makes API more consistent with QMediaPlayer and QCamera. Change-Id: I80b4aaa70bb88e555c492908da8c29d0fc5ed5ea Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
af932e8653
commit
b7935a84d7
@@ -62,6 +62,7 @@ public:
|
||||
bool setOutputLocation(const QUrl &sink);
|
||||
|
||||
QMediaRecorder::State state() const;
|
||||
QMediaRecorder::Status status() const;
|
||||
|
||||
qint64 duration() const;
|
||||
|
||||
@@ -75,8 +76,14 @@ public slots:
|
||||
void stop();
|
||||
void setMuted(bool);
|
||||
|
||||
private slots:
|
||||
void updateStatus();
|
||||
void handleSessionError(int code, const QString &description);
|
||||
|
||||
private:
|
||||
AudioCaptureSession* m_session;
|
||||
QMediaRecorder::State m_state;
|
||||
QMediaRecorder::Status m_prevStatus;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user