Skip to content
Snippets Groups Projects
Commit 5f932e4c authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

recording: enable multiple records per call

GitLab: #504
Change-Id: Id606f95ad68e79605b597a5736ac182a298118f4
parent 6f27b766
No related branches found
No related tags found
No related merge requests found
...@@ -1408,6 +1408,10 @@ SIPCall::startAllMedia() ...@@ -1408,6 +1408,10 @@ SIPCall::startAllMedia()
bool peer_holding {true}; bool peer_holding {true};
int slotN = -1; int slotN = -1;
// reset
readyToRecord_ = false;
resetMediaReady();
for (const auto& slot : slots) { for (const auto& slot : slots) {
++slotN; ++slotN;
const auto& local = slot.first; const auto& local = slot.first;
...@@ -2018,7 +2022,8 @@ SIPCall::toggleRecording() ...@@ -2018,7 +2022,8 @@ SIPCall::toggleRecording()
return false; return false;
} }
auto title = fmt::format("Conversation at %TIMESTAMP between {} and {}", auto title = fmt::format("Conversation at %TIMESTAMP between {} and {}",
account->getUserUri(), peerUri_); account->getUserUri(),
peerUri_);
recorder_->setMetadata(title, ""); // use default description recorder_->setMetadata(title, ""); // use default description
auto const& audioRtp = getAudioRtp(); auto const& audioRtp = getAudioRtp();
if (audioRtp) if (audioRtp)
...@@ -2033,8 +2038,6 @@ SIPCall::toggleRecording() ...@@ -2033,8 +2038,6 @@ SIPCall::toggleRecording()
} else { } else {
updateRecState(false); updateRecState(false);
deinitRecorder(); deinitRecorder();
readyToRecord_ = false;
resetMediaReady();
} }
pendingRecord_ = false; pendingRecord_ = false;
return Call::toggleRecording(); return Call::toggleRecording();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment