Streaming Policies - Create

Media Services hesabında Akış İlkesi oluşturma

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/streamingPolicies/{streamingPolicyName}?api-version=2022-08-01

URI Parametreleri

Name İçinde Gerekli Tür Description
accountName
path True

string

Media Services hesap adı.

resourceGroupName
path True

string

Azure aboneliğindeki kaynak grubunun adı.

streamingPolicyName
path True

string

Akış İlkesi adı.

subscriptionId
path True

string

Microsoft Azure aboneliğinin benzersiz tanımlayıcısı.

api-version
query True

string

İstemci isteğiyle kullanılacak API'nin sürümü.

İstek Gövdesi

Name Tür Description
properties.commonEncryptionCbcs

CommonEncryptionCbcs

CommonEncryptionCbcs Yapılandırması

properties.commonEncryptionCenc

CommonEncryptionCenc

CommonEncryptionCenc Yapılandırması

properties.defaultContentKeyPolicyName

string

Geçerli Akış İlkesi tarafından kullanılan varsayılan ContentKey

properties.envelopeEncryption

EnvelopeEncryption

EnvelopeEncryption Yapılandırması

properties.noEncryption

NoEncryption

NoEncryption Yapılandırmaları

Yanıtlar

Name Tür Description
201 Created

StreamingPolicy

Oluşturulan

Other Status Codes

ErrorResponse

Ayrıntılı hata bilgileri.

Örnekler

Creates a Streaming Policy with clear streaming
Creates a Streaming Policy with ClearKey encryption in commonEncryptionCbcs.
Creates a Streaming Policy with ClearKey encryption in commonEncryptionCenc.
Creates a Streaming Policy with commonEncryptionCbcs only
Creates a Streaming Policy with commonEncryptionCenc only
Creates a Streaming Policy with envelopeEncryption only
Creates a Streaming Policy with secure streaming

Creates a Streaming Policy with clear streaming

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies/clearStreamingPolicy?api-version=2022-08-01

{
  "properties": {
    "noEncryption": {
      "enabledProtocols": {
        "download": true,
        "dash": true,
        "hls": true,
        "smoothStreaming": true
      }
    }
  }
}

Sample Response

{
  "name": "clearStreamingPolicy",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/clearStreamingPolicy",
  "type": "Microsoft.Media/mediaservices/streamingPolicies",
  "properties": {
    "created": "2018-08-08T18:29:31.1535417Z",
    "noEncryption": {
      "enabledProtocols": {
        "download": true,
        "dash": true,
        "hls": true,
        "smoothStreaming": true
      }
    }
  }
}

Creates a Streaming Policy with ClearKey encryption in commonEncryptionCbcs.

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly?api-version=2022-08-01

{
  "properties": {
    "defaultContentKeyPolicyName": "PolicyWithMultipleOptions",
    "commonEncryptionCbcs": {
      "enabledProtocols": {
        "download": false,
        "dash": false,
        "hls": true,
        "smoothStreaming": false
      },
      "contentKeys": {
        "defaultKey": {
          "label": "cbcsDefaultKey"
        }
      },
      "clearKeyEncryptionConfiguration": {
        "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/"
      }
    }
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly",
  "type": "Microsoft.Media/mediaservices/streamingPolicies",
  "properties": {
    "created": "2018-08-08T18:29:31.6197199Z",
    "defaultContentKeyPolicyName": "PolicyWithMultipleOptions",
    "commonEncryptionCbcs": {
      "enabledProtocols": {
        "download": false,
        "dash": false,
        "hls": true,
        "smoothStreaming": false
      },
      "clearTracks": [],
      "contentKeys": {
        "defaultKey": {
          "label": "cbcsDefaultKey"
        },
        "keyToTrackMappings": []
      },
      "clearKeyEncryptionConfiguration": {
        "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/"
      }
    }
  }
}

Creates a Streaming Policy with ClearKey encryption in commonEncryptionCenc.

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly?api-version=2022-08-01

{
  "properties": {
    "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction",
    "commonEncryptionCenc": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": false,
        "smoothStreaming": true
      },
      "clearTracks": [
        {
          "trackSelections": [
            {
              "property": "FourCC",
              "operation": "Equal",
              "value": "hev1"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "cencDefaultKey"
        }
      },
      "clearKeyEncryptionConfiguration": {
        "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/"
      }
    }
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly",
  "type": "Microsoft.Media/mediaservices/streamingPolicies",
  "properties": {
    "created": "2018-08-08T18:29:31.4678543Z",
    "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction",
    "commonEncryptionCenc": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": false,
        "smoothStreaming": true
      },
      "clearTracks": [
        {
          "trackSelections": [
            {
              "property": "FourCC",
              "operation": "Equal",
              "value": "hev1"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "cencDefaultKey"
        },
        "keyToTrackMappings": []
      },
      "clearKeyEncryptionConfiguration": {
        "customKeysAcquisitionUrlTemplate": "https://contoso.com/{AlternativeMediaId}/clearkey/"
      }
    }
  }
}

Creates a Streaming Policy with commonEncryptionCbcs only

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly?api-version=2022-08-01

{
  "properties": {
    "defaultContentKeyPolicyName": "PolicyWithMultipleOptions",
    "commonEncryptionCbcs": {
      "enabledProtocols": {
        "download": false,
        "dash": false,
        "hls": true,
        "smoothStreaming": false
      },
      "contentKeys": {
        "defaultKey": {
          "label": "cbcsDefaultKey"
        }
      },
      "drm": {
        "fairPlay": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
          "allowPersistentLicense": true
        }
      }
    }
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly",
  "type": "Microsoft.Media/mediaservices/streamingPolicies",
  "properties": {
    "created": "2018-08-08T18:29:31.6197199Z",
    "defaultContentKeyPolicyName": "PolicyWithMultipleOptions",
    "commonEncryptionCbcs": {
      "enabledProtocols": {
        "download": false,
        "dash": false,
        "hls": true,
        "smoothStreaming": false
      },
      "clearTracks": [],
      "contentKeys": {
        "defaultKey": {
          "label": "cbcsDefaultKey"
        },
        "keyToTrackMappings": []
      },
      "drm": {
        "fairPlay": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
          "allowPersistentLicense": true
        }
      }
    }
  }
}

Creates a Streaming Policy with commonEncryptionCenc only

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly?api-version=2022-08-01

{
  "properties": {
    "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction",
    "commonEncryptionCenc": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": false,
        "smoothStreaming": true
      },
      "clearTracks": [
        {
          "trackSelections": [
            {
              "property": "FourCC",
              "operation": "Equal",
              "value": "hev1"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "cencDefaultKey"
        }
      },
      "drm": {
        "playReady": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
          "playReadyCustomAttributes": "PlayReady CustomAttributes"
        },
        "widevine": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId"
        }
      }
    }
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly",
  "type": "Microsoft.Media/mediaservices/streamingPolicies",
  "properties": {
    "created": "2018-08-08T18:29:31.4678543Z",
    "defaultContentKeyPolicyName": "PolicyWithPlayReadyOptionAndOpenRestriction",
    "commonEncryptionCenc": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": false,
        "smoothStreaming": true
      },
      "clearTracks": [
        {
          "trackSelections": [
            {
              "property": "FourCC",
              "operation": "Equal",
              "value": "hev1"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "cencDefaultKey"
        },
        "keyToTrackMappings": []
      },
      "drm": {
        "playReady": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
          "playReadyCustomAttributes": "PlayReady CustomAttributes"
        },
        "widevine": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}"
        }
      }
    }
  }
}

Creates a Streaming Policy with envelopeEncryption only

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly?api-version=2022-08-01

{
  "properties": {
    "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction",
    "envelopeEncryption": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": true,
        "smoothStreaming": true
      },
      "contentKeys": {
        "defaultKey": {
          "label": "aesDefaultKey"
        }
      },
      "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}"
    }
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly",
  "type": "Microsoft.Media/mediaservices/streamingPolicies",
  "properties": {
    "created": "2018-08-08T18:29:31.3055712Z",
    "defaultContentKeyPolicyName": "PolicyWithClearKeyOptionAndTokenRestriction",
    "envelopeEncryption": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": true,
        "smoothStreaming": true
      },
      "clearTracks": [],
      "contentKeys": {
        "defaultKey": {
          "label": "aesDefaultKey"
        },
        "keyToTrackMappings": []
      },
      "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}"
    }
  }
}

Creates a Streaming Policy with secure streaming

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy?api-version=2022-08-01

{
  "properties": {
    "defaultContentKeyPolicyName": "PolicyWithMultipleOptions",
    "envelopeEncryption": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": true,
        "smoothStreaming": true
      },
      "contentKeys": {
        "defaultKey": {
          "label": "aesDefaultKey"
        }
      },
      "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}"
    },
    "commonEncryptionCenc": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": false,
        "smoothStreaming": true
      },
      "clearTracks": [
        {
          "trackSelections": [
            {
              "property": "FourCC",
              "operation": "Equal",
              "value": "hev1"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "cencDefaultKey"
        }
      },
      "drm": {
        "playReady": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
          "playReadyCustomAttributes": "PlayReady CustomAttributes"
        },
        "widevine": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId"
        }
      }
    },
    "commonEncryptionCbcs": {
      "enabledProtocols": {
        "download": false,
        "dash": false,
        "hls": true,
        "smoothStreaming": false
      },
      "contentKeys": {
        "defaultKey": {
          "label": "cbcsDefaultKey"
        }
      },
      "drm": {
        "fairPlay": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
          "allowPersistentLicense": true
        }
      }
    }
  }
}

Sample Response

{
  "name": "UserCreatedSecureStreamingPolicy",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/streamingPolicies/UserCreatedSecureStreamingPolicy",
  "type": "Microsoft.Media/mediaservices/streamingPolicies",
  "properties": {
    "created": "2018-08-08T18:29:31.7715696Z",
    "defaultContentKeyPolicyName": "PolicyWithMultipleOptions",
    "envelopeEncryption": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": true,
        "smoothStreaming": true
      },
      "clearTracks": [],
      "contentKeys": {
        "defaultKey": {
          "label": "aesDefaultKey"
        },
        "keyToTrackMappings": []
      },
      "customKeyAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}"
    },
    "commonEncryptionCenc": {
      "enabledProtocols": {
        "download": false,
        "dash": true,
        "hls": false,
        "smoothStreaming": true
      },
      "clearTracks": [
        {
          "trackSelections": [
            {
              "property": "FourCC",
              "operation": "Equal",
              "value": "hev1"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "cencDefaultKey"
        },
        "keyToTrackMappings": []
      },
      "drm": {
        "playReady": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
          "playReadyCustomAttributes": "PlayReady CustomAttributes"
        },
        "widevine": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId"
        }
      }
    },
    "commonEncryptionCbcs": {
      "enabledProtocols": {
        "download": false,
        "dash": false,
        "hls": true,
        "smoothStreaming": false
      },
      "clearTracks": [],
      "contentKeys": {
        "defaultKey": {
          "label": "cbcsDefaultKey"
        },
        "keyToTrackMappings": []
      },
      "drm": {
        "fairPlay": {
          "customLicenseAcquisitionUrlTemplate": "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
          "allowPersistentLicense": true
        }
      }
    }
  }
}

Tanımlar

Name Description
CbcsDrmConfiguration

Akış İlkesi'nde CommonEncryptionCbcs şemasının DRM yapılandırmalarını belirtme sınıfı

CencDrmConfiguration

Akış İlkesi'nde CommonEncryptionCenc şemasının DRM yapılandırmalarını belirtme sınıfı

ClearKeyEncryptionConfiguration

Akış İlkesi'nde yaygın şifreleme düzenlerinin ClearKey yapılandırmasını belirtme sınıfı

CommonEncryptionCbcs

CommonEncryptionCbcs şifreleme şeması sınıfı

CommonEncryptionCenc

Zarf şifreleme şeması sınıfı

createdByType

Kaynağı oluşturan kimliğin türü.

DefaultKey

Her şifreleme düzeni için varsayılan içerik anahtarının özelliklerini belirtme sınıfı

EnabledProtocols

Hangi protokollerin etkinleştirileceğini belirten sınıf

EnvelopeEncryption

EnvelopeEncryption şifreleme düzeni sınıfı

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

ErrorDetail

Hata ayrıntısı.

ErrorResponse

Hata yanıtı

NoEncryption

NoEncryption şeması sınıfı

StreamingPolicy

Akış İlkesi kaynağı

StreamingPolicyContentKey

İçerik anahtarının özelliklerini belirtmek için sınıf

StreamingPolicyContentKeys

Akış İlkesi'ndeki tüm içerik anahtarlarının özelliklerini belirtmek için sınıf

StreamingPolicyFairPlayConfiguration

Akış İlkesi'nde FairPlay yapılandırmalarını belirtmek için sınıf

StreamingPolicyPlayReadyConfiguration

Akış İlkesi'nde PlayReady yapılandırmalarını belirtmek için sınıf

StreamingPolicyWidevineConfiguration

Akış İlkesi'nde Widevine yapılandırmalarını belirtmek için sınıf

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

TrackPropertyCompareOperation

Özellik koşulu işlemini izleme

TrackPropertyCondition

Bir track özellik koşulu belirtmek için sınıf

TrackPropertyType

Özellik türünü izleme

TrackSelection

Bir parça seçmek için sınıf

CbcsDrmConfiguration

Akış İlkesi'nde CommonEncryptionCbcs şemasının DRM yapılandırmalarını belirtme sınıfı

Name Tür Description
fairPlay

StreamingPolicyFairPlayConfiguration

FairPlay yapılandırmaları

playReady

StreamingPolicyPlayReadyConfiguration

PlayReady yapılandırmaları

widevine

StreamingPolicyWidevineConfiguration

Widevine yapılandırmaları

CencDrmConfiguration

Akış İlkesi'nde CommonEncryptionCenc şemasının DRM yapılandırmalarını belirtme sınıfı

Name Tür Description
playReady

StreamingPolicyPlayReadyConfiguration

PlayReady yapılandırmaları

widevine

StreamingPolicyWidevineConfiguration

Widevine yapılandırmaları

ClearKeyEncryptionConfiguration

Akış İlkesi'nde yaygın şifreleme düzenlerinin ClearKey yapılandırmasını belirtme sınıfı

Name Tür Description
customKeysAcquisitionUrlTemplate

string

Son kullanıcı oyuncularına içerik anahtarları teslim eden özel hizmetin URL'si için şablon. Lisans verme için Azure Media Services kullanılırken gerekli değildir. Şablon, hizmetin çalışma zamanında isteğe özgü değerle güncelleştireceği değiştirilebilir belirteçleri destekler. Şu anda desteklenen belirteç değeri, StreamingLocatorId.AlternativeMediaId değeriyle değiştirilen {AlternativeMediaId} değeridir.

CommonEncryptionCbcs

CommonEncryptionCbcs şifreleme şeması sınıfı

Name Tür Description
clearKeyEncryptionConfiguration

ClearKeyEncryptionConfiguration

CommonEncryptionCbcs şifreleme düzeninde ClearKey'i destekleyen isteğe bağlı yapılandırma.

clearTracks

TrackSelection[]

Hangi parçaların şifrelenmemesi gerektiğini temsil etme

contentKeys

StreamingPolicyContentKeys

Her şifreleme düzeni için varsayılan içerik anahtarını ve belirli parçalar için ayrı içerik anahtarlarını temsil etme

drm

CbcsDrmConfiguration

Geçerli şifreleme düzeni için DRM yapılandırması

enabledProtocols

EnabledProtocols

Desteklenen protokolleri temsil etme

CommonEncryptionCenc

Zarf şifreleme şeması sınıfı

Name Tür Description
clearKeyEncryptionConfiguration

ClearKeyEncryptionConfiguration

CommonEncryptionCenc şifreleme düzeninde ClearKey'i destekleyen isteğe bağlı yapılandırma.

clearTracks

TrackSelection[]

Hangi parçaların şifrelenmemesi gerektiğini temsil etme

contentKeys

StreamingPolicyContentKeys

Her şifreleme düzeni için varsayılan içerik anahtarını ve belirli parçalar için ayrı içerik anahtarlarını temsil etme

drm

CencDrmConfiguration

CommonEncryptionCenc şifreleme şeması için DRM'lerin yapılandırılması

enabledProtocols

EnabledProtocols

Desteklenen protokolleri temsil etme

createdByType

Kaynağı oluşturan kimliğin türü.

Name Tür Description
Application

string

Key

string

ManagedIdentity

string

User

string

DefaultKey

Her şifreleme düzeni için varsayılan içerik anahtarının özelliklerini belirtme sınıfı

Name Tür Description
label

string

Akış Bulucu oluştururken İçerik Anahtarı belirtmek için etiket kullanılabilir

policyName

string

Varsayılan Anahtar tarafından kullanılan ilke

EnabledProtocols

Hangi protokollerin etkinleştirileceğini belirten sınıf

Name Tür Description
dash

boolean

DASH protokollerini etkinleştirme veya etkinleştirmeme

download

boolean

İndirme protokollerini etkinleştirme veya etkinleştirmeme

hls

boolean

HLS protokollerini etkinleştirme veya etkinleştirmeme

smoothStreaming

boolean

SmoothStreaming protokollerini etkinleştirme veya etkinleştirmeme

EnvelopeEncryption

EnvelopeEncryption şifreleme düzeni sınıfı

Name Tür Description
clearTracks

TrackSelection[]

Hangi parçaların şifrelenmemesi gerektiğini temsil etme

contentKeys

StreamingPolicyContentKeys

Her şifreleme düzeni için varsayılan içerik anahtarını ve belirli parçalar için ayrı içerik anahtarlarını temsil etme

customKeyAcquisitionUrlTemplate

string

Son kullanıcı oyuncularına anahtar teslim eden özel hizmetin URL'si için şablon. Anahtarlar için Azure Media Services kullanılırken gerekli değildir. Şablon, hizmetin çalışma zamanında isteğe özgü değerle güncelleştireceği değiştirilebilir belirteçleri destekler. Şu anda desteklenen belirteç değerleri, StreamingLocatorId.AlternativeMediaId değeriyle değiştirilen {AlternativeMediaId} ve istenen anahtarın tanımlayıcı değeriyle değiştirilen {ContentKeyId}dir.

enabledProtocols

EnabledProtocols

Desteklenen protokolleri temsil etme

ErrorAdditionalInfo

Kaynak yönetimi hatası ek bilgileri.

Name Tür Description
info

object

Ek bilgiler.

type

string

Ek bilgi türü.

ErrorDetail

Hata ayrıntısı.

Name Tür Description
additionalInfo

ErrorAdditionalInfo[]

Hata ek bilgileri.

code

string

Hata kodu.

details

ErrorDetail[]

Hata ayrıntıları.

message

string

Hata iletisi.

target

string

Hata hedefi.

ErrorResponse

Hata yanıtı

Name Tür Description
error

ErrorDetail

Hata nesnesi.

NoEncryption

NoEncryption şeması sınıfı

Name Tür Description
enabledProtocols

EnabledProtocols

Desteklenen protokolleri temsil etme

StreamingPolicy

Akış İlkesi kaynağı

Name Tür Description
id

string

Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Kaynağın adı

properties.commonEncryptionCbcs

CommonEncryptionCbcs

CommonEncryptionCbcs Yapılandırması

properties.commonEncryptionCenc

CommonEncryptionCenc

CommonEncryptionCenc Yapılandırması

properties.created

string

Akış İlkesi oluşturma zamanı

properties.defaultContentKeyPolicyName

string

Geçerli Akış İlkesi tarafından kullanılan varsayılan ContentKey

properties.envelopeEncryption

EnvelopeEncryption

EnvelopeEncryption Yapılandırması

properties.noEncryption

NoEncryption

NoEncryption Yapılandırmaları

systemData

systemData

Bu kaynakla ilgili sistem meta verileri.

type

string

Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts"

StreamingPolicyContentKey

İçerik anahtarının özelliklerini belirtmek için sınıf

Name Tür Description
label

string

Akış Bulucu oluştururken İçerik Anahtarı belirtmek için etiket kullanılabilir

policyName

string

İçerik Anahtarı tarafından kullanılan ilke

tracks

TrackSelection[]

Bu içerik anahtarını kullanan izler

StreamingPolicyContentKeys

Akış İlkesi'ndeki tüm içerik anahtarlarının özelliklerini belirtmek için sınıf

Name Tür Description
defaultKey

DefaultKey

Şifreleme düzeni için varsayılan içerik anahtarı

keyToTrackMappings

StreamingPolicyContentKey[]

parçaları temsil etmek için ayrı içerik anahtarı gerekir

StreamingPolicyFairPlayConfiguration

Akış İlkesi'nde FairPlay yapılandırmalarını belirtmek için sınıf

Name Tür Description
allowPersistentLicense

boolean

Tüm lisansların kalıcı olması veya olmaması

customLicenseAcquisitionUrlTemplate

string

Son kullanıcı oyuncularına lisans teslim eden özel hizmetin URL'si için şablon. Lisans verme için Azure Media Services kullanılırken gerekli değildir. Şablon, hizmetin çalışma zamanında isteğe özgü değerle güncelleştireceği değiştirilebilir belirteçleri destekler. Şu anda desteklenen belirteç değerleri, StreamingLocatorId.AlternativeMediaId değeriyle değiştirilen {AlternativeMediaId} ve istenen anahtarın tanımlayıcı değeriyle değiştirilen {ContentKeyId} değerleridir.

StreamingPolicyPlayReadyConfiguration

Akış İlkesi'nde PlayReady yapılandırmalarını belirtmek için sınıf

Name Tür Description
customLicenseAcquisitionUrlTemplate

string

Son kullanıcı oyuncularına lisans teslim eden özel hizmetin URL'si için şablon. Lisans verme için Azure Media Services kullanılırken gerekli değildir. Şablon, hizmetin çalışma zamanında isteğe özgü değerle güncelleştireceği değiştirilebilir belirteçleri destekler. Şu anda desteklenen belirteç değerleri, StreamingLocatorId.AlternativeMediaId değeriyle değiştirilen {AlternativeMediaId} ve istenen anahtarın tanımlayıcı değeriyle değiştirilen {ContentKeyId}dir.

playReadyCustomAttributes

string

PlayReady için özel öznitelikler

StreamingPolicyWidevineConfiguration

Akış İlkesi'nde Widevine yapılandırmalarını belirtmek için sınıf

Name Tür Description
customLicenseAcquisitionUrlTemplate

string

Son kullanıcı oyuncularına lisans teslim eden özel hizmetin URL'si için şablon. Lisans verme için Azure Media Services kullanılırken gerekli değildir. Şablon, hizmetin çalışma zamanında isteğe özgü değerle güncelleştireceği değiştirilebilir belirteçleri destekler. Şu anda desteklenen belirteç değerleri, StreamingLocatorId.AlternativeMediaId değeriyle değiştirilen {AlternativeMediaId} ve istenen anahtarın tanımlayıcı değeriyle değiştirilen {ContentKeyId}dir.

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

Name Tür Description
createdAt

string

Kaynak oluşturma (UTC) zaman damgası.

createdBy

string

Kaynağı oluşturan kimlik.

createdByType

createdByType

Kaynağı oluşturan kimliğin türü.

lastModifiedAt

string

Kaynağın son değişikliğinin zaman damgası (UTC)

lastModifiedBy

string

Kaynağı en son değiştiren kimlik.

lastModifiedByType

createdByType

Kaynağı en son değiştiren kimliğin türü.

TrackPropertyCompareOperation

Özellik koşulu işlemini izleme

Name Tür Description
Equal

string

Eşittir işlemi

Unknown

string

Bilinmeyen izleme özelliği karşılaştırma işlemi

TrackPropertyCondition

Bir track özellik koşulu belirtmek için sınıf

Name Tür Description
operation

TrackPropertyCompareOperation

Özellik koşulu işlemini izleme

property

TrackPropertyType

Özellik türünü izleme

value

string

Özellik değerini izleme

TrackPropertyType

Özellik türünü izleme

Name Tür Description
FourCC

string

FourCC'yi İzle

Unknown

string

Bilinmeyen izleme özelliği

TrackSelection

Bir parça seçmek için sınıf

Name Tür Description
trackSelections

TrackPropertyCondition[]

TrackSelections, izlemeleri belirtebilen bir izleme özelliği koşul listesidir