| 6 |
| 7 | #ifdef __ANDROID__ |
| 8 | #include "../os/android/VideoSourceAndroid.h" |
| 9 | #elif defined(__APPLE__) && !defined(TARGET_OSX) |
| 10 | #include "../os/darwin/VideoToolboxEncoderSource.h" |
| 11 | #endif |
| 12 |
| 13 | using namespace tgvoip; |
| 14 | using namespace tgvoip::video; |
| 15 |
| 16 | std::shared_ptr<VideoSource> VideoSource::Create(){ |
| 17 | #ifdef __ANDROID__ |
| 18 | //return std::make_shared<VideoSourceAndroid>(); |
| 19 | return nullptr; |
| 20 | #endif |
| 21 | return nullptr; |
| 22 | } |
| 23 |
| 24 | bool VideoSource::Failed(){ |
| 25 | return failed; |
| 26 | } |
| 27 |
| 28 | std::string VideoSource::GetErrorDescription(){ |
| 29 | return error; |
| 30 | } |
| 31 |
| 32 | std::vector<uint32_t> VideoSource::GetAvailableEncoders(){ |
| 33 | #ifdef __ANDROID__ |
| 34 | return VideoSourceAndroid::availableEncoders; |
| 35 | #elif defined(__APPLE__) && !defined(TARGET_OSX) |
| 36 | return VideoToolboxEncoderSource::GetAvailableEncoders(); |
| 37 | #endif |
| 38 | return std::vector<uint32_t>(); |
| 39 | } |
| 40 |