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
24 lines
1.2 KiB
C++
24 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "platform/PlatformInterface.h"
|
|
#include "VideoCapturerInterface.h"
|
|
|
|
namespace tgcalls {
|
|
|
|
class FakeInterface : public PlatformInterface {
|
|
public:
|
|
std::unique_ptr<webrtc::VideoEncoderFactory> makeVideoEncoderFactory(bool preferHardwareEncoding, bool isScreencast) override;
|
|
std::unique_ptr<webrtc::VideoDecoderFactory> makeVideoDecoderFactory() override;
|
|
bool supportsEncoding(const std::string &codecName) override;
|
|
webrtc::scoped_refptr<webrtc::VideoTrackSourceInterface> makeVideoSource(rtc::Thread *signalingThread,
|
|
rtc::Thread *workerThread) override;
|
|
void adaptVideoSource(webrtc::scoped_refptr<webrtc::VideoTrackSourceInterface> videoSource, int width, int height,
|
|
int fps) override;
|
|
std::unique_ptr<VideoCapturerInterface> makeVideoCapturer(
|
|
webrtc::scoped_refptr<webrtc::VideoTrackSourceInterface> source, std::string deviceId,
|
|
std::function<void(VideoState)> stateUpdated, std::function<void(PlatformCaptureInfo)> captureInfoUpdated,
|
|
std::shared_ptr<PlatformContext> platformContext, std::pair<int, int> &outResolution) override;
|
|
};
|
|
|
|
} // namespace tgcalls
|
|
|