ZDK
IVideoSinkManager.h
1 #ifndef __IVIDEOSINKMANAGER__
2 #define __IVIDEOSINKMANAGER__
3 
4 #include "Types/SharedPointerTypes.h"
5 #include "Types/OriginType.h"
6 #include "Types/AudioVideoCodecs.h"
7 #include "Types/VideoFrameFormat.h"
8 
9 namespace ZDK
10 {
11 
12 //# @abi(jni|obj_c) ignore
13 class IVideoSinkManager : public virtual ZDK::IZHandle
14 {
15 public:
16 
17  //# @abi(jni|obj_c) property
18  //# @abi(jni|obj_c) @param(return) nullable
19  virtual ZDK::Shared::VideoRendererEventsHandler Renderer() const = 0;
20 
21  //# @abi(obj_c|jni) @param(value) delegate|register
22  virtual void Renderer(ZDK::Shared::VideoRendererEventsHandler value) = 0;
23 
24  //# @abi(jni|obj_c) property
25  virtual ZDK::Shared::VideoCallInfo VideoInfo() const = 0;
26 
27  virtual void OnVideoFormatSelected(ZDK::OriginType dir, int width, int height, float fps) = 0;
28  virtual void VideoOutputStarted(ZDK::ZDKHandle threadId, ZDK::AudioVideoCodecs codec, ZDK::ZDKHandle hCallId) = 0;
29  virtual void VideoOutputStopped() = 0;
30  virtual void VideoThreadIdChangeOccured() = 0;
31 
32  virtual void SendVideoFrame(unsigned char* bytes, int byteCount, ZDK::VideoFrameFormat type) = 0;
33 
34  //# @abi(obj_c|jni) @param(value) delegate|register
35  virtual void ReplaceVideoSinkEventsListener(ZDK::Shared::VideoSinkEventsHandler value) = 0;
36 };
37 
38 } //namespace ZDK
39 
40 #endif //__IVIDEOSINKMANAGER__
Definition: IZHandle.h:12
Definition: IAccountConfig.h:10
Definition: IVideoSinkManager.h:13