#ifndef TGCALLS_ANDROID_CONTEXT_H #define TGCALLS_ANDROID_CONTEXT_H #include "PlatformContext.h" #include #include namespace tgcalls { class AndroidContext final : public PlatformContext { public: AndroidContext(JNIEnv *env, jobject instance, bool screencast); ~AndroidContext() override; jobject getJavaCapturer(); jobject getJavaInstance(); jclass getJavaCapturerClass(); void setJavaInstance(JNIEnv *env, jobject instance); std::vector> audioStreamTasks; std::vector> videoStreamTasks; std::vector> descriptionTasks; private: jclass VideoCapturerDeviceClass = nullptr; jobject javaCapturer = nullptr; jobject javaInstance = nullptr; }; } // namespace tgcalls #endif