rtc.avd_SDK-C++  3.2.0
mvideomixer.h
浏览该文件的文档.
1 #ifndef RT_VideoMixer_H_
2 #define RT_VideoMixer_H_
3 
4 #include "common.h"
5 #include "videorender.h"
6 
7 namespace rtc {
8  class ILivecast;
9  class IVideoRender;
10 
17  public:
25  virtual Result setMixerTypeaSize(MixerVideoLayoutType layout, int width, int height) = 0;
30  virtual Result setScaleType(IVideoRenderView::ScalingType scale) = 0;
35  virtual Result setBackgroud(const String& background) = 0;
40  virtual void clearSubVideos() = 0;
41 
42  //自动布局(layout auto):设置自动布局参数和主视频后,sdk自动来布局子视频组合成直播视频
49  virtual Result setMainVideo(const UserId& userId) = 0;
60  virtual Result autoLayoutParams(bool isTopdown, float w, float h, float x_begin, float y_begin) = 0;
61 
62  //手动布局(layout manual):完全手动布局整个直播视频,可以将一个个子视频排布在直播视频的任意位置
74  virtual Result addSubVideo(const UserId& userId) = 0;
75  virtual Result addSubVideo(const UserId& userId, int zorder, float x, float y, float w, float h) = 0;
86  virtual Result updateSubVideo(const UserId& userId, int zorder, float x, float y, float w, float h) = 0;
92  virtual void removeSubVideo(const UserId& userId) = 0;
93 
94  protected:
95  virtual ~IMVideoMixer() {}
96  };
97 
98 } // namespace rtc
99 #endif//RT_VideoMixer_H_
Definition: annotationobject.h:71
String UserId
用户号类型,唯一标识房间内一个用户,长度不大于Max_UserId定义;由应用层定义传递给AVD SDK,要求保证房间内唯一
Definition: common.h:13
int Result
返回值类型
Definition: combase.h:13
#define RT_API_EXPORT
Definition: defines.h:216
std::string String
定义的String类型
Definition: common.h:10
MixerVideoLayoutType
视频混频布局类型
Definition: combase.h:549
视频混屏模块接口.
Definition: mvideomixer.h:16
ScalingType
Definition: videorender.h:206
virtual ~IMVideoMixer()
Definition: mvideomixer.h:95