FVideoLayout

  • Unreal Blueprint

更新时间不可用

某一路合图子视频流的布局信息。

C++
USTRUCT(BlueprintType)
struct FVideoLayout
{
	GENERATED_BODY()

public:

	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FVideoLayout")
	FString channelId = "";

	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FVideoLayout")
	int64 uid = 0;

	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FVideoLayout")
	FString strUid = "";
    UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FVideoLayout")
	int64 x = 0;

	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FVideoLayout")
	int64 y = 0;

	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FVideoLayout")
	int64 width = 0;
    UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FVideoLayout")
	int64 height = 0;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|FVideoLayout")
	int64 videoState = 0;
	FVideoLayout(){}
	FVideoLayout(const agora::VideoLayout & AgoraData){
		channelId = UTF8_TO_TCHAR(AgoraData.channelId);
		uid = AgoraData.uid;
		strUid = UTF8_TO_TCHAR(AgoraData.strUid);
		x = AgoraData.x;
		y = AgoraData.y;
		width = AgoraData.width;
		height = AgoraData.height;
		videoState = AgoraData.videoState;
	}
	agora::VideoLayout CreateAgoraData() const {
		agora::VideoLayout AgoraData;
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(AgoraData.channelId, channelId)
		AgoraData.uid = uid;
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(AgoraData.strUid, strUid)
		AgoraData.x = x;
		AgoraData.y = y;
		AgoraData.width = width;
		AgoraData.height = height;
		AgoraData.videoState = videoState;
		return AgoraData;
	}
	void FreeAgoraData(agora::VideoLayout & AgoraData) const {
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(AgoraData.channelId)
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(AgoraData.strUid)
	}
};

属性

参数名描述
channelId

合图子视频流所属的频道名。

uid

发布该合图子视频流的用户 ID。

strUid

预留参数。

x

合图子视频在合图画布上的 x 坐标 (px)。即合图子视频的左上角相对于合图画布左上角(原点)的横向位移。

y

合图子视频在合图画布上的 y 坐标 (px)。即合图子视频的左上角相对于合图画布左上角(原点)的纵向位移。

width

合图子视频流的宽度 (px)。

height

合图子视频流的高度 (px)

videoState

合图子视频流在合图画布上的状态。

  • 0:正常。该视频流已被渲染到合图画布。
  • 1:占位图。该视频流无视频画面,在合图画布中显示为占位符。
  • 2:黑色图片。该视频流被黑色图片替代。
表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?