path: root/src/multimedia/recording
diff options
authorAndy Shaw <>2017-05-05 09:32:39 +0200
committerAndy Shaw <>2017-05-23 10:04:53 +0000
commit6e3d6bf8322efd609d3a3ed33c5101072176ed5a (patch)
treeec3242564f19905088235b5fd6843d9fb970f42b /src/multimedia/recording
parent247a3250b2d500e37f3ebe06dd51a04a2107055f (diff)
Emit the StoppedState change after the file has finished writing
Where possible, we should be emitting the stateChanged() signal to StoppedState when we know the file is no longer being written to. The finializing status can be used to indicate it is finishing and when it is actually finished then StoppedState should be used. Task-number: QTBUG-50588 Change-Id: Ie3ac1c5cd00a6a36978e72b5485622e3302054ce Reviewed-by: Christian Stromme <>
Diffstat (limited to 'src/multimedia/recording')
1 files changed, 4 insertions, 0 deletions
diff --git a/src/multimedia/recording/qmediarecorder.cpp b/src/multimedia/recording/qmediarecorder.cpp
index d3962b78..3bab3dad 100644
--- a/src/multimedia/recording/qmediarecorder.cpp
+++ b/src/multimedia/recording/qmediarecorder.cpp
@@ -909,6 +909,10 @@ void QMediaRecorder::stop()
\enum QMediaRecorder::State
\value StoppedState The recorder is not active.
+ If this is the state after recording then the actual created recording has
+ finished being written to the final location and is ready on all platforms
+ except on Android. On Android, due to platform limitations, there is no way
+ to be certain that the recording has finished writing to the final location.
\value RecordingState The recording is requested.
\value PausedState The recorder is paused.