Based on Nekogram. Key additions: - Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app) - Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so - Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI - Auto-restore proxy on restart, rebind to active network (LTE/WiFi) - Server credentials externalized to git-ignored XrayServers.java (+ template) - libxray Go source included; compiled .so, keystore, google-services.json ignored
29 lines
794 B
C++
29 lines
794 B
C++
//
|
|
// Created by Grishka on 10.08.2018.
|
|
//
|
|
|
|
#include "VideoRenderer.h"
|
|
|
|
#ifdef __ANDROID__
|
|
#include "../os/android/VideoRendererAndroid.h"
|
|
#elif defined(__APPLE__) && !defined(TARGET_OSX32)
|
|
#include "../os/darwin/SampleBufferDisplayLayerRenderer.h"
|
|
#endif
|
|
|
|
std::vector<uint32_t> tgvoip::video::VideoRenderer::GetAvailableDecoders(){
|
|
#ifdef __ANDROID__
|
|
return VideoRendererAndroid::availableDecoders;
|
|
#elif defined(__APPLE__)
|
|
return SampleBufferDisplayLayerRenderer::GetAvailableDecoders();
|
|
#endif
|
|
return std::vector<uint32_t>();
|
|
}
|
|
|
|
int tgvoip::video::VideoRenderer::GetMaximumResolution(){
|
|
#ifdef __ANDROID__
|
|
return VideoRendererAndroid::maxResolution;
|
|
#elif defined(__APPLE__) && !defined(TARGET_OSX32)
|
|
return SampleBufferDisplayLayerRenderer::GetMaximumResolution();
|
|
#endif
|
|
return 0;
|
|
}
|