mirror of
https://github.com/danog/libtgvoip.git
synced 2024-12-02 09:37:52 +01:00
34 lines
592 B
C++
34 lines
592 B
C++
|
//
|
||
|
// Created by Grishka on 10.08.2018.
|
||
|
//
|
||
|
|
||
|
#include "VideoSource.h"
|
||
|
|
||
|
#ifdef __ANDROID__
|
||
|
#include "../os/android/VideoSourceAndroid.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;
|
||
|
}
|
||
|
|
||
|
|
||
|
void VideoSource::SetCallback(std::function<void(const Buffer &, int32_t)> callback){
|
||
|
this->callback=callback;
|
||
|
}
|
||
|
|
||
|
bool VideoSource::Failed(){
|
||
|
return failed;
|
||
|
}
|
||
|
|
||
|
std::string VideoSource::GetErrorDescription(){
|
||
|
return error;
|
||
|
}
|