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