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
Expand Up @@ -33,7 +33,7 @@ public AbsoluteClipTime()
/// Initializes a new instance of the AbsoluteClipTime class.
/// </summary>
/// <param name="time">The time position on the timeline of the input
/// media. It is usually speicified as an ISO8601 period. e.g PT30S for
/// media. It is usually specified as an ISO8601 period. e.g PT30S for
/// 30 seconds.</param>
public AbsoluteClipTime(System.TimeSpan time)
{
Expand All @@ -48,7 +48,7 @@ public AbsoluteClipTime(System.TimeSpan time)

/// <summary>
/// Gets or sets the time position on the timeline of the input media.
/// It is usually speicified as an ISO8601 period. e.g PT30S for 30
/// It is usually specified as an ISO8601 period. e.g PT30S for 30
/// seconds.
/// </summary>
[JsonProperty(PropertyName = "time")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
namespace Microsoft.Azure.Management.Media.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
Expand All @@ -34,25 +36,23 @@ public AudioAnalyzerPreset()
/// </summary>
/// <param name="audioLanguage">The language for the audio payload in
/// the input using the BCP-47 format of 'language tag-region' (e.g:
/// 'en-US'). The list of supported languages are English ('en-US' and
/// 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian
/// ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese
/// ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and 'ar-SY'), Russian
/// ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the
/// language of your content, it is recommended that you specify it. If
/// the language isn't specified or set to null, automatic language
/// detection will choose the first language detected and process with
/// the selected language for the duration of the file. This language
/// detection feature currently supports English, Chinese, French,
/// German, Italian, Japanese, Spanish, Russian, and Portuguese. It
/// does not currently support dynamically switching between languages
/// after the first language is detected. The automatic detection works
/// best with audio recordings with clearly discernable speech. If
/// automatic detection fails to find the language, transcription would
/// fallback to 'en-US'."</param>
public AudioAnalyzerPreset(string audioLanguage = default(string))
/// 'en-US'). If you know the language of your content, it is
/// recommended that you specify it. If the language isn't specified or
/// set to null, automatic language detection will choose the first
/// language detected and process with the selected language for the
/// duration of the file. It does not currently support dynamically
/// switching between languages after the first language is detected.
/// The automatic detection works best with audio recordings with
/// clearly discernable speech. If automatic detection fails to find
/// the language, transcription would fallback to 'en-US'." The list of
/// supported languages is available here:
/// https://go.microsoft.com/fwlink/?linkid=2109463</param>
/// <param name="experimentalOptions">Dictionary containing key value
/// pairs for parameters not exposed in the preset itself</param>
public AudioAnalyzerPreset(string audioLanguage = default(string), IDictionary<string, string> experimentalOptions = default(IDictionary<string, string>))
{
AudioLanguage = audioLanguage;
ExperimentalOptions = experimentalOptions;
CustomInit();
}

Expand All @@ -63,26 +63,28 @@ public AudioAnalyzerPreset()

/// <summary>
/// Gets or sets the language for the audio payload in the input using
/// the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The
/// list of supported languages are English ('en-US' and 'en-GB'),
/// Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'),
/// Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German
/// ('de-DE'), Arabic ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi
/// ('hi-IN'), and Korean ('ko-KR'). If you know the language of your
/// content, it is recommended that you specify it. If the language
/// isn't specified or set to null, automatic language detection will
/// choose the first language detected and process with the selected
/// language for the duration of the file. This language detection
/// feature currently supports English, Chinese, French, German,
/// Italian, Japanese, Spanish, Russian, and Portuguese. It does not
/// currently support dynamically switching between languages after the
/// first language is detected. The automatic detection works best with
/// audio recordings with clearly discernable speech. If automatic
/// detection fails to find the language, transcription would fallback
/// to 'en-US'."
/// the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you
/// know the language of your content, it is recommended that you
/// specify it. If the language isn't specified or set to null,
/// automatic language detection will choose the first language
/// detected and process with the selected language for the duration of
/// the file. It does not currently support dynamically switching
/// between languages after the first language is detected. The
/// automatic detection works best with audio recordings with clearly
/// discernable speech. If automatic detection fails to find the
/// language, transcription would fallback to 'en-US'." The list of
/// supported languages is available here:
/// https://go.microsoft.com/fwlink/?linkid=2109463
/// </summary>
[JsonProperty(PropertyName = "audioLanguage")]
public string AudioLanguage { get; set; }

/// <summary>
/// Gets or sets dictionary containing key value pairs for parameters
/// not exposed in the preset itself
/// </summary>
[JsonProperty(PropertyName = "experimentalOptions")]
public IDictionary<string, string> ExperimentalOptions { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ public BuiltInStandardEncoderPreset()
/// encoding videos. Possible values include: 'H264SingleBitrateSD',
/// 'H264SingleBitrate720p', 'H264SingleBitrate1080p',
/// 'AdaptiveStreaming', 'AACGoodQualityAudio',
/// 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p',
/// 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'</param>
/// 'ContentAwareEncodingExperimental', 'ContentAwareEncoding',
/// 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p',
/// 'H264MultipleBitrateSD'</param>
public BuiltInStandardEncoderPreset(EncoderNamedPreset presetName)
{
PresetName = presetName;
Expand All @@ -55,8 +56,9 @@ public BuiltInStandardEncoderPreset(EncoderNamedPreset presetName)
/// Possible values include: 'H264SingleBitrateSD',
/// 'H264SingleBitrate720p', 'H264SingleBitrate1080p',
/// 'AdaptiveStreaming', 'AACGoodQualityAudio',
/// 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p',
/// 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'
/// 'ContentAwareEncodingExperimental', 'ContentAwareEncoding',
/// 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p',
/// 'H264MultipleBitrateSD'
/// </summary>
[JsonProperty(PropertyName = "presetName")]
public EncoderNamedPreset PresetName { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,20 @@ public ContentKeyPolicyFairPlayConfiguration()
/// certificate in PKCS 12 (pfx) format (including private
/// key).</param>
/// <param name="rentalAndLeaseKeyType">The rental and lease key type.
/// Possible values include: 'Unknown', 'Undefined',
/// Possible values include: 'Unknown', 'Undefined', 'DualExpiry',
/// 'PersistentUnlimited', 'PersistentLimited'</param>
/// <param name="rentalDuration">The rental duration. Must be greater
/// than or equal to 0.</param>
public ContentKeyPolicyFairPlayConfiguration(byte[] ask, string fairPlayPfxPassword, string fairPlayPfx, ContentKeyPolicyFairPlayRentalAndLeaseKeyType rentalAndLeaseKeyType, long rentalDuration)
/// <param name="offlineRentalConfiguration">Offline rental
/// policy</param>
public ContentKeyPolicyFairPlayConfiguration(byte[] ask, string fairPlayPfxPassword, string fairPlayPfx, ContentKeyPolicyFairPlayRentalAndLeaseKeyType rentalAndLeaseKeyType, long rentalDuration, ContentKeyPolicyFairPlayOfflineRentalConfiguration offlineRentalConfiguration = default(ContentKeyPolicyFairPlayOfflineRentalConfiguration))
{
Ask = ask;
FairPlayPfxPassword = fairPlayPfxPassword;
FairPlayPfx = fairPlayPfx;
RentalAndLeaseKeyType = rentalAndLeaseKeyType;
RentalDuration = rentalDuration;
OfflineRentalConfiguration = offlineRentalConfiguration;
CustomInit();
}

Expand Down Expand Up @@ -83,8 +86,8 @@ public ContentKeyPolicyFairPlayConfiguration(byte[] ask, string fairPlayPfxPassw

/// <summary>
/// Gets or sets the rental and lease key type. Possible values
/// include: 'Unknown', 'Undefined', 'PersistentUnlimited',
/// 'PersistentLimited'
/// include: 'Unknown', 'Undefined', 'DualExpiry',
/// 'PersistentUnlimited', 'PersistentLimited'
/// </summary>
[JsonProperty(PropertyName = "rentalAndLeaseKeyType")]
public ContentKeyPolicyFairPlayRentalAndLeaseKeyType RentalAndLeaseKeyType { get; set; }
Expand All @@ -96,6 +99,12 @@ public ContentKeyPolicyFairPlayConfiguration(byte[] ask, string fairPlayPfxPassw
[JsonProperty(PropertyName = "rentalDuration")]
public long RentalDuration { get; set; }

/// <summary>
/// Gets or sets offline rental policy
/// </summary>
[JsonProperty(PropertyName = "offlineRentalConfiguration")]
public ContentKeyPolicyFairPlayOfflineRentalConfiguration OfflineRentalConfiguration { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand All @@ -116,6 +125,10 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "FairPlayPfx");
}
if (OfflineRentalConfiguration != null)
{
OfflineRentalConfiguration.Validate();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// <auto-generated>
// 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.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.Media.Models
{
using Newtonsoft.Json;
using System.Linq;

public partial class ContentKeyPolicyFairPlayOfflineRentalConfiguration
{
/// <summary>
/// Initializes a new instance of the
/// ContentKeyPolicyFairPlayOfflineRentalConfiguration class.
/// </summary>
public ContentKeyPolicyFairPlayOfflineRentalConfiguration()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// ContentKeyPolicyFairPlayOfflineRentalConfiguration class.
/// </summary>
/// <param name="playbackDurationSeconds">Playback duration</param>
/// <param name="storageDurationSeconds">Storage duration</param>
public ContentKeyPolicyFairPlayOfflineRentalConfiguration(long playbackDurationSeconds, long storageDurationSeconds)
{
PlaybackDurationSeconds = playbackDurationSeconds;
StorageDurationSeconds = storageDurationSeconds;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets playback duration
/// </summary>
[JsonProperty(PropertyName = "playbackDurationSeconds")]
public long PlaybackDurationSeconds { get; set; }

/// <summary>
/// Gets or sets storage duration
/// </summary>
[JsonProperty(PropertyName = "storageDurationSeconds")]
public long StorageDurationSeconds { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
//Nothing to validate
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ private ContentKeyPolicyFairPlayRentalAndLeaseKeyType(string underlyingValue)
/// </summary>
public static readonly ContentKeyPolicyFairPlayRentalAndLeaseKeyType Undefined = "Undefined";

/// <summary>
/// Dual expiry for offline rental.
/// </summary>
public static readonly ContentKeyPolicyFairPlayRentalAndLeaseKeyType DualExpiry = "DualExpiry";

/// <summary>
/// Content key can be persisted with an unlimited duration
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,19 @@ private EncoderNamedPreset(string underlyingValue)
/// </summary>
public static readonly EncoderNamedPreset ContentAwareEncodingExperimental = "ContentAwareEncodingExperimental";

/// <summary>
/// Produces a set of GOP-aligned MP4s by using content-aware encoding.
/// Given any input content, the service performs an initial
/// lightweight analysis of the input content, and uses the results to
/// determine the optimal number of layers, appropriate bitrate and
/// resolution settings for delivery by adaptive streaming. This preset
/// is particularly effective for low and medium complexity videos,
/// where the output files will be at lower bitrates but at a quality
/// that still delivers a good experience to viewers. The output will
/// contain MP4 files with video and audio interleaved.
/// </summary>
public static readonly EncoderNamedPreset ContentAwareEncoding = "ContentAwareEncoding";

/// <summary>
/// Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps
/// to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
namespace Microsoft.Azure.Management.Media.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
Expand Down Expand Up @@ -45,9 +47,12 @@ public FaceDetectorPreset()
/// for details). However, faces that end up being too small in the
/// resized video may not be detected. Possible values include:
/// 'SourceResolution', 'StandardDefinition'</param>
public FaceDetectorPreset(AnalysisResolution? resolution = default(AnalysisResolution?))
/// <param name="experimentalOptions">Dictionary containing key value
/// pairs for parameters not exposed in the preset itself</param>
public FaceDetectorPreset(AnalysisResolution? resolution = default(AnalysisResolution?), IDictionary<string, string> experimentalOptions = default(IDictionary<string, string>))
{
Resolution = resolution;
ExperimentalOptions = experimentalOptions;
CustomInit();
}

Expand Down Expand Up @@ -75,5 +80,12 @@ public FaceDetectorPreset()
[JsonProperty(PropertyName = "resolution")]
public AnalysisResolution? Resolution { get; set; }

/// <summary>
/// Gets or sets dictionary containing key value pairs for parameters
/// not exposed in the preset itself
/// </summary>
[JsonProperty(PropertyName = "experimentalOptions")]
public IDictionary<string, string> ExperimentalOptions { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public FilterTrackPropertyCondition()
/// <param name="property">The track property type. Possible values
/// include: 'Unknown', 'Type', 'Name', 'Language', 'FourCC',
/// 'Bitrate'</param>
/// <param name="value">The track proprty value.</param>
/// <param name="value">The track property value.</param>
/// <param name="operation">The track property condition operation.
/// Possible values include: 'Equal', 'NotEqual'</param>
public FilterTrackPropertyCondition(FilterTrackPropertyType property, string value, FilterTrackPropertyCompareOperation operation)
Expand All @@ -59,7 +59,7 @@ public FilterTrackPropertyCondition(FilterTrackPropertyType property, string val
public FilterTrackPropertyType Property { get; set; }

/// <summary>
/// Gets or sets the track proprty value.
/// Gets or sets the track property value.
/// </summary>
[JsonProperty(PropertyName = "value")]
public string Value { get; set; }
Expand Down
Loading