Nagram/TMessagesProj/jni/libtgvoip2/video/VideoSource.cpp
2020-03-30 15:00:09 +03:00

40 lines
853 B
C++

//
// Created by Grishka on 10.08.2018.
//
#include "VideoSource.h"
#ifdef __ANDROID__
#include "../os/android/VideoSourceAndroid.h"
#elif defined(__APPLE__) && !defined(TARGET_OSX)
#include "../os/darwin/VideoToolboxEncoderSource.h"
#endif
using namespace tgvoip;
using namespace tgvoip::video;
std::shared_ptr<VideoSource> VideoSource::Create(){
#ifdef __ANDROID__
//return std::make_shared<VideoSourceAndroid>();
return nullptr;
#endif
return nullptr;
}
bool VideoSource::Failed(){
return failed;
}
std::string VideoSource::GetErrorDescription(){
return error;
}
std::vector<uint32_t> VideoSource::GetAvailableEncoders(){
#ifdef __ANDROID__
return VideoSourceAndroid::availableEncoders;
#elif defined(__APPLE__) && !defined(TARGET_OSX)
return VideoToolboxEncoderSource::GetAvailableEncoders();
#endif
return std::vector<uint32_t>();
}