Update to support new apis.

This commit is contained in:
sdk-team
2023-12-26 06:10:40 +00:00
parent d3f6835294
commit c5a4e342b2
7 changed files with 18 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1835
1.36.1836

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct StreamData
{
long p2pTraffic;
std::string newConns;
float bps;
float rtmpBps;
long hlsTraffic;

View File

@@ -75,6 +75,11 @@ public:
MaxVideoUser maxVideoUser;
};
Layout layout;
struct Background {
std::string uRL;
std::string renderMode;
};
Background background;
struct UserInfosItem {
std::string streamType;
std::string sourceType;

View File

@@ -75,6 +75,11 @@ public:
MaxVideoUser maxVideoUser;
};
Layout layout;
struct Background {
std::string uRL;
std::string renderMode;
};
Background background;
struct UserInfosItem {
std::string streamType;
std::string sourceType;

View File

@@ -85,6 +85,8 @@ void DescribeLiveStreamMetricDetailDataResult::parse(const std::string &payload)
streamDetailDataObject.flvTraffic = std::stol(valueStreamDetailDataStreamData["FlvTraffic"].asString());
if(!valueStreamDetailDataStreamData["TimeStamp"].isNull())
streamDetailDataObject.timeStamp = valueStreamDetailDataStreamData["TimeStamp"].asString();
if(!valueStreamDetailDataStreamData["NewConns"].isNull())
streamDetailDataObject.newConns = valueStreamDetailDataStreamData["NewConns"].asString();
streamDetailData_.push_back(streamDetailDataObject);
}
if(!value["EndTime"].isNull())

View File

@@ -72,6 +72,8 @@ void StartLiveMPUTaskRequest::setTranscodeParams(const StartLiveMPUTaskRequest::
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.StreamType", transcodeParams.layout.maxVideoUser.streamType);
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.SourceType", transcodeParams.layout.maxVideoUser.sourceType);
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.UserId", transcodeParams.layout.maxVideoUser.userId);
setParameter(std::string("TranscodeParams") + ".Background.URL", transcodeParams.background.uRL);
setParameter(std::string("TranscodeParams") + ".Background.RenderMode", transcodeParams.background.renderMode);
for(int dep1 = 0; dep1 != transcodeParams.userInfos.size(); dep1++) {
setParameter(std::string("TranscodeParams") + ".UserInfos." + std::to_string(dep1 + 1) + ".StreamType", transcodeParams.userInfos[dep1].streamType);
setParameter(std::string("TranscodeParams") + ".UserInfos." + std::to_string(dep1 + 1) + ".SourceType", transcodeParams.userInfos[dep1].sourceType);

View File

@@ -72,6 +72,8 @@ void UpdateLiveMPUTaskRequest::setTranscodeParams(const UpdateLiveMPUTaskRequest
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.StreamType", transcodeParams.layout.maxVideoUser.streamType);
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.SourceType", transcodeParams.layout.maxVideoUser.sourceType);
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.UserId", transcodeParams.layout.maxVideoUser.userId);
setParameter(std::string("TranscodeParams") + ".Background.URL", transcodeParams.background.uRL);
setParameter(std::string("TranscodeParams") + ".Background.RenderMode", transcodeParams.background.renderMode);
for(int dep1 = 0; dep1 != transcodeParams.userInfos.size(); dep1++) {
setParameter(std::string("TranscodeParams") + ".UserInfos." + std::to_string(dep1 + 1) + ".StreamType", transcodeParams.userInfos[dep1].streamType);
setParameter(std::string("TranscodeParams") + ".UserInfos." + std::to_string(dep1 + 1) + ".SourceType", transcodeParams.userInfos[dep1].sourceType);