Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
|
|
@ -0,0 +1,39 @@
|
|||
#ifndef TGCALLS_ANDROID_CONTEXT_H
|
||||
#define TGCALLS_ANDROID_CONTEXT_H
|
||||
|
||||
#include "PlatformContext.h"
|
||||
|
||||
#include <jni.h>
|
||||
#include <voip/tgcalls/group/GroupInstanceImpl.h>
|
||||
|
||||
namespace tgcalls {
|
||||
|
||||
class AndroidContext final : public PlatformContext {
|
||||
public:
|
||||
AndroidContext(JNIEnv *env, jobject peerInstance, jobject groupInstance, bool screencast);
|
||||
~AndroidContext() override;
|
||||
|
||||
jobject getJavaCapturer();
|
||||
jobject getJavaPeerInstance();
|
||||
jobject getJavaGroupInstance();
|
||||
jclass getJavaCapturerClass();
|
||||
|
||||
void setJavaPeerInstance(JNIEnv *env, jobject instance);
|
||||
void setJavaGroupInstance(JNIEnv *env, jobject instance);
|
||||
|
||||
std::vector<std::shared_ptr<BroadcastPartTask>> audioStreamTasks;
|
||||
std::vector<std::shared_ptr<BroadcastPartTask>> videoStreamTasks;
|
||||
std::vector<std::shared_ptr<RequestMediaChannelDescriptionTask>> descriptionTasks;
|
||||
|
||||
private:
|
||||
jclass VideoCapturerDeviceClass = nullptr;
|
||||
jobject javaCapturer = nullptr;
|
||||
|
||||
jobject javaPeerInstance = nullptr;
|
||||
jobject javaGroupInstance = nullptr;
|
||||
|
||||
};
|
||||
|
||||
} // namespace tgcalls
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue