Update to support new apis.
This commit is contained in:
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct StreamData
|
||||
{
|
||||
long p2pTraffic;
|
||||
std::string newConns;
|
||||
float bps;
|
||||
float rtmpBps;
|
||||
long hlsTraffic;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user