Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
|
|
@ -0,0 +1,59 @@
|
|||
#ifndef TGCALLS_GROUP_INSTANCE_CUSTOM_IMPL_H
|
||||
#define TGCALLS_GROUP_INSTANCE_CUSTOM_IMPL_H
|
||||
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <map>
|
||||
|
||||
#include "../Instance.h"
|
||||
#include "GroupInstanceImpl.h"
|
||||
|
||||
namespace tgcalls {
|
||||
|
||||
class LogSinkImpl;
|
||||
class GroupInstanceCustomInternal;
|
||||
class Threads;
|
||||
|
||||
class GroupInstanceCustomImpl final : public GroupInstanceInterface {
|
||||
public:
|
||||
explicit GroupInstanceCustomImpl(GroupInstanceDescriptor &&descriptor);
|
||||
~GroupInstanceCustomImpl();
|
||||
|
||||
void stop(std::function<void()> completion);
|
||||
|
||||
void setConnectionMode(GroupConnectionMode connectionMode, bool keepBroadcastIfWasEnabled, bool isUnifiedBroadcast);
|
||||
|
||||
void emitJoinPayload(std::function<void(GroupJoinPayload const &)> completion);
|
||||
void setJoinResponsePayload(std::string const &payload);
|
||||
void removeSsrcs(std::vector<uint32_t> ssrcs);
|
||||
void removeIncomingVideoSource(uint32_t ssrc);
|
||||
|
||||
void setIsMuted(bool isMuted);
|
||||
void setIsNoiseSuppressionEnabled(bool isNoiseSuppressionEnabled);
|
||||
void setVideoCapture(std::shared_ptr<VideoCaptureInterface> videoCapture);
|
||||
void setVideoSource(std::function<webrtc::scoped_refptr<webrtc::VideoTrackSourceInterface>()> getVideoSource);
|
||||
void setAudioOutputDevice(std::string id);
|
||||
void setAudioInputDevice(std::string id);
|
||||
void addExternalAudioSamples(std::vector<uint8_t> &&samples);
|
||||
|
||||
void addOutgoingVideoOutput(std::weak_ptr<rtc::VideoSinkInterface<webrtc::VideoFrame>> sink);
|
||||
void addIncomingVideoOutput(std::string const &endpointId, std::weak_ptr<rtc::VideoSinkInterface<webrtc::VideoFrame>> sink);
|
||||
|
||||
void setVolume(uint32_t ssrc, double volume);
|
||||
void setRequestedVideoChannels(std::vector<VideoChannelDescription> &&requestedVideoChannels);
|
||||
|
||||
void getStats(std::function<void(GroupInstanceStats)> completion);
|
||||
void internal_addCustomNetworkEvent(bool isRemoteConnected);
|
||||
|
||||
private:
|
||||
std::shared_ptr<Threads> _threads;
|
||||
std::unique_ptr<ThreadLocalObject<GroupInstanceCustomInternal>> _internal;
|
||||
std::unique_ptr<LogSinkImpl> _logSink;
|
||||
|
||||
};
|
||||
|
||||
} // namespace tgcalls
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue