Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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
2 changes: 1 addition & 1 deletion lib/services/mediaServicesManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 0 additions & 3 deletions lib/services/mediaServicesManagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,3 @@ msRestAzure.interactiveLogin().then((creds) => {
### Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-node%2Flib%2Fservices%2FmediaServicesManagement%2FREADME.png)
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,20 @@ class AudioAnalyzerPreset extends models['Preset'] {
* Create a AudioAnalyzerPreset.
* @property {string} [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, 'en-US', 'en-GB', 'es-ES', 'es-MX',
* 'fr-FR', 'it-IT', 'ja-JP', 'pt-BR', 'zh-CN', 'de-DE', 'ar-EG', 'ru-RU',
* 'hi-IN'. If not specified, automatic language detection would be employed.
* This feature currently supports English, Chinese, French, German, Italian,
* Japanese, Spanish, Russian, and Portuguese. The automatic detection works
* best with audio recordings with clearly discernable speech. If automatic
* detection fails to find the language, transcription would fallback to
* English.
* 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'."
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AudioOverlay extends models['Overlay'] {
className: 'AudioOverlay',
modelProperties: {
inputLabel: {
required: false,
required: true,
serializedName: 'inputLabel',
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ class BuiltInStandardEncoderPreset extends models['Preset'] {
* @property {string} presetName The built-in preset to be used for encoding
* videos. Possible values include: 'H264SingleBitrateSD',
* 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming',
* 'AACGoodQualityAudio', 'H264MultipleBitrate1080p',
* 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'
* 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental',
* 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p',
* 'H264MultipleBitrateSD'
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,36 @@ class CbcsDrmConfiguration {
/**
* Create a CbcsDrmConfiguration.
* @property {object} [fairPlay] FairPlay configurations
* @property {string} [fairPlay.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [fairPlay.customLicenseAcquisitionUrlTemplate] Template
* for the URL of the custom service delivering licenses to end user players.
* Not required when using Azure Media Services for issuing licenses. The
* template supports replaceable tokens that the service will update at
* runtime with the value specific to the request. The currently supported
* token values are {AlternativeMediaId}, which is replaced with the value of
* StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is
* replaced with the value of identifier of the key being requested.
* @property {boolean} [fairPlay.allowPersistentLicense] All license to be
* persistent or not
* @property {object} [playReady] PlayReady configurations
* @property {string} [playReady.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [playReady.customLicenseAcquisitionUrlTemplate]
* Template for the URL of the custom service delivering licenses to end user
* players. Not required when using Azure Media Services for issuing
* licenses. The template supports replaceable tokens that the service will
* update at runtime with the value specific to the request. The currently
* supported token values are {AlternativeMediaId}, which is replaced with
* the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId},
* which is replaced with the value of identifier of the key being requested.
* @property {string} [playReady.playReadyCustomAttributes] Custom attributes
* for PlayReady
* @property {object} [widevine] Widevine configurations
* @property {string} [widevine.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [widevine.customLicenseAcquisitionUrlTemplate] Template
* for the URL of the custom service delivering licenses to end user players.
* Not required when using Azure Media Services for issuing licenses. The
* template supports replaceable tokens that the service will update at
* runtime with the value specific to the request. The currently supported
* token values are {AlternativeMediaId}, which is replaced with the value of
* StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is
* replaced with the value of identifier of the key being requested.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,25 @@ class CencDrmConfiguration {
/**
* Create a CencDrmConfiguration.
* @property {object} [playReady] PlayReady configurations
* @property {string} [playReady.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [playReady.customLicenseAcquisitionUrlTemplate]
* Template for the URL of the custom service delivering licenses to end user
* players. Not required when using Azure Media Services for issuing
* licenses. The template supports replaceable tokens that the service will
* update at runtime with the value specific to the request. The currently
* supported token values are {AlternativeMediaId}, which is replaced with
* the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId},
* which is replaced with the value of identifier of the key being requested.
* @property {string} [playReady.playReadyCustomAttributes] Custom attributes
* for PlayReady
* @property {object} [widevine] Widevine configurations
* @property {string} [widevine.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [widevine.customLicenseAcquisitionUrlTemplate] Template
* for the URL of the custom service delivering licenses to end user players.
* Not required when using Azure Media Services for issuing licenses. The
* template supports replaceable tokens that the service will update at
* runtime with the value specific to the request. The currently supported
* token values are {AlternativeMediaId}, which is replaced with the value of
* StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is
* replaced with the value of identifier of the key being requested.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,36 @@ class CommonEncryptionCbcs {
* @property {object} [drm] Configuration of DRMs for current encryption
* scheme
* @property {object} [drm.fairPlay] FairPlay configurations
* @property {string} [drm.fairPlay.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [drm.fairPlay.customLicenseAcquisitionUrlTemplate]
* Template for the URL of the custom service delivering licenses to end user
* players. Not required when using Azure Media Services for issuing
* licenses. The template supports replaceable tokens that the service will
* update at runtime with the value specific to the request. The currently
* supported token values are {AlternativeMediaId}, which is replaced with
* the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId},
* which is replaced with the value of identifier of the key being requested.
* @property {boolean} [drm.fairPlay.allowPersistentLicense] All license to
* be persistent or not
* @property {object} [drm.playReady] PlayReady configurations
* @property {string} [drm.playReady.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [drm.playReady.customLicenseAcquisitionUrlTemplate]
* Template for the URL of the custom service delivering licenses to end user
* players. Not required when using Azure Media Services for issuing
* licenses. The template supports replaceable tokens that the service will
* update at runtime with the value specific to the request. The currently
* supported token values are {AlternativeMediaId}, which is replaced with
* the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId},
* which is replaced with the value of identifier of the key being requested.
* @property {string} [drm.playReady.playReadyCustomAttributes] Custom
* attributes for PlayReady
* @property {object} [drm.widevine] Widevine configurations
* @property {string} [drm.widevine.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [drm.widevine.customLicenseAcquisitionUrlTemplate]
* Template for the URL of the custom service delivering licenses to end user
* players. Not required when using Azure Media Services for issuing
* licenses. The template supports replaceable tokens that the service will
* update at runtime with the value specific to the request. The currently
* supported token values are {AlternativeMediaId}, which is replaced with
* the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId},
* which is replaced with the value of identifier of the key being requested.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,25 @@ class CommonEncryptionCenc {
* @property {object} [drm] Configuration of DRMs for CommonEncryptionCenc
* encryption scheme
* @property {object} [drm.playReady] PlayReady configurations
* @property {string} [drm.playReady.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [drm.playReady.customLicenseAcquisitionUrlTemplate]
* Template for the URL of the custom service delivering licenses to end user
* players. Not required when using Azure Media Services for issuing
* licenses. The template supports replaceable tokens that the service will
* update at runtime with the value specific to the request. The currently
* supported token values are {AlternativeMediaId}, which is replaced with
* the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId},
* which is replaced with the value of identifier of the key being requested.
* @property {string} [drm.playReady.playReadyCustomAttributes] Custom
* attributes for PlayReady
* @property {object} [drm.widevine] Widevine configurations
* @property {string} [drm.widevine.customLicenseAcquisitionUrlTemplate] The
* template for a customer service to deliver keys to end users. Not needed
* when using Azure Media Services for issuing keys.
* @property {string} [drm.widevine.customLicenseAcquisitionUrlTemplate]
* Template for the URL of the custom service delivering licenses to end user
* players. Not required when using Azure Media Services for issuing
* licenses. The template supports replaceable tokens that the service will
* update at runtime with the value specific to the request. The currently
* supported token values are {AlternativeMediaId}, which is replaced with
* the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId},
* which is replaced with the value of identifier of the key being requested.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ class EnvelopeEncryption {
* Default Key
* @property {array} [contentKeys.keyToTrackMappings] Representing tracks
* needs separate content key
* @property {string} [customKeyAcquisitionUrlTemplate]
* KeyAcquisitionUrlTemplate is used to point to user specified service to
* delivery content keys
* @property {string} [customKeyAcquisitionUrlTemplate] Template for the URL
* of the custom service delivering keys to end user players. Not required
* when using Azure Media Services for issuing keys. The template supports
* replaceable tokens that the service will update at runtime with the value
* specific to the request. The currently supported token values are
* {AlternativeMediaId}, which is replaced with the value of
* StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is
* replaced with the value of identifier of the key being requested.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*
* 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.
*/

'use strict';

const models = require('./index');

/**
* Describes all the settings to be used when analyzing a video in order to
* detect all the faces present.
*
* @extends models['Preset']
*/
class FaceDetectorPreset extends models['Preset'] {
/**
* Create a FaceDetectorPreset.
* @property {string} [resolution] Specifies the maximum resolution at which
* your video is analyzed. The default behavior is "SourceResolution," which
* will keep the input video at its original resolution when analyzed. Using
* "StandardDefinition" will resize input videos to standard definition while
* preserving the appropriate aspect ratio. It will only resize if the video
* is of higher resolution. For example, a 1920x1080 input would be scaled to
* 640x360 before processing. Switching to "StandardDefinition" will reduce
* the time it takes to process high resolution video. It may also reduce the
* cost of using this component (see
* https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics
* for details). However, faces that end up being too small in the resized
* video may not be detected. Possible values include: 'SourceResolution',
* 'StandardDefinition'
*/
constructor() {
super();
}

/**
* Defines the metadata of FaceDetectorPreset
*
* @returns {object} metadata of FaceDetectorPreset
*
*/
mapper() {
return {
required: false,
serializedName: '#Microsoft.Media.FaceDetectorPreset',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: '@odata.type',
clientName: 'odatatype'
},
uberParent: 'Preset',
className: 'FaceDetectorPreset',
modelProperties: {
odatatype: {
required: true,
serializedName: '@odata\\.type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
resolution: {
required: false,
serializedName: 'resolution',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = FaceDetectorPreset;
4 changes: 2 additions & 2 deletions lib/services/mediaServicesManagement/lib/models/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class Format {
/**
* Create a Format.
* @property {string} [filenamePattern] The pattern of the file names for the
* @property {string} filenamePattern The pattern of the file names for the
* generated output files. The following macros are supported in the file
* name: {Basename} - The base name of the input video {Extension} - The
* appropriate extension for this format. {Label} - The label assigned to the
Expand Down Expand Up @@ -50,7 +50,7 @@ class Format {
className: 'Format',
modelProperties: {
filenamePattern: {
required: false,
required: true,
serializedName: 'filenamePattern',
type: {
name: 'String'
Expand Down
16 changes: 8 additions & 8 deletions lib/services/mediaServicesManagement/lib/models/h264Layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ const models = require('./index');
class H264Layer extends models['VideoLayer'] {
/**
* Create a H264Layer.
* @property {string} [profile] Which profile of the H.264 standard should be
* used when encoding this layer. Default is Auto. Possible values include:
* 'Auto', 'Baseline', 'Main', 'High', 'High422', 'High444'
* @property {string} [level] Which level of the H.264 standard should be
* used when encoding this layer. The value can be Auto, or a number that
* matches the H.264 profile. If not specified, the default is Auto, which
* lets the encoder choose the Level that is appropriate for this layer.
* @property {string} [profile] We currently support Baseline, Main, High,
* High422, High444. Default is Auto. Possible values include: 'Auto',
* 'Baseline', 'Main', 'High', 'High422', 'High444'
* @property {string} [level] We currently support Level up to 6.2. The value
* can be Auto, or a number that matches the H.264 profile. If not specified,
* the default is Auto, which lets the encoder choose the Level that is
* appropriate for this layer.
* @property {moment.duration} [bufferWindow] The VBV buffer window length.
* The value should be in ISO 8601 format. The value should be in the range
* [0.1-100] seconds. The default is 5 seconds (for example, PT5S).
Expand Down Expand Up @@ -91,7 +91,7 @@ class H264Layer extends models['VideoLayer'] {
}
},
bitrate: {
required: false,
required: true,
serializedName: 'bitrate',
type: {
name: 'Number'
Expand Down
4 changes: 2 additions & 2 deletions lib/services/mediaServicesManagement/lib/models/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const models = require('./index');
class Image extends models['Video'] {
/**
* Create a Image.
* @property {string} [start] The position in the input video from where to
* @property {string} start The position in the input video from where to
* start generating thumbnails. The value can be in absolute timestamp (ISO
* 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame),
* or a relative value (For example, 1%). Also supports a macro {Best}, which
Expand Down Expand Up @@ -90,7 +90,7 @@ class Image extends models['Video'] {
}
},
start: {
required: false,
required: true,
serializedName: 'start',
type: {
name: 'String'
Expand Down
Loading