1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-12-02 09:37:52 +01:00
libtgvoip/video/VideoSource.cpp
Grishka f7ff6409df I tried so hard, and got so far
But in the end, it doesn't even matter

😭
2019-04-15 02:43:10 +03:00

40 lines
857 B
C++
Executable File

//
// Created by Grishka on 10.08.2018.
//
#include "VideoSource.h"
#ifdef __ANDROID__
#include "../os/android/VideoSourceAndroid.h"
#elif defined(__APPLE__) && !defined(TARGET_OSX32)
#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_OSX32)
return VideoToolboxEncoderSource::GetAvailableEncoders();
#endif
return std::vector<uint32_t>();
}