6 #ifndef ZDK_NET_Conference_h
7 #define ZDK_NET_Conference_h
9 #include "native_shared_ptr.h"
10 #include "PublicInterfaces.h"
12 #include "BrandingInfo.h"
13 #include "CallStatus.h"
14 #include "AudioVideoCodecs.h"
15 #include "VideoCallInfo.h"
17 #include "ConferenceEventsHandler.h"
18 #include "CallEventsHandler.h"
19 #include "VideoRendererEventsHandler.h"
20 #include "VideoFrameFormat.h"
21 #include "OriginType.h"
22 #include "DTMFCodes.h"
23 #include "AudioFileFormat.h"
25 #include "CameraSensorLocation.h"
28 using namespace System::Collections::Generic;
32 ref class BrandingInfo;
34 ref class VideoCallInfo;
37 ref class ConferenceEventsHandler;
38 ref class CallEventsHandler;
39 ref class VideoRendererEventsHandler;
50 static bool RegisterEventListeners()
52 std::shared_ptr<GeneralStatusEventListener> ConferenceEventsHandler_Listener_tmp = std::make_shared<GeneralStatusEventListener>();
53 ConferenceEventsHandler_Listener = ConferenceEventsHandler_Listener_tmp.get();
54 listenersMap->try_emplace(
reinterpret_cast<intptr_t
>(ConferenceEventsHandler_Listener), std::move(ConferenceEventsHandler_Listener_tmp));
55 std::shared_ptr<GeneralStatusEventListener> CallEventsHandler_Listener_tmp = std::make_shared<GeneralStatusEventListener>();
56 CallEventsHandler_Listener = CallEventsHandler_Listener_tmp.get();
57 listenersMap->try_emplace(
reinterpret_cast<intptr_t
>(CallEventsHandler_Listener), std::move(CallEventsHandler_Listener_tmp));
58 std::shared_ptr<GeneralStatusEventListener> VideoRendererEventsHandler_Listener_tmp = std::make_shared<GeneralStatusEventListener>();
59 VideoRendererEventsHandler_Listener = VideoRendererEventsHandler_Listener_tmp.get();
60 listenersMap->try_emplace(
reinterpret_cast<intptr_t
>(VideoRendererEventsHandler_Listener), std::move(VideoRendererEventsHandler_Listener_tmp));
64 static bool RegisteredEventListeners = RegisterEventListeners();
66 ZDK::IConference* cppRef =
nullptr;
78 property long long ConferenceHandle
87 property int CallsCount
96 property List<Call^>^ Calls
105 property long long CallHandle
131 property System::String^ CalleeNumber
133 System::String^ get();
140 property System::String^ CalleeName
142 System::String^ get();
151 property ZDK_NET::AudioVideoCodecs CodecInUse
153 ZDK_NET::AudioVideoCodecs get();
165 property bool OnSpeaker
168 void set(
bool value);
180 void set(
bool value);
194 void set(
bool value);
210 property bool IsFirstClass
230 property System::String^ RecordFileName
232 void set(System::String^ value);
459 void SendVideoFrame(
unsigned char* bytes,
int byteCount, ZDK_NET::VideoFrameFormat type);
584 virtual long long Handle()
override;
586 virtual void Initialize()
override;
588 virtual void ReleaseReference()
override;
ZDK_NET::Result ^ AcceptCall()
Accepts an incoming call.
ZDK_NET::Result ^ AttendedTransfer(ZDK_NET::Call^ transferee)
Initiates an attended call transfer.
API invocation status result.
Definition: Result.h:24
Definition: CallEventsHandler.h:386
Definition: BrandingInfo.h:19
bool IsCallFromConference(long long hCall)
Checks if a call is part of conference.
ZDK_NET::Result ^ AddCall(ZDK_NET::Call^ hCall)
Adds a call to the conference.
void StopHandlingVoipPhoneCallEvents()
Stops handling Call events.
ZDK_NET::Result ^ UnmuteCall(ZDK_NET::Call^ hCall)
Unmute a call in the conference.
void StartHandlingVoipPhoneCallEvents()
Start handling Call events.
ZDK_NET::Result ^ Ringing()
Notifies the remote party that we are ringing (incoming calls)
Definition: VideoRendererEventsHandler.h:30
ZDK_NET::Result ^ HangUp()
Hang up the call.
Definition: Conference.h:43
ZDK_NET::Result ^ StartRecording()
Start recording call.
ZDK_NET::Result ^ AcquireVideoSinkMngrFromCall(ZDK_NET::Call^ call)
Acquire video sink from call.
ZDK_NET::Result ^ MuteCall(ZDK_NET::Call^ hCall)
Mute a call in the conference.
bool HasVideo(ZDK_NET::OriginType origin)
Gets if video is present.
ZDK_NET::Result ^ RemoveCall(ZDK_NET::Call^ hCall, bool hangUp)
Removes a call from the conference.
Definition: GeneralStatusEventListener.h:90
ZDK_NET::Result ^ RestartVideoCapture()
Restart Video capture.
ZDK_NET::Result ^ StopRecording()
Stop recording.
The main account class.
Definition: Account.h:38
void DropAllEventListeners()
Drops all event listeners.
ZDK_NET::Call ^ AcceptCallTransfer()
Accept a call transfer request.
Call's status information.
Definition: CallStatus.h:27
ZDK_NET::CameraSensorLocation VideoGetCameraLocation()
Provides Camera location.
ZDK_NET::Result ^ OfferVideo()
Offers Video.
ZDK_NET::Result ^ SendDTMF(ZDK_NET::DTMFCodes dtmf)
Sends a DTMF signal over a call.
ZDK_NET::Result ^ ConfirmZrtpSas(bool confirmed)
Enables ZRTP.
void SetConferenceEventsListener(ZDK_NET::ConferenceEventsHandler^ confEventHandler)
Set Conference Events Listener.
ZDK_NET::Result ^ RejectCallTransfer()
Rejects a call transfer request.
ZDK_NET::Result ^ ConfigureCallRecordFormat(ZDK_NET::AudioFileFormat format)
Configures a call recording's encoding format and its specific settings.
Definition: VideoCallInfo.h:21
Definition: ConferenceEventsHandler.h:60
void SetCallStatusListener(ZDK_NET::CallEventsHandler^ value)
Sets Call status listener.
void DropConferenceEventsListener(ZDK_NET::ConferenceEventsHandler^ confEventHandler)
Drops Conference Events Listener.
void SendVideoFrame(unsigned char *bytes, int byteCount, ZDK_NET::VideoFrameFormat type)
Send a video frame over the network.
ZDK_NET::Result ^ BlindTransfer(System::String^ transferee)
Initiates an unattended call transfer.
ZDK_NET::Result ^ VideoToggleCamera()
Toggles the camera.
ZDK_NET::Result ^ EnableZrtp(bool enabled)
Enables ZRTP.
ZDK_NET::Result ^ NotifyAccountOfOwnershipChange()
Notify upon Account ownership changes.
ZDK_NET::Result ^ AcceptVideo(bool accept)
Accepts an incoming offer for video.
void DropCallStatusListener(ZDK_NET::CallEventsHandler^ value)
Drops Call status listener.