Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import org.joda.time.Period;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* Specifies the clip time as an absolute time position in the media file. The
* absolute time can point to a different position depending on whether the
* media file starts from a timestamp of zero or not.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type")
@JsonTypeName("#Microsoft.Media.AbsoluteClipTime")
public class AbsoluteClipTime extends ClipTime {
/**
* The time position on the timeline of the input media. It is usually
* speicified as an ISO8601 period. e.g PT30S for 30 seconds.
*/
@JsonProperty(value = "time", required = true)
private Period time;

/**
* Get the time position on the timeline of the input media. It is usually speicified as an ISO8601 period. e.g PT30S for 30 seconds.
*
* @return the time value
*/
public Period time() {
return this.time;
}

/**
* Set the time position on the timeline of the input media. It is usually speicified as an ISO8601 period. e.g PT30S for 30 seconds.
*
* @param time the time value to set
* @return the AbsoluteClipTime object itself.
*/
public AbsoluteClipTime withTime(Period time) {
this.time = time;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.mediaservices.v2018_07_01;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;

/**
* Base class for specifying a clip time. Use sub classes of this class to
* specify the time position in the media.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type")
@JsonTypeName("ClipTime")
@JsonSubTypes({
@JsonSubTypes.Type(name = "#Microsoft.Media.AbsoluteClipTime", value = AbsoluteClipTime.class)
})
public class ClipTime {
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ public class JobInputClip extends JobInput {
@JsonProperty(value = "files")
private List<String> files;

/**
* Defines a point on the timeline of the input media at which processing
* will start. Defaults to the beginning of the input media.
*/
@JsonProperty(value = "start")
private ClipTime start;

/**
* Defines a point on the timeline of the input media at which processing
* will end. Defaults to the end of the input media.
*/
@JsonProperty(value = "end")
private ClipTime end;

/**
* A label that is assigned to a JobInputClip, that is used to satisfy a
* reference used in the Transform. For example, a Transform can be
Expand Down Expand Up @@ -62,6 +76,46 @@ public JobInputClip withFiles(List<String> files) {
return this;
}

/**
* Get defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media.
*
* @return the start value
*/
public ClipTime start() {
return this.start;
}

/**
* Set defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media.
*
* @param start the start value to set
* @return the JobInputClip object itself.
*/
public JobInputClip withStart(ClipTime start) {
this.start = start;
return this;
}

/**
* Get defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media.
*
* @return the end value
*/
public ClipTime end() {
return this.end;
}

/**
* Set defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media.
*
* @param end the end value to set
* @return the JobInputClip object itself.
*/
public JobInputClip withEnd(ClipTime end) {
this.end = end;
return this;
}

/**
* Get a label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,22 @@
@JsonTypeName("#Microsoft.Media.VideoAnalyzerPreset")
public class VideoAnalyzerPreset extends AudioAnalyzerPreset {
/**
* The type of insights to be extracted. If not set then based on the
* content the type will selected. If the content is audio only then only
* audio insights are extracted and if it is video only. Possible values
* Defines the type of insights that you want the service to generate. The
* allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and
* 'AllInsights'. The default is AllInsights. If you set this to
* AllInsights and the input is audio only, then only audio insights are
* generated. Similarly if the input is video only, then only video
* insights are generated. It is recommended that you not use
* AudioInsightsOnly if you expect some of your inputs to be video only; or
* use VideoInsightsOnly if you expect some of your inputs to be audio
* only. Your Jobs in such conditions would error out. Possible values
* include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'.
*/
@JsonProperty(value = "insightsToExtract")
private InsightsType insightsToExtract;

/**
* Get the type of insights to be extracted. If not set then based on the content the type will selected. If the content is audio only then only audio insights are extracted and if it is video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'.
* Get defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'.
*
* @return the insightsToExtract value
*/
Expand All @@ -38,7 +44,7 @@ public InsightsType insightsToExtract() {
}

/**
* Set the type of insights to be extracted. If not set then based on the content the type will selected. If the content is audio only then only audio insights are extracted and if it is video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'.
* Set defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'.
*
* @param insightsToExtract the insightsToExtract value to set
* @return the VideoAnalyzerPreset object itself.
Expand Down