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
21 lines
780 B
Objective-C
21 lines
780 B
Objective-C
#ifndef TGCALLS_CUSTOM_EXTERNAL_CAPTURER_H
|
|
#define TGCALLS_CUSTOM_EXTERNAL_CAPTURER_H
|
|
#ifdef WEBRTC_IOS
|
|
#import <Foundation/Foundation.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
#include <memory>
|
|
#include "api/scoped_refptr.h"
|
|
#include "api/media_stream_interface.h"
|
|
#import "base/RTCVideoFrame.h"
|
|
#include "Instance.h"
|
|
|
|
@interface CustomExternalCapturer : NSObject
|
|
|
|
- (instancetype)initWithSource:(webrtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)source;
|
|
|
|
+ (void)passPixelBuffer:(CVPixelBufferRef)pixelBuffer sampleBufferReference:(CMSampleBufferRef)sampleBufferReference rotation:(RTCVideoRotation)rotation toSource:(webrtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)source croppingBuffer:(std::vector<uint8_t> &)croppingBuffer;
|
|
|
|
@end
|
|
#endif // WEBRTC_IOS
|
|
#endif
|