All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.vod.v20180717.models.ComposeMediaRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1034
Show newest version
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.
 */
package com.tencentcloudapi.vod.v20180717.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class ComposeMediaRequest extends AbstractModel {

    /**
    * List of input media tracks, including video, audio, and image tracks. 
  • Input tracks are synced to the output media file.
  • Input tracks are synced to each other. Videos and images in higher tracks are superimposed over those in lower tracks. Audio tracks are mixed.
  • There can be up to 10 tracks for video, audio, and images each.
  • The total number of clips in all tracks cannot exceed 500.
  • */ @SerializedName("Tracks") @Expose private MediaTrack [] Tracks; /** * Information of output media file. */ @SerializedName("Output") @Expose private ComposeMediaOutput Output; /** * The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID. */ @SerializedName("SubAppId") @Expose private Long SubAppId; /** * Canvas used for composing video file. */ @SerializedName("Canvas") @Expose private Canvas Canvas; /** * Used to pass through user request information. `ComposeMediaComplete` callback will return the value of this parameter. It contains up to 1,000 characters. */ @SerializedName("SessionContext") @Expose private String SessionContext; /** * Used to identify duplicate requests. After you send a request, if any request with the same `SessionId` has already been sent in the last three days (72 hours), an error message will be returned. `SessionId` contains up to 50 characters. If this parameter is not carried or is an empty string, no deduplication will be performed. */ @SerializedName("SessionId") @Expose private String SessionId; /** * Get List of input media tracks, including video, audio, and image tracks.
  • Input tracks are synced to the output media file.
  • Input tracks are synced to each other. Videos and images in higher tracks are superimposed over those in lower tracks. Audio tracks are mixed.
  • There can be up to 10 tracks for video, audio, and images each.
  • The total number of clips in all tracks cannot exceed 500.
  • * @return Tracks List of input media tracks, including video, audio, and image tracks.
  • Input tracks are synced to the output media file.
  • Input tracks are synced to each other. Videos and images in higher tracks are superimposed over those in lower tracks. Audio tracks are mixed.
  • There can be up to 10 tracks for video, audio, and images each.
  • The total number of clips in all tracks cannot exceed 500.
  • */ public MediaTrack [] getTracks() { return this.Tracks; } /** * Set List of input media tracks, including video, audio, and image tracks.
  • Input tracks are synced to the output media file.
  • Input tracks are synced to each other. Videos and images in higher tracks are superimposed over those in lower tracks. Audio tracks are mixed.
  • There can be up to 10 tracks for video, audio, and images each.
  • The total number of clips in all tracks cannot exceed 500.
  • * @param Tracks List of input media tracks, including video, audio, and image tracks.
  • Input tracks are synced to the output media file.
  • Input tracks are synced to each other. Videos and images in higher tracks are superimposed over those in lower tracks. Audio tracks are mixed.
  • There can be up to 10 tracks for video, audio, and images each.
  • The total number of clips in all tracks cannot exceed 500.
  • */ public void setTracks(MediaTrack [] Tracks) { this.Tracks = Tracks; } /** * Get Information of output media file. * @return Output Information of output media file. */ public ComposeMediaOutput getOutput() { return this.Output; } /** * Set Information of output media file. * @param Output Information of output media file. */ public void setOutput(ComposeMediaOutput Output) { this.Output = Output; } /** * Get The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID. * @return SubAppId The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID. */ public Long getSubAppId() { return this.SubAppId; } /** * Set The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID. * @param SubAppId The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID. */ public void setSubAppId(Long SubAppId) { this.SubAppId = SubAppId; } /** * Get Canvas used for composing video file. * @return Canvas Canvas used for composing video file. */ public Canvas getCanvas() { return this.Canvas; } /** * Set Canvas used for composing video file. * @param Canvas Canvas used for composing video file. */ public void setCanvas(Canvas Canvas) { this.Canvas = Canvas; } /** * Get Used to pass through user request information. `ComposeMediaComplete` callback will return the value of this parameter. It contains up to 1,000 characters. * @return SessionContext Used to pass through user request information. `ComposeMediaComplete` callback will return the value of this parameter. It contains up to 1,000 characters. */ public String getSessionContext() { return this.SessionContext; } /** * Set Used to pass through user request information. `ComposeMediaComplete` callback will return the value of this parameter. It contains up to 1,000 characters. * @param SessionContext Used to pass through user request information. `ComposeMediaComplete` callback will return the value of this parameter. It contains up to 1,000 characters. */ public void setSessionContext(String SessionContext) { this.SessionContext = SessionContext; } /** * Get Used to identify duplicate requests. After you send a request, if any request with the same `SessionId` has already been sent in the last three days (72 hours), an error message will be returned. `SessionId` contains up to 50 characters. If this parameter is not carried or is an empty string, no deduplication will be performed. * @return SessionId Used to identify duplicate requests. After you send a request, if any request with the same `SessionId` has already been sent in the last three days (72 hours), an error message will be returned. `SessionId` contains up to 50 characters. If this parameter is not carried or is an empty string, no deduplication will be performed. */ public String getSessionId() { return this.SessionId; } /** * Set Used to identify duplicate requests. After you send a request, if any request with the same `SessionId` has already been sent in the last three days (72 hours), an error message will be returned. `SessionId` contains up to 50 characters. If this parameter is not carried or is an empty string, no deduplication will be performed. * @param SessionId Used to identify duplicate requests. After you send a request, if any request with the same `SessionId` has already been sent in the last three days (72 hours), an error message will be returned. `SessionId` contains up to 50 characters. If this parameter is not carried or is an empty string, no deduplication will be performed. */ public void setSessionId(String SessionId) { this.SessionId = SessionId; } public ComposeMediaRequest() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public ComposeMediaRequest(ComposeMediaRequest source) { if (source.Tracks != null) { this.Tracks = new MediaTrack[source.Tracks.length]; for (int i = 0; i < source.Tracks.length; i++) { this.Tracks[i] = new MediaTrack(source.Tracks[i]); } } if (source.Output != null) { this.Output = new ComposeMediaOutput(source.Output); } if (source.SubAppId != null) { this.SubAppId = new Long(source.SubAppId); } if (source.Canvas != null) { this.Canvas = new Canvas(source.Canvas); } if (source.SessionContext != null) { this.SessionContext = new String(source.SessionContext); } if (source.SessionId != null) { this.SessionId = new String(source.SessionId); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamArrayObj(map, prefix + "Tracks.", this.Tracks); this.setParamObj(map, prefix + "Output.", this.Output); this.setParamSimple(map, prefix + "SubAppId", this.SubAppId); this.setParamObj(map, prefix + "Canvas.", this.Canvas); this.setParamSimple(map, prefix + "SessionContext", this.SessionContext); this.setParamSimple(map, prefix + "SessionId", this.SessionId); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy