mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 02:50:36 +00:00
Fully migrate to Webrtc::Environment.
This commit is contained in:
@@ -34,7 +34,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "media/streaming/media_streaming_player.h"
|
||||
#include "media/streaming/media_streaming_document.h"
|
||||
#include "settings/settings_calls.h" // Calls::AddCameraSubsection.
|
||||
#include "webrtc/webrtc_media_devices.h" // Webrtc::GetVideoInputList.
|
||||
#include "webrtc/webrtc_environment.h"
|
||||
#include "webrtc/webrtc_video_track.h"
|
||||
#include "ui/widgets/popup_menu.h"
|
||||
#include "window/window_controller.h"
|
||||
@@ -53,7 +53,8 @@ namespace {
|
||||
|
||||
[[nodiscard]] bool IsCameraAvailable() {
|
||||
return (Core::App().calls().currentCall() == nullptr)
|
||||
&& !Webrtc::GetVideoInputList().empty();
|
||||
&& !Core::App().mediaDevices().defaultId(
|
||||
Webrtc::DeviceType::Camera).isEmpty();
|
||||
}
|
||||
|
||||
void CameraBox(
|
||||
|
||||
Reference in New Issue
Block a user