你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

Microsoft.Media mediaServices/streamingPolicies 2018-07-01

Bicep 资源定义

可以使用目标操作部署 mediaServices/streamingPolicies 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志。

资源格式

若要创建 Microsoft.Media/mediaServices/streamingPolicies 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Media/mediaServices/streamingPolicies@2018-07-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    commonEncryptionCbcs: {
      clearTracks: [
        {
          trackSelections: [
            {
              operation: 'string'
              property: 'string'
              value: 'string'
            }
          ]
        }
      ]
      contentKeys: {
        defaultKey: {
          label: 'string'
          policyName: 'string'
        }
        keyToTrackMappings: [
          {
            label: 'string'
            policyName: 'string'
            tracks: [
              {
                trackSelections: [
                  {
                    operation: 'string'
                    property: 'string'
                    value: 'string'
                  }
                ]
              }
            ]
          }
        ]
      }
      drm: {
        fairPlay: {
          allowPersistentLicense: bool
          customLicenseAcquisitionUrlTemplate: 'string'
        }
        playReady: {
          customLicenseAcquisitionUrlTemplate: 'string'
          playReadyCustomAttributes: 'string'
        }
        widevine: {
          customLicenseAcquisitionUrlTemplate: 'string'
        }
      }
      enabledProtocols: {
        dash: bool
        download: bool
        hls: bool
        smoothStreaming: bool
      }
    }
    commonEncryptionCenc: {
      clearTracks: [
        {
          trackSelections: [
            {
              operation: 'string'
              property: 'string'
              value: 'string'
            }
          ]
        }
      ]
      contentKeys: {
        defaultKey: {
          label: 'string'
          policyName: 'string'
        }
        keyToTrackMappings: [
          {
            label: 'string'
            policyName: 'string'
            tracks: [
              {
                trackSelections: [
                  {
                    operation: 'string'
                    property: 'string'
                    value: 'string'
                  }
                ]
              }
            ]
          }
        ]
      }
      drm: {
        playReady: {
          customLicenseAcquisitionUrlTemplate: 'string'
          playReadyCustomAttributes: 'string'
        }
        widevine: {
          customLicenseAcquisitionUrlTemplate: 'string'
        }
      }
      enabledProtocols: {
        dash: bool
        download: bool
        hls: bool
        smoothStreaming: bool
      }
    }
    defaultContentKeyPolicyName: 'string'
    envelopeEncryption: {
      clearTracks: [
        {
          trackSelections: [
            {
              operation: 'string'
              property: 'string'
              value: 'string'
            }
          ]
        }
      ]
      contentKeys: {
        defaultKey: {
          label: 'string'
          policyName: 'string'
        }
        keyToTrackMappings: [
          {
            label: 'string'
            policyName: 'string'
            tracks: [
              {
                trackSelections: [
                  {
                    operation: 'string'
                    property: 'string'
                    value: 'string'
                  }
                ]
              }
            ]
          }
        ]
      }
      customKeyAcquisitionUrlTemplate: 'string'
      enabledProtocols: {
        dash: bool
        download: bool
        hls: bool
        smoothStreaming: bool
      }
    }
    noEncryption: {
      enabledProtocols: {
        dash: bool
        download: bool
        hls: bool
        smoothStreaming: bool
      }
    }
  }
}

属性值

CbcsDrmConfiguration

名字 描述 价值
fairPlay FairPlay 配置 StreamingPolicyFairPlayConfiguration
playReady PlayReady 配置 StreamingPolicyPlayReadyConfiguration
widevine Widevine 配置 StreamingPolicyWidevineConfiguration

CencDrmConfiguration

名字 描述 价值
playReady PlayReady 配置 StreamingPolicyPlayReadyConfiguration
widevine Widevine 配置 StreamingPolicyWidevineConfiguration

CommonEncryptionCbcs

名字 描述 价值
clearTracks 表示不应加密的曲目 TrackSelection[]
contentKeys 表示每个加密方案的默认内容密钥,以及特定曲目的不同内容密钥 StreamingPolicyContentKeys
drm 为当前加密方案配置 DRM CbcsDrmConfiguration
enabledProtocols 表示支持的协议 EnabledProtocols

CommonEncryptionCenc

名字 描述 价值
clearTracks 表示不应加密的曲目 TrackSelection[]
contentKeys 表示每个加密方案的默认内容密钥,以及特定曲目的不同内容密钥 StreamingPolicyContentKeys
drm CommonEncryptionCenc 加密方案的 DRM 配置 CencDrmConfiguration
enabledProtocols 表示支持的协议 EnabledProtocols

DefaultKey

名字 描述 价值
标签 创建流式处理定位符时,标签可用于指定内容密钥 字符串
政策名称 默认密钥使用的策略 字符串

EnabledProtocols

名字 描述 价值
破折号 启用 DASH 协议 bool (必需)
下载 启用下载协议 bool (必需)
hls 启用 HLS 协议 bool (必需)
smoothStreaming 启用平滑流式处理协议 bool (必需)

EnvelopeEncryption

名字 描述 价值
clearTracks 表示不应加密的曲目 TrackSelection[]
contentKeys 表示每个加密方案的默认内容密钥,以及特定曲目的不同内容密钥 StreamingPolicyContentKeys
customKeyAcquisitionUrlTemplate 将密钥传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发密钥时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串
enabledProtocols 表示支持的协议 EnabledProtocols

Microsoft.Media/mediaServices/streamingPolicies

名字 描述 价值
名字 资源名称 string (必需)
父母 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:mediaServices
性能 用于指定流式处理策略属性的类 StreamingPolicyProperties

NoEncryption

名字 描述 价值
enabledProtocols 表示支持的协议 EnabledProtocols

StreamingPolicyContentKey

名字 描述 价值
标签 创建流式处理定位符时,标签可用于指定内容密钥 字符串
政策名称 内容密钥使用的策略 字符串
轨道 跟踪使用此内容密钥的跟踪 TrackSelection[]

StreamingPolicyContentKeys

名字 描述 价值
defaultKey 加密方案的默认内容密钥 DefaultKey
keyToTrackMappings 表示曲目需要单独的内容密钥 StreamingPolicyContentKey[]

StreamingPolicyFairPlayConfiguration

名字 描述 价值
allowPersistentLicense 要永久或不具有的所有许可证 bool (必需)
customLicenseAcquisitionUrlTemplate 将许可证传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发许可证时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串

StreamingPolicyPlayReadyConfiguration

名字 描述 价值
customLicenseAcquisitionUrlTemplate 将许可证传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发许可证时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串
playReadyCustomAttributes PlayReady 的自定义属性 字符串

StreamingPolicyProperties

名字 描述 价值
commonEncryptionCbcs CommonEncryptionCbcs 的配置 CommonEncryptionCbcs
commonEncryptionCenc CommonEncryptionCenc 的配置 CommonEncryptionCenc
defaultContentKeyPolicyName 当前流式处理策略使用的默认 ContentKey 字符串
envelopeEncryption EnvelopeEncryption 的配置 EnvelopeEncryption
noEncryption NoEncryption 的配置 NoEncryption

StreamingPolicyWidevineConfiguration

名字 描述 价值
customLicenseAcquisitionUrlTemplate 将许可证传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发许可证时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串

TrackPropertyCondition

名字 描述 价值
操作 跟踪属性条件操作 “Equal”
“未知”(必需)
财产 Track 属性类型 “FourCC”
“未知”(必需)
价值 跟踪属性值 字符串

TrackSelection

名字 描述 价值
trackSelections TrackSelections 是一个跟踪属性条件列表,可以指定 track(s) TrackPropertyCondition[]

ARM 模板资源定义

可以使用目标操作部署 mediaServices/streamingPolicies 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志。

资源格式

若要创建 Microsoft.Media/mediaServices/streamingPolicies 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Media/mediaServices/streamingPolicies",
  "apiVersion": "2018-07-01",
  "name": "string",
  "properties": {
    "commonEncryptionCbcs": {
      "clearTracks": [
        {
          "trackSelections": [
            {
              "operation": "string",
              "property": "string",
              "value": "string"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "string",
          "policyName": "string"
        },
        "keyToTrackMappings": [
          {
            "label": "string",
            "policyName": "string",
            "tracks": [
              {
                "trackSelections": [
                  {
                    "operation": "string",
                    "property": "string",
                    "value": "string"
                  }
                ]
              }
            ]
          }
        ]
      },
      "drm": {
        "fairPlay": {
          "allowPersistentLicense": "bool",
          "customLicenseAcquisitionUrlTemplate": "string"
        },
        "playReady": {
          "customLicenseAcquisitionUrlTemplate": "string",
          "playReadyCustomAttributes": "string"
        },
        "widevine": {
          "customLicenseAcquisitionUrlTemplate": "string"
        }
      },
      "enabledProtocols": {
        "dash": "bool",
        "download": "bool",
        "hls": "bool",
        "smoothStreaming": "bool"
      }
    },
    "commonEncryptionCenc": {
      "clearTracks": [
        {
          "trackSelections": [
            {
              "operation": "string",
              "property": "string",
              "value": "string"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "string",
          "policyName": "string"
        },
        "keyToTrackMappings": [
          {
            "label": "string",
            "policyName": "string",
            "tracks": [
              {
                "trackSelections": [
                  {
                    "operation": "string",
                    "property": "string",
                    "value": "string"
                  }
                ]
              }
            ]
          }
        ]
      },
      "drm": {
        "playReady": {
          "customLicenseAcquisitionUrlTemplate": "string",
          "playReadyCustomAttributes": "string"
        },
        "widevine": {
          "customLicenseAcquisitionUrlTemplate": "string"
        }
      },
      "enabledProtocols": {
        "dash": "bool",
        "download": "bool",
        "hls": "bool",
        "smoothStreaming": "bool"
      }
    },
    "defaultContentKeyPolicyName": "string",
    "envelopeEncryption": {
      "clearTracks": [
        {
          "trackSelections": [
            {
              "operation": "string",
              "property": "string",
              "value": "string"
            }
          ]
        }
      ],
      "contentKeys": {
        "defaultKey": {
          "label": "string",
          "policyName": "string"
        },
        "keyToTrackMappings": [
          {
            "label": "string",
            "policyName": "string",
            "tracks": [
              {
                "trackSelections": [
                  {
                    "operation": "string",
                    "property": "string",
                    "value": "string"
                  }
                ]
              }
            ]
          }
        ]
      },
      "customKeyAcquisitionUrlTemplate": "string",
      "enabledProtocols": {
        "dash": "bool",
        "download": "bool",
        "hls": "bool",
        "smoothStreaming": "bool"
      }
    },
    "noEncryption": {
      "enabledProtocols": {
        "dash": "bool",
        "download": "bool",
        "hls": "bool",
        "smoothStreaming": "bool"
      }
    }
  }
}

属性值

CbcsDrmConfiguration

名字 描述 价值
fairPlay FairPlay 配置 StreamingPolicyFairPlayConfiguration
playReady PlayReady 配置 StreamingPolicyPlayReadyConfiguration
widevine Widevine 配置 StreamingPolicyWidevineConfiguration

CencDrmConfiguration

名字 描述 价值
playReady PlayReady 配置 StreamingPolicyPlayReadyConfiguration
widevine Widevine 配置 StreamingPolicyWidevineConfiguration

CommonEncryptionCbcs

名字 描述 价值
clearTracks 表示不应加密的曲目 TrackSelection[]
contentKeys 表示每个加密方案的默认内容密钥,以及特定曲目的不同内容密钥 StreamingPolicyContentKeys
drm 为当前加密方案配置 DRM CbcsDrmConfiguration
enabledProtocols 表示支持的协议 EnabledProtocols

CommonEncryptionCenc

名字 描述 价值
clearTracks 表示不应加密的曲目 TrackSelection[]
contentKeys 表示每个加密方案的默认内容密钥,以及特定曲目的不同内容密钥 StreamingPolicyContentKeys
drm CommonEncryptionCenc 加密方案的 DRM 配置 CencDrmConfiguration
enabledProtocols 表示支持的协议 EnabledProtocols

DefaultKey

名字 描述 价值
标签 创建流式处理定位符时,标签可用于指定内容密钥 字符串
政策名称 默认密钥使用的策略 字符串

EnabledProtocols

名字 描述 价值
破折号 启用 DASH 协议 bool (必需)
下载 启用下载协议 bool (必需)
hls 启用 HLS 协议 bool (必需)
smoothStreaming 启用平滑流式处理协议 bool (必需)

EnvelopeEncryption

名字 描述 价值
clearTracks 表示不应加密的曲目 TrackSelection[]
contentKeys 表示每个加密方案的默认内容密钥,以及特定曲目的不同内容密钥 StreamingPolicyContentKeys
customKeyAcquisitionUrlTemplate 将密钥传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发密钥时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串
enabledProtocols 表示支持的协议 EnabledProtocols

Microsoft.Media/mediaServices/streamingPolicies

名字 描述 价值
apiVersion API 版本 '2018-07-01'
名字 资源名称 string (必需)
性能 用于指定流式处理策略属性的类 StreamingPolicyProperties
类型 资源类型 “Microsoft.Media/mediaServices/streamingPolicies”

NoEncryption

名字 描述 价值
enabledProtocols 表示支持的协议 EnabledProtocols

StreamingPolicyContentKey

名字 描述 价值
标签 创建流式处理定位符时,标签可用于指定内容密钥 字符串
政策名称 内容密钥使用的策略 字符串
轨道 跟踪使用此内容密钥的跟踪 TrackSelection[]

StreamingPolicyContentKeys

名字 描述 价值
defaultKey 加密方案的默认内容密钥 DefaultKey
keyToTrackMappings 表示曲目需要单独的内容密钥 StreamingPolicyContentKey[]

StreamingPolicyFairPlayConfiguration

名字 描述 价值
allowPersistentLicense 要永久或不具有的所有许可证 bool (必需)
customLicenseAcquisitionUrlTemplate 将许可证传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发许可证时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串

StreamingPolicyPlayReadyConfiguration

名字 描述 价值
customLicenseAcquisitionUrlTemplate 将许可证传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发许可证时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串
playReadyCustomAttributes PlayReady 的自定义属性 字符串

StreamingPolicyProperties

名字 描述 价值
commonEncryptionCbcs CommonEncryptionCbcs 的配置 CommonEncryptionCbcs
commonEncryptionCenc CommonEncryptionCenc 的配置 CommonEncryptionCenc
defaultContentKeyPolicyName 当前流式处理策略使用的默认 ContentKey 字符串
envelopeEncryption EnvelopeEncryption 的配置 EnvelopeEncryption
noEncryption NoEncryption 的配置 NoEncryption

StreamingPolicyWidevineConfiguration

名字 描述 价值
customLicenseAcquisitionUrlTemplate 将许可证传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发许可证时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串

TrackPropertyCondition

名字 描述 价值
操作 跟踪属性条件操作 “Equal”
“未知”(必需)
财产 Track 属性类型 “FourCC”
“未知”(必需)
价值 跟踪属性值 字符串

TrackSelection

名字 描述 价值
trackSelections TrackSelections 是一个跟踪属性条件列表,可以指定 track(s) TrackPropertyCondition[]

用法示例

Terraform (AzAPI 提供程序)资源定义

可以使用目标操作部署 mediaServices/streamingPolicies 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志。

资源格式

若要创建 Microsoft.Media/mediaServices/streamingPolicies 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Media/mediaServices/streamingPolicies@2018-07-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      commonEncryptionCbcs = {
        clearTracks = [
          {
            trackSelections = [
              {
                operation = "string"
                property = "string"
                value = "string"
              }
            ]
          }
        ]
        contentKeys = {
          defaultKey = {
            label = "string"
            policyName = "string"
          }
          keyToTrackMappings = [
            {
              label = "string"
              policyName = "string"
              tracks = [
                {
                  trackSelections = [
                    {
                      operation = "string"
                      property = "string"
                      value = "string"
                    }
                  ]
                }
              ]
            }
          ]
        }
        drm = {
          fairPlay = {
            allowPersistentLicense = bool
            customLicenseAcquisitionUrlTemplate = "string"
          }
          playReady = {
            customLicenseAcquisitionUrlTemplate = "string"
            playReadyCustomAttributes = "string"
          }
          widevine = {
            customLicenseAcquisitionUrlTemplate = "string"
          }
        }
        enabledProtocols = {
          dash = bool
          download = bool
          hls = bool
          smoothStreaming = bool
        }
      }
      commonEncryptionCenc = {
        clearTracks = [
          {
            trackSelections = [
              {
                operation = "string"
                property = "string"
                value = "string"
              }
            ]
          }
        ]
        contentKeys = {
          defaultKey = {
            label = "string"
            policyName = "string"
          }
          keyToTrackMappings = [
            {
              label = "string"
              policyName = "string"
              tracks = [
                {
                  trackSelections = [
                    {
                      operation = "string"
                      property = "string"
                      value = "string"
                    }
                  ]
                }
              ]
            }
          ]
        }
        drm = {
          playReady = {
            customLicenseAcquisitionUrlTemplate = "string"
            playReadyCustomAttributes = "string"
          }
          widevine = {
            customLicenseAcquisitionUrlTemplate = "string"
          }
        }
        enabledProtocols = {
          dash = bool
          download = bool
          hls = bool
          smoothStreaming = bool
        }
      }
      defaultContentKeyPolicyName = "string"
      envelopeEncryption = {
        clearTracks = [
          {
            trackSelections = [
              {
                operation = "string"
                property = "string"
                value = "string"
              }
            ]
          }
        ]
        contentKeys = {
          defaultKey = {
            label = "string"
            policyName = "string"
          }
          keyToTrackMappings = [
            {
              label = "string"
              policyName = "string"
              tracks = [
                {
                  trackSelections = [
                    {
                      operation = "string"
                      property = "string"
                      value = "string"
                    }
                  ]
                }
              ]
            }
          ]
        }
        customKeyAcquisitionUrlTemplate = "string"
        enabledProtocols = {
          dash = bool
          download = bool
          hls = bool
          smoothStreaming = bool
        }
      }
      noEncryption = {
        enabledProtocols = {
          dash = bool
          download = bool
          hls = bool
          smoothStreaming = bool
        }
      }
    }
  }
}

属性值

CbcsDrmConfiguration

名字 描述 价值
fairPlay FairPlay 配置 StreamingPolicyFairPlayConfiguration
playReady PlayReady 配置 StreamingPolicyPlayReadyConfiguration
widevine Widevine 配置 StreamingPolicyWidevineConfiguration

CencDrmConfiguration

名字 描述 价值
playReady PlayReady 配置 StreamingPolicyPlayReadyConfiguration
widevine Widevine 配置 StreamingPolicyWidevineConfiguration

CommonEncryptionCbcs

名字 描述 价值
clearTracks 表示不应加密的曲目 TrackSelection[]
contentKeys 表示每个加密方案的默认内容密钥,以及特定曲目的不同内容密钥 StreamingPolicyContentKeys
drm 为当前加密方案配置 DRM CbcsDrmConfiguration
enabledProtocols 表示支持的协议 EnabledProtocols

CommonEncryptionCenc

名字 描述 价值
clearTracks 表示不应加密的曲目 TrackSelection[]
contentKeys 表示每个加密方案的默认内容密钥,以及特定曲目的不同内容密钥 StreamingPolicyContentKeys
drm CommonEncryptionCenc 加密方案的 DRM 配置 CencDrmConfiguration
enabledProtocols 表示支持的协议 EnabledProtocols

DefaultKey

名字 描述 价值
标签 创建流式处理定位符时,标签可用于指定内容密钥 字符串
政策名称 默认密钥使用的策略 字符串

EnabledProtocols

名字 描述 价值
破折号 启用 DASH 协议 bool (必需)
下载 启用下载协议 bool (必需)
hls 启用 HLS 协议 bool (必需)
smoothStreaming 启用平滑流式处理协议 bool (必需)

EnvelopeEncryption

名字 描述 价值
clearTracks 表示不应加密的曲目 TrackSelection[]
contentKeys 表示每个加密方案的默认内容密钥,以及特定曲目的不同内容密钥 StreamingPolicyContentKeys
customKeyAcquisitionUrlTemplate 将密钥传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发密钥时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串
enabledProtocols 表示支持的协议 EnabledProtocols

Microsoft.Media/mediaServices/streamingPolicies

名字 描述 价值
名字 资源名称 string (必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:mediaServices
性能 用于指定流式处理策略属性的类 StreamingPolicyProperties
类型 资源类型 “Microsoft.Media/mediaServices/streamingPolicies@2018-07-01”

NoEncryption

名字 描述 价值
enabledProtocols 表示支持的协议 EnabledProtocols

StreamingPolicyContentKey

名字 描述 价值
标签 创建流式处理定位符时,标签可用于指定内容密钥 字符串
政策名称 内容密钥使用的策略 字符串
轨道 跟踪使用此内容密钥的跟踪 TrackSelection[]

StreamingPolicyContentKeys

名字 描述 价值
defaultKey 加密方案的默认内容密钥 DefaultKey
keyToTrackMappings 表示曲目需要单独的内容密钥 StreamingPolicyContentKey[]

StreamingPolicyFairPlayConfiguration

名字 描述 价值
allowPersistentLicense 要永久或不具有的所有许可证 bool (必需)
customLicenseAcquisitionUrlTemplate 将许可证传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发许可证时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串

StreamingPolicyPlayReadyConfiguration

名字 描述 价值
customLicenseAcquisitionUrlTemplate 将许可证传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发许可证时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串
playReadyCustomAttributes PlayReady 的自定义属性 字符串

StreamingPolicyProperties

名字 描述 价值
commonEncryptionCbcs CommonEncryptionCbcs 的配置 CommonEncryptionCbcs
commonEncryptionCenc CommonEncryptionCenc 的配置 CommonEncryptionCenc
defaultContentKeyPolicyName 当前流式处理策略使用的默认 ContentKey 字符串
envelopeEncryption EnvelopeEncryption 的配置 EnvelopeEncryption
noEncryption NoEncryption 的配置 NoEncryption

StreamingPolicyWidevineConfiguration

名字 描述 价值
customLicenseAcquisitionUrlTemplate 将许可证传送给最终用户玩家的自定义服务的 URL 的模板。 使用 Azure 媒体服务颁发许可证时不需要。 该模板支持服务在运行时将使用特定于请求的值更新的可替换令牌。 当前支持的令牌值为 {AlternativeMediaId},该值替换为 StreamingLocatorId.AlternativeMediaId 的值和 {ContentKeyId},该值替换为所请求的密钥的标识符值。 字符串

TrackPropertyCondition

名字 描述 价值
操作 跟踪属性条件操作 “Equal”
“未知”(必需)
财产 Track 属性类型 “FourCC”
“未知”(必需)
价值 跟踪属性值 字符串

TrackSelection

名字 描述 价值
trackSelections TrackSelections 是一个跟踪属性条件列表,可以指定 track(s) TrackPropertyCondition[]