Generated 2016-11-01 for live.
This commit is contained in:
@@ -40,6 +40,8 @@ public:
|
|||||||
void setProtocol(const std::string &protocol);
|
void setProtocol(const std::string &protocol);
|
||||||
std::string getAppName() const;
|
std::string getAppName() const;
|
||||||
void setAppName(const std::string &appName);
|
void setAppName(const std::string &appName);
|
||||||
|
std::string getLiveMerger() const;
|
||||||
|
void setLiveMerger(const std::string &liveMerger);
|
||||||
std::string getRegionId() const;
|
std::string getRegionId() const;
|
||||||
void setRegionId(const std::string ®ionId);
|
void setRegionId(const std::string ®ionId);
|
||||||
std::string getInStreamName2() const;
|
std::string getInStreamName2() const;
|
||||||
@@ -54,6 +56,8 @@ public:
|
|||||||
void setEndTime(const std::string &endTime);
|
void setEndTime(const std::string &endTime);
|
||||||
long getOwnerId() const;
|
long getOwnerId() const;
|
||||||
void setOwnerId(long ownerId);
|
void setOwnerId(long ownerId);
|
||||||
|
std::string getMergeParameters() const;
|
||||||
|
void setMergeParameters(const std::string &mergeParameters);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string inAppName2_;
|
std::string inAppName2_;
|
||||||
@@ -61,6 +65,7 @@ private:
|
|||||||
std::string startTime_;
|
std::string startTime_;
|
||||||
std::string protocol_;
|
std::string protocol_;
|
||||||
std::string appName_;
|
std::string appName_;
|
||||||
|
std::string liveMerger_;
|
||||||
std::string regionId_;
|
std::string regionId_;
|
||||||
std::string inStreamName2_;
|
std::string inStreamName2_;
|
||||||
std::string streamName_;
|
std::string streamName_;
|
||||||
@@ -68,6 +73,7 @@ private:
|
|||||||
std::string domainName_;
|
std::string domainName_;
|
||||||
std::string endTime_;
|
std::string endTime_;
|
||||||
long ownerId_;
|
long ownerId_;
|
||||||
|
std::string mergeParameters_;
|
||||||
};
|
};
|
||||||
} // namespace Model
|
} // namespace Model
|
||||||
} // namespace Live
|
} // namespace Live
|
||||||
|
|||||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
|||||||
AddLiveStreamMergeResult();
|
AddLiveStreamMergeResult();
|
||||||
explicit AddLiveStreamMergeResult(const std::string &payload);
|
explicit AddLiveStreamMergeResult(const std::string &payload);
|
||||||
~AddLiveStreamMergeResult();
|
~AddLiveStreamMergeResult();
|
||||||
|
std::string getMessage()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
|
std::string message_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
|||||||
std::string notifyTime;
|
std::string notifyTime;
|
||||||
std::string domainName;
|
std::string domainName;
|
||||||
std::string notifyContent;
|
std::string notifyContent;
|
||||||
|
std::string notifyResponse;
|
||||||
std::string notifyUrl;
|
std::string notifyUrl;
|
||||||
std::string notifyResult;
|
std::string notifyResult;
|
||||||
std::string appName;
|
std::string appName;
|
||||||
|
|||||||
@@ -40,8 +40,10 @@ namespace AlibabaCloud
|
|||||||
std::string inStreamName2;
|
std::string inStreamName2;
|
||||||
std::string startTime;
|
std::string startTime;
|
||||||
std::string appUsing;
|
std::string appUsing;
|
||||||
|
std::string liveMerger;
|
||||||
std::string appName;
|
std::string appName;
|
||||||
std::string streamName;
|
std::string streamName;
|
||||||
|
std::string mergeParameters;
|
||||||
std::string extraInAppStreams;
|
std::string extraInAppStreams;
|
||||||
std::string streamUsing;
|
std::string streamUsing;
|
||||||
std::string inAppName1;
|
std::string inAppName1;
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
|||||||
std::string notifyTime;
|
std::string notifyTime;
|
||||||
std::string domainName;
|
std::string domainName;
|
||||||
std::string notifyContent;
|
std::string notifyContent;
|
||||||
|
std::string notifyResponse;
|
||||||
std::string notifyUrl;
|
std::string notifyUrl;
|
||||||
std::string notifyResult;
|
std::string notifyResult;
|
||||||
std::string appName;
|
std::string appName;
|
||||||
|
|||||||
@@ -32,29 +32,15 @@ namespace AlibabaCloud
|
|||||||
class ALIBABACLOUD_LIVE_EXPORT DescribeRtcCloudRecordingFilesResult : public ServiceResult
|
class ALIBABACLOUD_LIVE_EXPORT DescribeRtcCloudRecordingFilesResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
struct TaskInfo
|
|
||||||
{
|
|
||||||
struct RecordFileList
|
|
||||||
{
|
|
||||||
std::vector<std::string> hlsFileList;
|
|
||||||
std::vector<std::string> mp3FileList;
|
|
||||||
std::vector<std::string> mp4FileList;
|
|
||||||
};
|
|
||||||
std::string status;
|
|
||||||
std::string taskId;
|
|
||||||
RecordFileList recordFileList;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
DescribeRtcCloudRecordingFilesResult();
|
DescribeRtcCloudRecordingFilesResult();
|
||||||
explicit DescribeRtcCloudRecordingFilesResult(const std::string &payload);
|
explicit DescribeRtcCloudRecordingFilesResult(const std::string &payload);
|
||||||
~DescribeRtcCloudRecordingFilesResult();
|
~DescribeRtcCloudRecordingFilesResult();
|
||||||
TaskInfo getTaskInfo()const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
TaskInfo taskInfo_;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,10 +29,19 @@ namespace Model {
|
|||||||
class ALIBABACLOUD_LIVE_EXPORT StartRtcCloudRecordingRequest : public RpcServiceRequest {
|
class ALIBABACLOUD_LIVE_EXPORT StartRtcCloudRecordingRequest : public RpcServiceRequest {
|
||||||
public:
|
public:
|
||||||
struct StorageParams {
|
struct StorageParams {
|
||||||
|
struct VodParams {
|
||||||
|
int autoCompose;
|
||||||
|
std::string composeVodTranscodeGroupId;
|
||||||
|
std::string vodTranscodeGroupId;
|
||||||
|
std::string storageLocation;
|
||||||
|
};
|
||||||
|
VodParams vodParams;
|
||||||
struct FileInfoItem {
|
struct FileInfoItem {
|
||||||
std::string fileNamePattern;
|
std::string fileNamePattern;
|
||||||
std::string format;
|
std::string format;
|
||||||
std::string sliceNamePattern;
|
std::string sliceNamePattern;
|
||||||
|
std::string string;
|
||||||
|
std::vector<std::string> filePathPrefix;
|
||||||
};
|
};
|
||||||
FileInfoItem fileInfoItem;
|
FileInfoItem fileInfoItem;
|
||||||
std::vector<FileInfoItem> fileInfo;
|
std::vector<FileInfoItem> fileInfo;
|
||||||
@@ -102,8 +111,12 @@ public:
|
|||||||
void setSubscribeParams(const SubscribeParams &subscribeParams);
|
void setSubscribeParams(const SubscribeParams &subscribeParams);
|
||||||
RecordParams getRecordParams() const;
|
RecordParams getRecordParams() const;
|
||||||
void setRecordParams(const RecordParams &recordParams);
|
void setRecordParams(const RecordParams &recordParams);
|
||||||
|
long getMaxIdleTime() const;
|
||||||
|
void setMaxIdleTime(long maxIdleTime);
|
||||||
MixTranscodeParams getMixTranscodeParams() const;
|
MixTranscodeParams getMixTranscodeParams() const;
|
||||||
void setMixTranscodeParams(const MixTranscodeParams &mixTranscodeParams);
|
void setMixTranscodeParams(const MixTranscodeParams &mixTranscodeParams);
|
||||||
|
std::string getNotifyAuthKey() const;
|
||||||
|
void setNotifyAuthKey(const std::string ¬ifyAuthKey);
|
||||||
std::string getAppId() const;
|
std::string getAppId() const;
|
||||||
void setAppId(const std::string &appId);
|
void setAppId(const std::string &appId);
|
||||||
std::string getChannelId() const;
|
std::string getChannelId() const;
|
||||||
@@ -116,7 +129,9 @@ private:
|
|||||||
std::string notifyUrl_;
|
std::string notifyUrl_;
|
||||||
SubscribeParams subscribeParams_;
|
SubscribeParams subscribeParams_;
|
||||||
RecordParams recordParams_;
|
RecordParams recordParams_;
|
||||||
|
long maxIdleTime_;
|
||||||
MixTranscodeParams mixTranscodeParams_;
|
MixTranscodeParams mixTranscodeParams_;
|
||||||
|
std::string notifyAuthKey_;
|
||||||
std::string appId_;
|
std::string appId_;
|
||||||
std::string channelId_;
|
std::string channelId_;
|
||||||
MixLayoutParams mixLayoutParams_;
|
MixLayoutParams mixLayoutParams_;
|
||||||
|
|||||||
@@ -70,6 +70,15 @@ void AddLiveStreamMergeRequest::setAppName(const std::string &appName) {
|
|||||||
setParameter(std::string("AppName"), appName);
|
setParameter(std::string("AppName"), appName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string AddLiveStreamMergeRequest::getLiveMerger() const {
|
||||||
|
return liveMerger_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddLiveStreamMergeRequest::setLiveMerger(const std::string &liveMerger) {
|
||||||
|
liveMerger_ = liveMerger;
|
||||||
|
setParameter(std::string("LiveMerger"), liveMerger);
|
||||||
|
}
|
||||||
|
|
||||||
std::string AddLiveStreamMergeRequest::getRegionId() const {
|
std::string AddLiveStreamMergeRequest::getRegionId() const {
|
||||||
return regionId_;
|
return regionId_;
|
||||||
}
|
}
|
||||||
@@ -133,3 +142,12 @@ void AddLiveStreamMergeRequest::setOwnerId(long ownerId) {
|
|||||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string AddLiveStreamMergeRequest::getMergeParameters() const {
|
||||||
|
return mergeParameters_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AddLiveStreamMergeRequest::setMergeParameters(const std::string &mergeParameters) {
|
||||||
|
mergeParameters_ = mergeParameters;
|
||||||
|
setParameter(std::string("MergeParameters"), mergeParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,13 @@ void AddLiveStreamMergeResult::parse(const std::string &payload)
|
|||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Message"].isNull())
|
||||||
|
message_ = value["Message"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string AddLiveStreamMergeResult::getMessage()const
|
||||||
|
{
|
||||||
|
return message_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -59,6 +59,8 @@ void DescribeLiveRecordNotifyRecordsResult::parse(const std::string &payload)
|
|||||||
callbackListObject.notifyType = valueCallbackListCallback["NotifyType"].asString();
|
callbackListObject.notifyType = valueCallbackListCallback["NotifyType"].asString();
|
||||||
if(!valueCallbackListCallback["NotifyUrl"].isNull())
|
if(!valueCallbackListCallback["NotifyUrl"].isNull())
|
||||||
callbackListObject.notifyUrl = valueCallbackListCallback["NotifyUrl"].asString();
|
callbackListObject.notifyUrl = valueCallbackListCallback["NotifyUrl"].asString();
|
||||||
|
if(!valueCallbackListCallback["NotifyResponse"].isNull())
|
||||||
|
callbackListObject.notifyResponse = valueCallbackListCallback["NotifyResponse"].asString();
|
||||||
if(!valueCallbackListCallback["StreamName"].isNull())
|
if(!valueCallbackListCallback["StreamName"].isNull())
|
||||||
callbackListObject.streamName = valueCallbackListCallback["StreamName"].asString();
|
callbackListObject.streamName = valueCallbackListCallback["StreamName"].asString();
|
||||||
callbackList_.push_back(callbackListObject);
|
callbackList_.push_back(callbackListObject);
|
||||||
|
|||||||
@@ -69,6 +69,10 @@ void DescribeLiveStreamMergeResult::parse(const std::string &payload)
|
|||||||
liveStreamMergeListObject.streamName = valueLiveStreamMergeListLiveStreamMerge["StreamName"].asString();
|
liveStreamMergeListObject.streamName = valueLiveStreamMergeListLiveStreamMerge["StreamName"].asString();
|
||||||
if(!valueLiveStreamMergeListLiveStreamMerge["StreamUsing"].isNull())
|
if(!valueLiveStreamMergeListLiveStreamMerge["StreamUsing"].isNull())
|
||||||
liveStreamMergeListObject.streamUsing = valueLiveStreamMergeListLiveStreamMerge["StreamUsing"].asString();
|
liveStreamMergeListObject.streamUsing = valueLiveStreamMergeListLiveStreamMerge["StreamUsing"].asString();
|
||||||
|
if(!valueLiveStreamMergeListLiveStreamMerge["LiveMerger"].isNull())
|
||||||
|
liveStreamMergeListObject.liveMerger = valueLiveStreamMergeListLiveStreamMerge["LiveMerger"].asString();
|
||||||
|
if(!valueLiveStreamMergeListLiveStreamMerge["MergeParameters"].isNull())
|
||||||
|
liveStreamMergeListObject.mergeParameters = valueLiveStreamMergeListLiveStreamMerge["MergeParameters"].asString();
|
||||||
liveStreamMergeList_.push_back(liveStreamMergeListObject);
|
liveStreamMergeList_.push_back(liveStreamMergeListObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,24 +43,26 @@ void DescribeLiveStreamsNotifyRecordsResult::parse(const std::string &payload)
|
|||||||
for (auto valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo : allNotifyRecordsInfoNode)
|
for (auto valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo : allNotifyRecordsInfoNode)
|
||||||
{
|
{
|
||||||
LiveStreamNotifyRecordsInfo notifyRecordsInfoObject;
|
LiveStreamNotifyRecordsInfo notifyRecordsInfoObject;
|
||||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["AppName"].isNull())
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyType"].isNull())
|
||||||
notifyRecordsInfoObject.appName = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["AppName"].asString();
|
notifyRecordsInfoObject.notifyType = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyType"].asString();
|
||||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["Description"].isNull())
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["Description"].isNull())
|
||||||
notifyRecordsInfoObject.description = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["Description"].asString();
|
notifyRecordsInfoObject.description = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["Description"].asString();
|
||||||
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["StreamName"].isNull())
|
||||||
|
notifyRecordsInfoObject.streamName = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["StreamName"].asString();
|
||||||
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyTime"].isNull())
|
||||||
|
notifyRecordsInfoObject.notifyTime = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyTime"].asString();
|
||||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["DomainName"].isNull())
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["DomainName"].isNull())
|
||||||
notifyRecordsInfoObject.domainName = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["DomainName"].asString();
|
notifyRecordsInfoObject.domainName = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["DomainName"].asString();
|
||||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyContent"].isNull())
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyContent"].isNull())
|
||||||
notifyRecordsInfoObject.notifyContent = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyContent"].asString();
|
notifyRecordsInfoObject.notifyContent = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyContent"].asString();
|
||||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyResult"].isNull())
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyResponse"].isNull())
|
||||||
notifyRecordsInfoObject.notifyResult = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyResult"].asString();
|
notifyRecordsInfoObject.notifyResponse = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyResponse"].asString();
|
||||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyTime"].isNull())
|
|
||||||
notifyRecordsInfoObject.notifyTime = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyTime"].asString();
|
|
||||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyType"].isNull())
|
|
||||||
notifyRecordsInfoObject.notifyType = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyType"].asString();
|
|
||||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyUrl"].isNull())
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyUrl"].isNull())
|
||||||
notifyRecordsInfoObject.notifyUrl = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyUrl"].asString();
|
notifyRecordsInfoObject.notifyUrl = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyUrl"].asString();
|
||||||
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["StreamName"].isNull())
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyResult"].isNull())
|
||||||
notifyRecordsInfoObject.streamName = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["StreamName"].asString();
|
notifyRecordsInfoObject.notifyResult = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["NotifyResult"].asString();
|
||||||
|
if(!valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["AppName"].isNull())
|
||||||
|
notifyRecordsInfoObject.appName = valueNotifyRecordsInfoLiveStreamNotifyRecordsInfo["AppName"].asString();
|
||||||
notifyRecordsInfo_.push_back(notifyRecordsInfoObject);
|
notifyRecordsInfo_.push_back(notifyRecordsInfoObject);
|
||||||
}
|
}
|
||||||
if(!value["PageNum"].isNull())
|
if(!value["PageNum"].isNull())
|
||||||
|
|||||||
@@ -39,26 +39,6 @@ void DescribeRtcCloudRecordingFilesResult::parse(const std::string &payload)
|
|||||||
Json::Value value;
|
Json::Value value;
|
||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto taskInfoNode = value["TaskInfo"];
|
|
||||||
if(!taskInfoNode["TaskId"].isNull())
|
|
||||||
taskInfo_.taskId = taskInfoNode["TaskId"].asString();
|
|
||||||
if(!taskInfoNode["Status"].isNull())
|
|
||||||
taskInfo_.status = taskInfoNode["Status"].asString();
|
|
||||||
auto recordFileListNode = taskInfoNode["RecordFileList"];
|
|
||||||
auto allMp3FileList = recordFileListNode["Mp3FileList"]["FileName"];
|
|
||||||
for (auto value : allMp3FileList)
|
|
||||||
taskInfo_.recordFileList.mp3FileList.push_back(value.asString());
|
|
||||||
auto allMp4FileList = recordFileListNode["Mp4FileList"]["FileName"];
|
|
||||||
for (auto value : allMp4FileList)
|
|
||||||
taskInfo_.recordFileList.mp4FileList.push_back(value.asString());
|
|
||||||
auto allHlsFileList = recordFileListNode["HlsFileList"]["FileName"];
|
|
||||||
for (auto value : allHlsFileList)
|
|
||||||
taskInfo_.recordFileList.hlsFileList.push_back(value.asString());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DescribeRtcCloudRecordingFilesResult::TaskInfo DescribeRtcCloudRecordingFilesResult::getTaskInfo()const
|
|
||||||
{
|
|
||||||
return taskInfo_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,10 +31,17 @@ StartRtcCloudRecordingRequest::StorageParams StartRtcCloudRecordingRequest::getS
|
|||||||
|
|
||||||
void StartRtcCloudRecordingRequest::setStorageParams(const StartRtcCloudRecordingRequest::StorageParams &storageParams) {
|
void StartRtcCloudRecordingRequest::setStorageParams(const StartRtcCloudRecordingRequest::StorageParams &storageParams) {
|
||||||
storageParams_ = storageParams;
|
storageParams_ = storageParams;
|
||||||
|
setParameter(std::string("StorageParams") + ".VodParams.AutoCompose", std::to_string(storageParams.vodParams.autoCompose));
|
||||||
|
setParameter(std::string("StorageParams") + ".VodParams.ComposeVodTranscodeGroupId", storageParams.vodParams.composeVodTranscodeGroupId);
|
||||||
|
setParameter(std::string("StorageParams") + ".VodParams.VodTranscodeGroupId", storageParams.vodParams.vodTranscodeGroupId);
|
||||||
|
setParameter(std::string("StorageParams") + ".VodParams.StorageLocation", storageParams.vodParams.storageLocation);
|
||||||
for(int dep1 = 0; dep1 != storageParams.fileInfo.size(); dep1++) {
|
for(int dep1 = 0; dep1 != storageParams.fileInfo.size(); dep1++) {
|
||||||
setParameter(std::string("StorageParams") + ".FileInfo." + std::to_string(dep1 + 1) + ".FileNamePattern", storageParams.fileInfo[dep1].fileNamePattern);
|
setParameter(std::string("StorageParams") + ".FileInfo." + std::to_string(dep1 + 1) + ".FileNamePattern", storageParams.fileInfo[dep1].fileNamePattern);
|
||||||
setParameter(std::string("StorageParams") + ".FileInfo." + std::to_string(dep1 + 1) + ".Format", storageParams.fileInfo[dep1].format);
|
setParameter(std::string("StorageParams") + ".FileInfo." + std::to_string(dep1 + 1) + ".Format", storageParams.fileInfo[dep1].format);
|
||||||
setParameter(std::string("StorageParams") + ".FileInfo." + std::to_string(dep1 + 1) + ".SliceNamePattern", storageParams.fileInfo[dep1].sliceNamePattern);
|
setParameter(std::string("StorageParams") + ".FileInfo." + std::to_string(dep1 + 1) + ".SliceNamePattern", storageParams.fileInfo[dep1].sliceNamePattern);
|
||||||
|
for(int dep2 = 0; dep2 != storageParams.fileInfo[dep1].filePathPrefix.size(); dep2++) {
|
||||||
|
setParameter(std::string("StorageParams") + ".FileInfo." + std::to_string(dep1 + 1) + ".FilePathPrefix." + std::to_string(dep2 + 1), storageParams.fileInfo[dep1].filePathPrefix[dep2]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
setParameter(std::string("StorageParams") + ".StorageType", std::to_string(storageParams.storageType));
|
setParameter(std::string("StorageParams") + ".StorageType", std::to_string(storageParams.storageType));
|
||||||
setParameter(std::string("StorageParams") + ".OSSParams.OSSBucket", storageParams.oSSParams.oSSBucket);
|
setParameter(std::string("StorageParams") + ".OSSParams.OSSBucket", storageParams.oSSParams.oSSBucket);
|
||||||
@@ -74,6 +81,15 @@ void StartRtcCloudRecordingRequest::setRecordParams(const StartRtcCloudRecording
|
|||||||
setParameter(std::string("RecordParams") + ".RecordMode", std::to_string(recordParams.recordMode));
|
setParameter(std::string("RecordParams") + ".RecordMode", std::to_string(recordParams.recordMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long StartRtcCloudRecordingRequest::getMaxIdleTime() const {
|
||||||
|
return maxIdleTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StartRtcCloudRecordingRequest::setMaxIdleTime(long maxIdleTime) {
|
||||||
|
maxIdleTime_ = maxIdleTime;
|
||||||
|
setParameter(std::string("MaxIdleTime"), std::to_string(maxIdleTime));
|
||||||
|
}
|
||||||
|
|
||||||
StartRtcCloudRecordingRequest::MixTranscodeParams StartRtcCloudRecordingRequest::getMixTranscodeParams() const {
|
StartRtcCloudRecordingRequest::MixTranscodeParams StartRtcCloudRecordingRequest::getMixTranscodeParams() const {
|
||||||
return mixTranscodeParams_;
|
return mixTranscodeParams_;
|
||||||
}
|
}
|
||||||
@@ -92,6 +108,15 @@ void StartRtcCloudRecordingRequest::setMixTranscodeParams(const StartRtcCloudRec
|
|||||||
setParameter(std::string("MixTranscodeParams") + ".VideoGop", std::to_string(mixTranscodeParams.videoGop));
|
setParameter(std::string("MixTranscodeParams") + ".VideoGop", std::to_string(mixTranscodeParams.videoGop));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string StartRtcCloudRecordingRequest::getNotifyAuthKey() const {
|
||||||
|
return notifyAuthKey_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void StartRtcCloudRecordingRequest::setNotifyAuthKey(const std::string ¬ifyAuthKey) {
|
||||||
|
notifyAuthKey_ = notifyAuthKey;
|
||||||
|
setParameter(std::string("NotifyAuthKey"), notifyAuthKey);
|
||||||
|
}
|
||||||
|
|
||||||
std::string StartRtcCloudRecordingRequest::getAppId() const {
|
std::string StartRtcCloudRecordingRequest::getAppId() const {
|
||||||
return appId_;
|
return appId_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user