| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- /*
- * 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/live/model/UpdateLiveMPUTaskRequest.h>
- using AlibabaCloud::Live::Model::UpdateLiveMPUTaskRequest;
- UpdateLiveMPUTaskRequest::UpdateLiveMPUTaskRequest()
- : RpcServiceRequest("live", "2016-11-01", "UpdateLiveMPUTask") {
- setMethod(HttpRequest::Method::Post);
- }
- UpdateLiveMPUTaskRequest::~UpdateLiveMPUTaskRequest() {}
- UpdateLiveMPUTaskRequest::SingleSubParams UpdateLiveMPUTaskRequest::getSingleSubParams() const {
- return singleSubParams_;
- }
- void UpdateLiveMPUTaskRequest::setSingleSubParams(const UpdateLiveMPUTaskRequest::SingleSubParams &singleSubParams) {
- singleSubParams_ = singleSubParams;
- setParameter(std::string("SingleSubParams") + ".StreamType", singleSubParams.streamType);
- setParameter(std::string("SingleSubParams") + ".SourceType", singleSubParams.sourceType);
- setParameter(std::string("SingleSubParams") + ".UserId", singleSubParams.userId);
- }
- UpdateLiveMPUTaskRequest::SeiParams UpdateLiveMPUTaskRequest::getSeiParams() const {
- return seiParams_;
- }
- void UpdateLiveMPUTaskRequest::setSeiParams(const UpdateLiveMPUTaskRequest::SeiParams &seiParams) {
- seiParams_ = seiParams;
- setParameter(std::string("SeiParams") + ".LayoutVolume.FollowIdr", seiParams.layoutVolume.followIdr);
- setParameter(std::string("SeiParams") + ".LayoutVolume.Interval", seiParams.layoutVolume.interval);
- setParameter(std::string("SeiParams") + ".PassThrough.FollowIdr", seiParams.passThrough.followIdr);
- setParameter(std::string("SeiParams") + ".PassThrough.PayloadContentKey", seiParams.passThrough.payloadContentKey);
- setParameter(std::string("SeiParams") + ".PassThrough.PayloadContent", seiParams.passThrough.payloadContent);
- setParameter(std::string("SeiParams") + ".PassThrough.Interval", seiParams.passThrough.interval);
- }
- UpdateLiveMPUTaskRequest::TranscodeParams UpdateLiveMPUTaskRequest::getTranscodeParams() const {
- return transcodeParams_;
- }
- void UpdateLiveMPUTaskRequest::setTranscodeParams(const UpdateLiveMPUTaskRequest::TranscodeParams &transcodeParams) {
- transcodeParams_ = transcodeParams;
- for(int dep1 = 0; dep1 != transcodeParams.layout.userPanes.size(); dep1++) {
- setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".BackgroundImageUrl", transcodeParams.layout.userPanes[dep1].backgroundImageUrl);
- setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".ZOrder", transcodeParams.layout.userPanes[dep1].zOrder);
- setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".Width", transcodeParams.layout.userPanes[dep1].width);
- setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".X", transcodeParams.layout.userPanes[dep1].x);
- setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".Y", transcodeParams.layout.userPanes[dep1].y);
- setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".RenderMode", transcodeParams.layout.userPanes[dep1].renderMode);
- setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".UserInfo.SourceType", transcodeParams.layout.userPanes[dep1].userInfo.sourceType);
- setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".UserInfo.UserId", transcodeParams.layout.userPanes[dep1].userInfo.userId);
- setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".Height", transcodeParams.layout.userPanes[dep1].height);
- }
- setParameter(std::string("TranscodeParams") + ".Layout.LayoutMode", transcodeParams.layout.layoutMode);
- 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.RenderMode", transcodeParams.background.renderMode);
- setParameter(std::string("TranscodeParams") + ".Background.URL", transcodeParams.background.uRL);
- 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);
- setParameter(std::string("TranscodeParams") + ".UserInfos." + std::to_string(dep1 + 1) + ".UserId", transcodeParams.userInfos[dep1].userId);
- }
- setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioOnly", transcodeParams.encodeParams.audioOnly);
- setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoWidth", transcodeParams.encodeParams.videoWidth);
- setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioBitrate", transcodeParams.encodeParams.audioBitrate);
- setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoFramerate", transcodeParams.encodeParams.videoFramerate);
- setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoHeight", transcodeParams.encodeParams.videoHeight);
- setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioSampleRate", transcodeParams.encodeParams.audioSampleRate);
- setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoBitrate", transcodeParams.encodeParams.videoBitrate);
- setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioChannels", transcodeParams.encodeParams.audioChannels);
- setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoGop", transcodeParams.encodeParams.videoGop);
- }
- std::string UpdateLiveMPUTaskRequest::getAppId() const {
- return appId_;
- }
- void UpdateLiveMPUTaskRequest::setAppId(const std::string &appId) {
- appId_ = appId;
- setParameter(std::string("AppId"), appId);
- }
- std::string UpdateLiveMPUTaskRequest::getMixMode() const {
- return mixMode_;
- }
- void UpdateLiveMPUTaskRequest::setMixMode(const std::string &mixMode) {
- mixMode_ = mixMode;
- setParameter(std::string("MixMode"), mixMode);
- }
- std::string UpdateLiveMPUTaskRequest::getChannelId() const {
- return channelId_;
- }
- void UpdateLiveMPUTaskRequest::setChannelId(const std::string &channelId) {
- channelId_ = channelId;
- setParameter(std::string("ChannelId"), channelId);
- }
- std::string UpdateLiveMPUTaskRequest::getTaskId() const {
- return taskId_;
- }
- void UpdateLiveMPUTaskRequest::setTaskId(const std::string &taskId) {
- taskId_ = taskId;
- setParameter(std::string("TaskId"), taskId);
- }
- std::string UpdateLiveMPUTaskRequest::getStreamURL() const {
- return streamURL_;
- }
- void UpdateLiveMPUTaskRequest::setStreamURL(const std::string &streamURL) {
- streamURL_ = streamURL;
- setParameter(std::string("StreamURL"), streamURL);
- }
|