mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Implement media devices tracking on Windows.
This commit is contained in:
@@ -101,6 +101,10 @@ namespace Calls {
|
||||
class Instance;
|
||||
} // namespace Calls
|
||||
|
||||
namespace Webrtc {
|
||||
class Environment;
|
||||
} // namespace Webrtc
|
||||
|
||||
namespace Core {
|
||||
|
||||
struct LocalUrlHandler;
|
||||
@@ -238,6 +242,9 @@ public:
|
||||
[[nodiscard]] Media::Audio::Instance &audio() {
|
||||
return *_audio;
|
||||
}
|
||||
[[nodiscard]] Webrtc::Environment &mediaDevices() {
|
||||
return *_mediaDevices;
|
||||
}
|
||||
|
||||
// Langpack and emoji keywords.
|
||||
[[nodiscard]] Lang::Instance &langpack() {
|
||||
@@ -383,6 +390,7 @@ private:
|
||||
const std::unique_ptr<Private> _private;
|
||||
const std::unique_ptr<Platform::Integration> _platformIntegration;
|
||||
const std::unique_ptr<base::BatterySaving> _batterySaving;
|
||||
const std::unique_ptr<Webrtc::Environment> _mediaDevices;
|
||||
|
||||
const std::unique_ptr<Storage::Databases> _databases;
|
||||
const std::unique_ptr<Ui::Animations::Manager> _animationsManager;
|
||||
|
Reference in New Issue
Block a user