2020-08-14 16:58:22 +00:00
|
|
|
#include "VideoCaptureInterface.h"
|
|
|
|
|
|
|
|
#include "VideoCaptureInterfaceImpl.h"
|
|
|
|
|
|
|
|
namespace tgcalls {
|
|
|
|
|
2021-03-19 10:25:58 +00:00
|
|
|
std::unique_ptr<VideoCaptureInterface> VideoCaptureInterface::Create(
|
2021-07-30 14:49:55 +00:00
|
|
|
std::shared_ptr<Threads> threads, std::string deviceId, bool isScreenCapture,
|
2021-03-19 10:25:58 +00:00
|
|
|
std::shared_ptr<PlatformContext> platformContext) {
|
2021-07-30 14:49:55 +00:00
|
|
|
return std::make_unique<VideoCaptureInterfaceImpl>(deviceId, isScreenCapture, platformContext, std::move(threads));
|
2020-08-14 16:58:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
VideoCaptureInterface::~VideoCaptureInterface() = default;
|
|
|
|
|
|
|
|
} // namespace tgcalls
|