Files
client-sdk-rust/include/peer_connection_factory.h
T
2022-08-11 12:20:23 +02:00

32 lines
685 B
C++

//
// Created by Théo Monnom on 03/08/2022.
//
#ifndef PEER_CONNECTION_FACTORY_H
#define PEER_CONNECTION_FACTORY_H
#include "api/peer_connection_interface.h"
#include "sdk/android/src/jni/jni_helpers.h"
namespace lk {
class PeerConnectionFactory {
public:
PeerConnectionFactory();
private:
rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> peer_factory_;
std::unique_ptr<rtc::Thread> network_thread_;
std::unique_ptr<rtc::Thread> worker_thread_;
std::unique_ptr<rtc::Thread> signaling_thread_;
};
std::unique_ptr<PeerConnectionFactory> CreatePeerConnectionFactory();
}
#endif //PEER_CONNECTION_FACTORY_H