Skip to content

Commit

Permalink
NCG-5940: added interface for call recording
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei.haladok committed Sep 10, 2024
1 parent c75f2a3 commit e8742e3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
18 changes: 18 additions & 0 deletions modules/audio_device/audio_device_generic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,22 @@ int AudioDeviceGeneric::GetRecordAudioParameters(
}
#endif // WEBRTC_IOS

// MARK: Nicegram NCG-5828 call recording
void AudioDeviceGeneric::InitNicegramCallRecording(const std::string& outputFolderPath) {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
}

void AudioDeviceGeneric::SetRecordOutputFolder(const std::string& path) {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
}

void AudioDeviceGeneric::StartNicegramRecording() {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
}

void AudioDeviceGeneric::StopNicegramRecording() {
RTC_LOG_F(LS_ERROR) << "Not supported on this platform";
}
//

} // namespace webrtc
7 changes: 7 additions & 0 deletions modules/audio_device/audio_device_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ class AudioDeviceGeneric {
virtual int GetRecordAudioParameters(AudioParameters* params) const;
#endif // WEBRTC_IOS

// MARK: Nicegram NCG-5828 call recording
virtual void InitNicegramCallRecording(const std::string& outputFolderPath);
virtual void SetRecordOutputFolder(const std::string& path);
virtual void StartNicegramRecording();
virtual void StopNicegramRecording();
//

virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0;

virtual ~AudioDeviceGeneric() {}
Expand Down
7 changes: 7 additions & 0 deletions modules/audio_device/include/audio_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ class AudioDeviceModule : public webrtc::RefCountInterface {
virtual int GetRecordAudioParameters(AudioParameters* params) const = 0;
#endif // WEBRTC_IOS

// MARK: Nicegram NCG-5828 call recording
virtual void InitNicegramCallRecording(const std::string& outputFolderPath) {}
virtual void SetRecordOutputFolder(const std::string& path) {}
virtual void StartNicegramRecording() {}
virtual void StopNicegramRecording() {}
//

protected:
~AudioDeviceModule() override {}
};
Expand Down

0 comments on commit e8742e3

Please sign in to comment.