Support new api about model training.

This commit is contained in:
sdk-team
2023-07-20 08:55:27 +00:00
parent d17a79e8b6
commit ba9b236957
12 changed files with 1 additions and 876 deletions

View File

@@ -1 +1 @@
1.36.1671
1.36.1672

View File

@@ -125,8 +125,6 @@ set(imm_public_header_model
include/alibabacloud/imm/model/ExtractDocumentTextResult.h
include/alibabacloud/imm/model/FuzzyQueryRequest.h
include/alibabacloud/imm/model/FuzzyQueryResult.h
include/alibabacloud/imm/model/GenerateVideoPlaylistRequest.h
include/alibabacloud/imm/model/GenerateVideoPlaylistResult.h
include/alibabacloud/imm/model/GenerateWebofficeTokenRequest.h
include/alibabacloud/imm/model/GenerateWebofficeTokenResult.h
include/alibabacloud/imm/model/GetBatchRequest.h
@@ -171,8 +169,6 @@ set(imm_public_header_model
include/alibabacloud/imm/model/ListTasksResult.h
include/alibabacloud/imm/model/ListTriggersRequest.h
include/alibabacloud/imm/model/ListTriggersResult.h
include/alibabacloud/imm/model/LiveTranscodingRequest.h
include/alibabacloud/imm/model/LiveTranscodingResult.h
include/alibabacloud/imm/model/QueryFigureClustersRequest.h
include/alibabacloud/imm/model/QueryFigureClustersResult.h
include/alibabacloud/imm/model/QueryLocationDateClustersRequest.h
@@ -322,8 +318,6 @@ set(imm_src
src/model/ExtractDocumentTextResult.cc
src/model/FuzzyQueryRequest.cc
src/model/FuzzyQueryResult.cc
src/model/GenerateVideoPlaylistRequest.cc
src/model/GenerateVideoPlaylistResult.cc
src/model/GenerateWebofficeTokenRequest.cc
src/model/GenerateWebofficeTokenResult.cc
src/model/GetBatchRequest.cc
@@ -368,8 +362,6 @@ set(imm_src
src/model/ListTasksResult.cc
src/model/ListTriggersRequest.cc
src/model/ListTriggersResult.cc
src/model/LiveTranscodingRequest.cc
src/model/LiveTranscodingResult.cc
src/model/QueryFigureClustersRequest.cc
src/model/QueryFigureClustersResult.cc
src/model/QueryLocationDateClustersRequest.cc

View File

@@ -126,8 +126,6 @@
#include "model/ExtractDocumentTextResult.h"
#include "model/FuzzyQueryRequest.h"
#include "model/FuzzyQueryResult.h"
#include "model/GenerateVideoPlaylistRequest.h"
#include "model/GenerateVideoPlaylistResult.h"
#include "model/GenerateWebofficeTokenRequest.h"
#include "model/GenerateWebofficeTokenResult.h"
#include "model/GetBatchRequest.h"
@@ -172,8 +170,6 @@
#include "model/ListTasksResult.h"
#include "model/ListTriggersRequest.h"
#include "model/ListTriggersResult.h"
#include "model/LiveTranscodingRequest.h"
#include "model/LiveTranscodingResult.h"
#include "model/QueryFigureClustersRequest.h"
#include "model/QueryFigureClustersResult.h"
#include "model/QueryLocationDateClustersRequest.h"
@@ -381,9 +377,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::FuzzyQueryResult> FuzzyQueryOutcome;
typedef std::future<FuzzyQueryOutcome> FuzzyQueryOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::FuzzyQueryRequest&, const FuzzyQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FuzzyQueryAsyncHandler;
typedef Outcome<Error, Model::GenerateVideoPlaylistResult> GenerateVideoPlaylistOutcome;
typedef std::future<GenerateVideoPlaylistOutcome> GenerateVideoPlaylistOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::GenerateVideoPlaylistRequest&, const GenerateVideoPlaylistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateVideoPlaylistAsyncHandler;
typedef Outcome<Error, Model::GenerateWebofficeTokenResult> GenerateWebofficeTokenOutcome;
typedef std::future<GenerateWebofficeTokenOutcome> GenerateWebofficeTokenOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::GenerateWebofficeTokenRequest&, const GenerateWebofficeTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateWebofficeTokenAsyncHandler;
@@ -450,9 +443,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListTriggersResult> ListTriggersOutcome;
typedef std::future<ListTriggersOutcome> ListTriggersOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::ListTriggersRequest&, const ListTriggersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTriggersAsyncHandler;
typedef Outcome<Error, Model::LiveTranscodingResult> LiveTranscodingOutcome;
typedef std::future<LiveTranscodingOutcome> LiveTranscodingOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::LiveTranscodingRequest&, const LiveTranscodingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LiveTranscodingAsyncHandler;
typedef Outcome<Error, Model::QueryFigureClustersResult> QueryFigureClustersOutcome;
typedef std::future<QueryFigureClustersOutcome> QueryFigureClustersOutcomeCallable;
typedef std::function<void(const ImmClient*, const Model::QueryFigureClustersRequest&, const QueryFigureClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryFigureClustersAsyncHandler;
@@ -677,9 +667,6 @@ namespace AlibabaCloud
FuzzyQueryOutcome fuzzyQuery(const Model::FuzzyQueryRequest &request)const;
void fuzzyQueryAsync(const Model::FuzzyQueryRequest& request, const FuzzyQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
FuzzyQueryOutcomeCallable fuzzyQueryCallable(const Model::FuzzyQueryRequest& request) const;
GenerateVideoPlaylistOutcome generateVideoPlaylist(const Model::GenerateVideoPlaylistRequest &request)const;
void generateVideoPlaylistAsync(const Model::GenerateVideoPlaylistRequest& request, const GenerateVideoPlaylistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GenerateVideoPlaylistOutcomeCallable generateVideoPlaylistCallable(const Model::GenerateVideoPlaylistRequest& request) const;
GenerateWebofficeTokenOutcome generateWebofficeToken(const Model::GenerateWebofficeTokenRequest &request)const;
void generateWebofficeTokenAsync(const Model::GenerateWebofficeTokenRequest& request, const GenerateWebofficeTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GenerateWebofficeTokenOutcomeCallable generateWebofficeTokenCallable(const Model::GenerateWebofficeTokenRequest& request) const;
@@ -746,9 +733,6 @@ namespace AlibabaCloud
ListTriggersOutcome listTriggers(const Model::ListTriggersRequest &request)const;
void listTriggersAsync(const Model::ListTriggersRequest& request, const ListTriggersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTriggersOutcomeCallable listTriggersCallable(const Model::ListTriggersRequest& request) const;
LiveTranscodingOutcome liveTranscoding(const Model::LiveTranscodingRequest &request)const;
void liveTranscodingAsync(const Model::LiveTranscodingRequest& request, const LiveTranscodingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
LiveTranscodingOutcomeCallable liveTranscodingCallable(const Model::LiveTranscodingRequest& request) const;
QueryFigureClustersOutcome queryFigureClusters(const Model::QueryFigureClustersRequest &request)const;
void queryFigureClustersAsync(const Model::QueryFigureClustersRequest& request, const QueryFigureClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryFigureClustersOutcomeCallable queryFigureClustersCallable(const Model::QueryFigureClustersRequest& request) const;

View File

@@ -1,181 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_GENERATEVIDEOPLAYLISTREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_GENERATEVIDEOPLAYLISTREQUEST_H_
#include <alibabacloud/imm/ImmExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Imm {
namespace Model {
class ALIBABACLOUD_IMM_EXPORT GenerateVideoPlaylistRequest : public RpcServiceRequest {
public:
struct Targets {
float duration;
float float;
std::vector<float> initialSegments;
struct Subtitle {
bool disableSubtitle;
int integer;
std::vector<int> stream;
struct ExtractSubtitle {
std::string format;
std::string uRI;
};
ExtractSubtitle extractSubtitle;
};
Subtitle subtitle;
int transcodeAhead;
struct Video {
struct FilterVideo {
struct DelogosItem {
double duration;
float dx;
float dy;
float width;
std::string referPos;
double startTime;
float height;
};
DelogosItem delogosItem;
std::vector<DelogosItem> delogos;
struct WatermarksItem {
float fontApha;
int fontSize;
double startTime;
std::string type;
std::string fontName;
std::string uRI;
std::string content;
std::string borderColor;
double duration;
float dx;
float dy;
int borderWidth;
float width;
std::string fontColor;
std::string referPos;
float height;
};
WatermarksItem watermarksItem;
std::vector<WatermarksItem> watermarks;
};
FilterVideo filterVideo;
int integer;
std::vector<int> stream;
bool disableVideo;
struct TranscodeVideo {
std::string resolutionOption;
int gOPSize;
std::string pixelFormat;
float frameRate;
int rotation;
int bitrate;
int bufferSize;
std::string resolution;
int bFrames;
int maxBitrate;
std::string codec;
std::string bitrateOption;
int refs;
float cRF;
std::string scaleType;
std::string frameRateOption;
bool adaptiveResolutionDirection;
};
TranscodeVideo transcodeVideo;
};
Video video;
struct Audio {
long long;
std::vector<long> stream;
bool disableAudio;
struct TranscodeAudio {
std::string codec;
std::string bitrateOption;
int channel;
int bitrate;
std::string sampleRateOption;
int quality;
int sampleRate;
};
TranscodeAudio transcodeAudio;
struct FilterAudio {
bool mixing;
};
FilterAudio filterAudio;
};
Audio audio;
std::string uRI;
float speed;
float initialTranscode;
};
struct CredentialConfig {
struct ChainItem {
std::string role;
std::string roleType;
std::string assumeRoleFor;
};
ChainItem chainItem;
std::vector<ChainItem> chain;
std::string serviceRole;
std::string policy;
};
struct SourceSubtitles {
std::string language;
std::string uRI;
};
GenerateVideoPlaylistRequest();
~GenerateVideoPlaylistRequest();
float getSourceDuration() const;
void setSourceDuration(float sourceDuration);
std::vector<Targets> getTargets() const;
void setTargets(const std::vector<Targets> &targets);
std::string getMasterURI() const;
void setMasterURI(const std::string &masterURI);
std::string getProjectName() const;
void setProjectName(const std::string &projectName);
CredentialConfig getCredentialConfig() const;
void setCredentialConfig(const CredentialConfig &credentialConfig);
std::map<std::string, std::string> getTags() const;
void setTags(const std::map<std::string, std::string> &tags);
float getSourceStartTime() const;
void setSourceStartTime(float sourceStartTime);
std::string getSourceURI() const;
void setSourceURI(const std::string &sourceURI);
std::vector<SourceSubtitles> getSourceSubtitles() const;
void setSourceSubtitles(const std::vector<SourceSubtitles> &sourceSubtitles);
private:
float sourceDuration_;
std::vector<Targets> targets_;
std::string masterURI_;
std::string projectName_;
CredentialConfig credentialConfig_;
std::map<std::string, std::string> tags_;
float sourceStartTime_;
std::string sourceURI_;
std::vector<SourceSubtitles> sourceSubtitles_;
};
} // namespace Model
} // namespace Imm
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_IMM_MODEL_GENERATEVIDEOPLAYLISTREQUEST_H_

View File

@@ -1,76 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_GENERATEVIDEOPLAYLISTRESULT_H_
#define ALIBABACLOUD_IMM_MODEL_GENERATEVIDEOPLAYLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT GenerateVideoPlaylistResult : public ServiceResult
{
public:
struct VideoPlaylistItem
{
std::string token;
std::string uRI;
};
struct AudioPlaylistItem
{
std::string token;
std::string uRI;
};
struct SubtitlePlaylistItem
{
std::string language;
std::string token;
int index;
std::string uRI;
};
GenerateVideoPlaylistResult();
explicit GenerateVideoPlaylistResult(const std::string &payload);
~GenerateVideoPlaylistResult();
std::vector<VideoPlaylistItem> getVideoPlaylist()const;
std::vector<SubtitlePlaylistItem> getSubtitlePlaylist()const;
std::string getToken()const;
std::string getURI()const;
std::vector<AudioPlaylistItem> getAudioPlaylist()const;
protected:
void parse(const std::string &payload);
private:
std::vector<VideoPlaylistItem> videoPlaylist_;
std::vector<SubtitlePlaylistItem> subtitlePlaylist_;
std::string token_;
std::string uRI_;
std::vector<AudioPlaylistItem> audioPlaylist_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_GENERATEVIDEOPLAYLISTRESULT_H_

View File

@@ -1,59 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_LIVETRANSCODINGREQUEST_H_
#define ALIBABACLOUD_IMM_MODEL_LIVETRANSCODINGREQUEST_H_
#include <alibabacloud/imm/ImmExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Imm {
namespace Model {
class ALIBABACLOUD_IMM_EXPORT LiveTranscodingRequest : public RpcServiceRequest {
public:
struct CredentialConfig {
struct ChainItem {
std::string role;
std::string roleType;
std::string assumeRoleFor;
};
ChainItem chainItem;
std::vector<ChainItem> chain;
std::string serviceRole;
std::string policy;
};
LiveTranscodingRequest();
~LiveTranscodingRequest();
std::string getProjectName() const;
void setProjectName(const std::string &projectName);
CredentialConfig getCredentialConfig() const;
void setCredentialConfig(const CredentialConfig &credentialConfig);
std::string getSourceURI() const;
void setSourceURI(const std::string &sourceURI);
private:
std::string projectName_;
CredentialConfig credentialConfig_;
std::string sourceURI_;
};
} // namespace Model
} // namespace Imm
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_IMM_MODEL_LIVETRANSCODINGREQUEST_H_

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IMM_MODEL_LIVETRANSCODINGRESULT_H_
#define ALIBABACLOUD_IMM_MODEL_LIVETRANSCODINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/imm/ImmExport.h>
namespace AlibabaCloud
{
namespace Imm
{
namespace Model
{
class ALIBABACLOUD_IMM_EXPORT LiveTranscodingResult : public ServiceResult
{
public:
LiveTranscodingResult();
explicit LiveTranscodingResult(const std::string &payload);
~LiveTranscodingResult();
std::string getURI()const;
protected:
void parse(const std::string &payload);
private:
std::string uRI_;
};
}
}
}
#endif // !ALIBABACLOUD_IMM_MODEL_LIVETRANSCODINGRESULT_H_

View File

@@ -1923,42 +1923,6 @@ ImmClient::FuzzyQueryOutcomeCallable ImmClient::fuzzyQueryCallable(const FuzzyQu
return task->get_future();
}
ImmClient::GenerateVideoPlaylistOutcome ImmClient::generateVideoPlaylist(const GenerateVideoPlaylistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GenerateVideoPlaylistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GenerateVideoPlaylistOutcome(GenerateVideoPlaylistResult(outcome.result()));
else
return GenerateVideoPlaylistOutcome(outcome.error());
}
void ImmClient::generateVideoPlaylistAsync(const GenerateVideoPlaylistRequest& request, const GenerateVideoPlaylistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, generateVideoPlaylist(request), context);
};
asyncExecute(new Runnable(fn));
}
ImmClient::GenerateVideoPlaylistOutcomeCallable ImmClient::generateVideoPlaylistCallable(const GenerateVideoPlaylistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GenerateVideoPlaylistOutcome()>>(
[this, request]()
{
return this->generateVideoPlaylist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ImmClient::GenerateWebofficeTokenOutcome ImmClient::generateWebofficeToken(const GenerateWebofficeTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2751,42 +2715,6 @@ ImmClient::ListTriggersOutcomeCallable ImmClient::listTriggersCallable(const Lis
return task->get_future();
}
ImmClient::LiveTranscodingOutcome ImmClient::liveTranscoding(const LiveTranscodingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return LiveTranscodingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return LiveTranscodingOutcome(LiveTranscodingResult(outcome.result()));
else
return LiveTranscodingOutcome(outcome.error());
}
void ImmClient::liveTranscodingAsync(const LiveTranscodingRequest& request, const LiveTranscodingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, liveTranscoding(request), context);
};
asyncExecute(new Runnable(fn));
}
ImmClient::LiveTranscodingOutcomeCallable ImmClient::liveTranscodingCallable(const LiveTranscodingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<LiveTranscodingOutcome()>>(
[this, request]()
{
return this->liveTranscoding(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ImmClient::QueryFigureClustersOutcome ImmClient::queryFigureClusters(const QueryFigureClustersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,194 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GenerateVideoPlaylistRequest.h>
using AlibabaCloud::Imm::Model::GenerateVideoPlaylistRequest;
GenerateVideoPlaylistRequest::GenerateVideoPlaylistRequest()
: RpcServiceRequest("imm", "2020-09-30", "GenerateVideoPlaylist") {
setMethod(HttpRequest::Method::Post);
}
GenerateVideoPlaylistRequest::~GenerateVideoPlaylistRequest() {}
float GenerateVideoPlaylistRequest::getSourceDuration() const {
return sourceDuration_;
}
void GenerateVideoPlaylistRequest::setSourceDuration(float sourceDuration) {
sourceDuration_ = sourceDuration;
setParameter(std::string("SourceDuration"), std::to_string(sourceDuration));
}
std::vector<GenerateVideoPlaylistRequest::Targets> GenerateVideoPlaylistRequest::getTargets() const {
return targets_;
}
void GenerateVideoPlaylistRequest::setTargets(const std::vector<GenerateVideoPlaylistRequest::Targets> &targets) {
targets_ = targets;
for(int dep1 = 0; dep1 != targets.size(); dep1++) {
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Duration", std::to_string(targets[dep1].duration));
for(int dep2 = 0; dep2 != targets[dep1].initialSegments.size(); dep2++) {
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".InitialSegments." + std::to_string(dep2 + 1), std::to_string(targets[dep1].initialSegments[dep2]));
}
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Subtitle.DisableSubtitle", targets[dep1].subtitle.disableSubtitle ? "true" : "false");
for(int dep2 = 0; dep2 != targets[dep1].subtitle.stream.size(); dep2++) {
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Subtitle.Stream." + std::to_string(dep2 + 1), std::to_string(targets[dep1].subtitle.stream[dep2]));
}
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Subtitle.ExtractSubtitle.Format", targets[dep1].subtitle.extractSubtitle.format);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Subtitle.ExtractSubtitle.URI", targets[dep1].subtitle.extractSubtitle.uRI);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".TranscodeAhead", std::to_string(targets[dep1].transcodeAhead));
for(int dep2 = 0; dep2 != targets[dep1].video.filterVideo.delogos.size(); dep2++) {
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Duration", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].duration));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Dx", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].dx));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Dy", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].dy));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Width", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].width));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".ReferPos", targets[dep1].video.filterVideo.delogos[dep2].referPos);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".StartTime", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].startTime));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Height", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].height));
}
for(int dep2 = 0; dep2 != targets[dep1].video.filterVideo.watermarks.size(); dep2++) {
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".FontApha", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].fontApha));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".FontSize", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].fontSize));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".StartTime", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].startTime));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Type", targets[dep1].video.filterVideo.watermarks[dep2].type);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".FontName", targets[dep1].video.filterVideo.watermarks[dep2].fontName);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".URI", targets[dep1].video.filterVideo.watermarks[dep2].uRI);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Content", targets[dep1].video.filterVideo.watermarks[dep2].content);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".BorderColor", targets[dep1].video.filterVideo.watermarks[dep2].borderColor);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Duration", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].duration));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Dx", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].dx));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Dy", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].dy));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".BorderWidth", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].borderWidth));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Width", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].width));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".FontColor", targets[dep1].video.filterVideo.watermarks[dep2].fontColor);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".ReferPos", targets[dep1].video.filterVideo.watermarks[dep2].referPos);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Height", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].height));
}
for(int dep2 = 0; dep2 != targets[dep1].video.stream.size(); dep2++) {
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.Stream." + std::to_string(dep2 + 1), std::to_string(targets[dep1].video.stream[dep2]));
}
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.DisableVideo", targets[dep1].video.disableVideo ? "true" : "false");
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.ResolutionOption", targets[dep1].video.transcodeVideo.resolutionOption);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.GOPSize", std::to_string(targets[dep1].video.transcodeVideo.gOPSize));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.PixelFormat", targets[dep1].video.transcodeVideo.pixelFormat);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.FrameRate", std::to_string(targets[dep1].video.transcodeVideo.frameRate));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Rotation", std::to_string(targets[dep1].video.transcodeVideo.rotation));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Bitrate", std::to_string(targets[dep1].video.transcodeVideo.bitrate));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.BufferSize", std::to_string(targets[dep1].video.transcodeVideo.bufferSize));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Resolution", targets[dep1].video.transcodeVideo.resolution);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.BFrames", std::to_string(targets[dep1].video.transcodeVideo.bFrames));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.MaxBitrate", std::to_string(targets[dep1].video.transcodeVideo.maxBitrate));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Codec", targets[dep1].video.transcodeVideo.codec);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.BitrateOption", targets[dep1].video.transcodeVideo.bitrateOption);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Refs", std::to_string(targets[dep1].video.transcodeVideo.refs));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.CRF", std::to_string(targets[dep1].video.transcodeVideo.cRF));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.ScaleType", targets[dep1].video.transcodeVideo.scaleType);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.FrameRateOption", targets[dep1].video.transcodeVideo.frameRateOption);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.AdaptiveResolutionDirection", targets[dep1].video.transcodeVideo.adaptiveResolutionDirection ? "true" : "false");
for(int dep2 = 0; dep2 != targets[dep1].audio.stream.size(); dep2++) {
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.Stream." + std::to_string(dep2 + 1), std::to_string(targets[dep1].audio.stream[dep2]));
}
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.DisableAudio", targets[dep1].audio.disableAudio ? "true" : "false");
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.Codec", targets[dep1].audio.transcodeAudio.codec);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.BitrateOption", targets[dep1].audio.transcodeAudio.bitrateOption);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.Channel", std::to_string(targets[dep1].audio.transcodeAudio.channel));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.Bitrate", std::to_string(targets[dep1].audio.transcodeAudio.bitrate));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.SampleRateOption", targets[dep1].audio.transcodeAudio.sampleRateOption);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.Quality", std::to_string(targets[dep1].audio.transcodeAudio.quality));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.SampleRate", std::to_string(targets[dep1].audio.transcodeAudio.sampleRate));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.FilterAudio.Mixing", targets[dep1].audio.filterAudio.mixing ? "true" : "false");
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".URI", targets[dep1].uRI);
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Speed", std::to_string(targets[dep1].speed));
setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".InitialTranscode", std::to_string(targets[dep1].initialTranscode));
}
}
std::string GenerateVideoPlaylistRequest::getMasterURI() const {
return masterURI_;
}
void GenerateVideoPlaylistRequest::setMasterURI(const std::string &masterURI) {
masterURI_ = masterURI;
setParameter(std::string("MasterURI"), masterURI);
}
std::string GenerateVideoPlaylistRequest::getProjectName() const {
return projectName_;
}
void GenerateVideoPlaylistRequest::setProjectName(const std::string &projectName) {
projectName_ = projectName;
setParameter(std::string("ProjectName"), projectName);
}
GenerateVideoPlaylistRequest::CredentialConfig GenerateVideoPlaylistRequest::getCredentialConfig() const {
return credentialConfig_;
}
void GenerateVideoPlaylistRequest::setCredentialConfig(const GenerateVideoPlaylistRequest::CredentialConfig &credentialConfig) {
credentialConfig_ = credentialConfig;
for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) {
setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role);
setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType);
setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor);
}
setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole);
setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy);
}
std::map<std::string, std::string> GenerateVideoPlaylistRequest::getTags() const {
return tags_;
}
void GenerateVideoPlaylistRequest::setTags(const std::map<std::string, std::string> &tags) {
tags_ = tags;
for(auto const &iter1 : tags) {
setParameter(std::string("Tags") + "." + iter1.first, iter1.second);
}
}
float GenerateVideoPlaylistRequest::getSourceStartTime() const {
return sourceStartTime_;
}
void GenerateVideoPlaylistRequest::setSourceStartTime(float sourceStartTime) {
sourceStartTime_ = sourceStartTime;
setParameter(std::string("SourceStartTime"), std::to_string(sourceStartTime));
}
std::string GenerateVideoPlaylistRequest::getSourceURI() const {
return sourceURI_;
}
void GenerateVideoPlaylistRequest::setSourceURI(const std::string &sourceURI) {
sourceURI_ = sourceURI;
setParameter(std::string("SourceURI"), sourceURI);
}
std::vector<GenerateVideoPlaylistRequest::SourceSubtitles> GenerateVideoPlaylistRequest::getSourceSubtitles() const {
return sourceSubtitles_;
}
void GenerateVideoPlaylistRequest::setSourceSubtitles(const std::vector<GenerateVideoPlaylistRequest::SourceSubtitles> &sourceSubtitles) {
sourceSubtitles_ = sourceSubtitles;
for(int dep1 = 0; dep1 != sourceSubtitles.size(); dep1++) {
setParameter(std::string("SourceSubtitles") + "." + std::to_string(dep1 + 1) + ".Language", sourceSubtitles[dep1].language);
setParameter(std::string("SourceSubtitles") + "." + std::to_string(dep1 + 1) + ".URI", sourceSubtitles[dep1].uRI);
}
}

View File

@@ -1,107 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GenerateVideoPlaylistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
GenerateVideoPlaylistResult::GenerateVideoPlaylistResult() :
ServiceResult()
{}
GenerateVideoPlaylistResult::GenerateVideoPlaylistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GenerateVideoPlaylistResult::~GenerateVideoPlaylistResult()
{}
void GenerateVideoPlaylistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVideoPlaylistNode = value["VideoPlaylist"]["VideoPlaylistItem"];
for (auto valueVideoPlaylistVideoPlaylistItem : allVideoPlaylistNode)
{
VideoPlaylistItem videoPlaylistObject;
if(!valueVideoPlaylistVideoPlaylistItem["Token"].isNull())
videoPlaylistObject.token = valueVideoPlaylistVideoPlaylistItem["Token"].asString();
if(!valueVideoPlaylistVideoPlaylistItem["URI"].isNull())
videoPlaylistObject.uRI = valueVideoPlaylistVideoPlaylistItem["URI"].asString();
videoPlaylist_.push_back(videoPlaylistObject);
}
auto allAudioPlaylistNode = value["AudioPlaylist"]["AudioPlaylistItem"];
for (auto valueAudioPlaylistAudioPlaylistItem : allAudioPlaylistNode)
{
AudioPlaylistItem audioPlaylistObject;
if(!valueAudioPlaylistAudioPlaylistItem["Token"].isNull())
audioPlaylistObject.token = valueAudioPlaylistAudioPlaylistItem["Token"].asString();
if(!valueAudioPlaylistAudioPlaylistItem["URI"].isNull())
audioPlaylistObject.uRI = valueAudioPlaylistAudioPlaylistItem["URI"].asString();
audioPlaylist_.push_back(audioPlaylistObject);
}
auto allSubtitlePlaylistNode = value["SubtitlePlaylist"]["SubtitlePlaylistItem"];
for (auto valueSubtitlePlaylistSubtitlePlaylistItem : allSubtitlePlaylistNode)
{
SubtitlePlaylistItem subtitlePlaylistObject;
if(!valueSubtitlePlaylistSubtitlePlaylistItem["Token"].isNull())
subtitlePlaylistObject.token = valueSubtitlePlaylistSubtitlePlaylistItem["Token"].asString();
if(!valueSubtitlePlaylistSubtitlePlaylistItem["URI"].isNull())
subtitlePlaylistObject.uRI = valueSubtitlePlaylistSubtitlePlaylistItem["URI"].asString();
if(!valueSubtitlePlaylistSubtitlePlaylistItem["Language"].isNull())
subtitlePlaylistObject.language = valueSubtitlePlaylistSubtitlePlaylistItem["Language"].asString();
if(!valueSubtitlePlaylistSubtitlePlaylistItem["Index"].isNull())
subtitlePlaylistObject.index = std::stoi(valueSubtitlePlaylistSubtitlePlaylistItem["Index"].asString());
subtitlePlaylist_.push_back(subtitlePlaylistObject);
}
if(!value["Token"].isNull())
token_ = value["Token"].asString();
if(!value["URI"].isNull())
uRI_ = value["URI"].asString();
}
std::vector<GenerateVideoPlaylistResult::VideoPlaylistItem> GenerateVideoPlaylistResult::getVideoPlaylist()const
{
return videoPlaylist_;
}
std::vector<GenerateVideoPlaylistResult::SubtitlePlaylistItem> GenerateVideoPlaylistResult::getSubtitlePlaylist()const
{
return subtitlePlaylist_;
}
std::string GenerateVideoPlaylistResult::getToken()const
{
return token_;
}
std::string GenerateVideoPlaylistResult::getURI()const
{
return uRI_;
}
std::vector<GenerateVideoPlaylistResult::AudioPlaylistItem> GenerateVideoPlaylistResult::getAudioPlaylist()const
{
return audioPlaylist_;
}

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/LiveTranscodingRequest.h>
using AlibabaCloud::Imm::Model::LiveTranscodingRequest;
LiveTranscodingRequest::LiveTranscodingRequest()
: RpcServiceRequest("imm", "2020-09-30", "LiveTranscoding") {
setMethod(HttpRequest::Method::Post);
}
LiveTranscodingRequest::~LiveTranscodingRequest() {}
std::string LiveTranscodingRequest::getProjectName() const {
return projectName_;
}
void LiveTranscodingRequest::setProjectName(const std::string &projectName) {
projectName_ = projectName;
setParameter(std::string("ProjectName"), projectName);
}
LiveTranscodingRequest::CredentialConfig LiveTranscodingRequest::getCredentialConfig() const {
return credentialConfig_;
}
void LiveTranscodingRequest::setCredentialConfig(const LiveTranscodingRequest::CredentialConfig &credentialConfig) {
credentialConfig_ = credentialConfig;
for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) {
setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role);
setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType);
setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor);
}
setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole);
setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy);
}
std::string LiveTranscodingRequest::getSourceURI() const {
return sourceURI_;
}
void LiveTranscodingRequest::setSourceURI(const std::string &sourceURI) {
sourceURI_ = sourceURI;
setParameter(std::string("SourceURI"), sourceURI);
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/LiveTranscodingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
LiveTranscodingResult::LiveTranscodingResult() :
ServiceResult()
{}
LiveTranscodingResult::LiveTranscodingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
LiveTranscodingResult::~LiveTranscodingResult()
{}
void LiveTranscodingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["URI"].isNull())
uRI_ = value["URI"].asString();
}
std::string LiveTranscodingResult::getURI()const
{
return uRI_;
}