Streaming Policies - Create

Membuat Kebijakan Streaming di akun Media Services

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

Parameter URI

Nama Dalam Diperlukan Jenis Deskripsi
accountName
path True

string

Nama akun Media Services.

resourceGroupName
path True

string

Nama grup sumber daya dalam langganan Azure.

streamingPolicyName
path True

string

Nama Kebijakan Streaming.

subscriptionId
path True

string

Pengidentifikasi unik untuk langganan Microsoft Azure.

api-version
query True

string

Versi API yang akan digunakan dengan permintaan klien.

Isi Permintaan

Nama Jenis Deskripsi
properties.commonEncryptionCbcs

CommonEncryptionCbcs

Konfigurasi CommonEncryptionCbcs

properties.commonEncryptionCenc

CommonEncryptionCenc

Konfigurasi CommonEncryptionCenc

properties.defaultContentKeyPolicyName

string

ContentKey Default yang digunakan oleh Kebijakan Streaming saat ini

properties.envelopeEncryption

EnvelopeEncryption

Konfigurasi EnvelopeEncryption

properties.noEncryption

NoEncryption

Konfigurasi NoEncryption

Respons

Nama Jenis Deskripsi
201 Created

StreamingPolicy

Dibuat

Other Status Codes

ErrorResponse

Informasi kesalahan terperinci.

Contoh

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
        }
      }
    }
  }
}

Definisi

Nama Deskripsi
CbcsDrmConfiguration

Kelas untuk menentukan konfigurasi DRM skema CommonEncryptionCbcs dalam Kebijakan Streaming

CencDrmConfiguration

Kelas untuk menentukan konfigurasi DRM dari skema CommonEncryptionCenc dalam Kebijakan Streaming

ClearKeyEncryptionConfiguration

Kelas untuk menentukan konfigurasi ClearKey dari skema enkripsi umum dalam Kebijakan Streaming

CommonEncryptionCbcs

Kelas untuk skema enkripsi CommonEncryptionCbcs

CommonEncryptionCenc

Kelas untuk skema enkripsi amplop

createdByType

Jenis identitas yang membuat sumber daya.

DefaultKey

Kelas untuk menentukan properti kunci konten default untuk setiap skema enkripsi

EnabledProtocols

Kelas untuk menentukan protokol mana yang diaktifkan

EnvelopeEncryption

Kelas untuk skema enkripsi EnvelopeEncryption

ErrorAdditionalInfo

Info tambahan kesalahan manajemen sumber daya.

ErrorDetail

Detail kesalahan.

ErrorResponse

Respons kesalahan

NoEncryption

Kelas untuk skema NoEncryption

StreamingPolicy

Sumber daya Kebijakan Streaming

StreamingPolicyContentKey

Kelas untuk menentukan properti kunci konten

StreamingPolicyContentKeys

Kelas untuk menentukan properti semua kunci konten dalam Kebijakan Streaming

StreamingPolicyFairPlayConfiguration

Kelas untuk menentukan konfigurasi FairPlay dalam Kebijakan Streaming

StreamingPolicyPlayReadyConfiguration

Kelas untuk menentukan konfigurasi PlayReady dalam Kebijakan Streaming

StreamingPolicyWidevineConfiguration

Kelas untuk menentukan konfigurasi Widevine dalam Kebijakan Streaming

systemData

Metadata yang berkaitan dengan pembuatan dan modifikasi terakhir sumber daya.

TrackPropertyCompareOperation

Lacak operasi kondisi properti

TrackPropertyCondition

Kelas untuk menentukan satu kondisi properti trek

TrackPropertyType

Melacak jenis properti

TrackSelection

Kelas untuk memilih trek

CbcsDrmConfiguration

Kelas untuk menentukan konfigurasi DRM skema CommonEncryptionCbcs dalam Kebijakan Streaming

Nama Jenis Deskripsi
fairPlay

StreamingPolicyFairPlayConfiguration

Konfigurasi FairPlay

playReady

StreamingPolicyPlayReadyConfiguration

Konfigurasi PlayReady

widevine

StreamingPolicyWidevineConfiguration

Konfigurasi Widevine

CencDrmConfiguration

Kelas untuk menentukan konfigurasi DRM dari skema CommonEncryptionCenc dalam Kebijakan Streaming

Nama Jenis Deskripsi
playReady

StreamingPolicyPlayReadyConfiguration

Konfigurasi PlayReady

widevine

StreamingPolicyWidevineConfiguration

Konfigurasi Widevine

ClearKeyEncryptionConfiguration

Kelas untuk menentukan konfigurasi ClearKey dari skema enkripsi umum dalam Kebijakan Streaming

Nama Jenis Deskripsi
customKeysAcquisitionUrlTemplate

string

Templat untuk URL layanan kustom yang mengirimkan kunci konten ke pemutar pengguna akhir. Tidak diperlukan saat menggunakan Azure Media Services untuk menerbitkan lisensi. Template mendukung token yang dapat diganti yang akan diperbarui oleh layanan saat runtime dengan nilai khusus untuk permintaan. Nilai token yang saat ini didukung adalah {AlternativeMediaId}, yang diganti dengan nilai StreamingLocatorId.AlternativeMediaId.

CommonEncryptionCbcs

Kelas untuk skema enkripsi CommonEncryptionCbcs

Nama Jenis Deskripsi
clearKeyEncryptionConfiguration

ClearKeyEncryptionConfiguration

Konfigurasi opsional yang mendukung ClearKey dalam skema enkripsi CommonEncryptionCbcs.

clearTracks

TrackSelection[]

Mewakili trek mana yang tidak boleh dienkripsi

contentKeys

StreamingPolicyContentKeys

Mewakili kunci konten default untuk setiap skema enkripsi dan kunci konten terpisah untuk trek tertentu

drm

CbcsDrmConfiguration

Konfigurasi DRM untuk skema enkripsi saat ini

enabledProtocols

EnabledProtocols

Mewakili protokol yang didukung

CommonEncryptionCenc

Kelas untuk skema enkripsi amplop

Nama Jenis Deskripsi
clearKeyEncryptionConfiguration

ClearKeyEncryptionConfiguration

Konfigurasi opsional yang mendukung ClearKey dalam skema enkripsi CommonEncryptionCenc.

clearTracks

TrackSelection[]

Mewakili trek mana yang tidak boleh dienkripsi

contentKeys

StreamingPolicyContentKeys

Mewakili kunci konten default untuk setiap skema enkripsi dan kunci konten terpisah untuk trek tertentu

drm

CencDrmConfiguration

Konfigurasi DRM untuk skema enkripsi CommonEncryptionCenc

enabledProtocols

EnabledProtocols

Mewakili protokol yang didukung

createdByType

Jenis identitas yang membuat sumber daya.

Nama Jenis Deskripsi
Application

string

Key

string

ManagedIdentity

string

User

string

DefaultKey

Kelas untuk menentukan properti kunci konten default untuk setiap skema enkripsi

Nama Jenis Deskripsi
label

string

Label dapat digunakan untuk menentukan Kunci Konten saat membuat Pencari Lokasi Streaming

policyName

string

Kebijakan yang digunakan oleh Kunci Default

EnabledProtocols

Kelas untuk menentukan protokol mana yang diaktifkan

Nama Jenis Deskripsi
dash

boolean

Mengaktifkan protokol DASH atau tidak

download

boolean

Aktifkan Unduh protokol atau tidak

hls

boolean

Mengaktifkan protokol HLS atau tidak

smoothStreaming

boolean

Aktifkan protokol SmoothStreaming atau tidak

EnvelopeEncryption

Kelas untuk skema enkripsi EnvelopeEncryption

Nama Jenis Deskripsi
clearTracks

TrackSelection[]

Mewakili trek mana yang tidak boleh dienkripsi

contentKeys

StreamingPolicyContentKeys

Mewakili kunci konten default untuk setiap skema enkripsi dan kunci konten terpisah untuk trek tertentu

customKeyAcquisitionUrlTemplate

string

Templat untuk URL layanan kustom yang mengirimkan kunci ke pemutar pengguna akhir. Tidak diperlukan saat menggunakan Azure Media Services untuk mengeluarkan kunci. Template mendukung token yang dapat diganti yang akan diperbarui oleh layanan saat runtime dengan nilai khusus untuk permintaan. Nilai token yang saat ini didukung adalah {AlternativeMediaId}, yang diganti dengan nilai StreamingLocatorId.AlternativeMediaId, dan {ContentKeyId}, yang diganti dengan nilai pengidentifikasi kunci yang diminta.

enabledProtocols

EnabledProtocols

Mewakili protokol yang didukung

ErrorAdditionalInfo

Info tambahan kesalahan manajemen sumber daya.

Nama Jenis Deskripsi
info

object

Info tambahan.

type

string

Jenis info tambahan.

ErrorDetail

Detail kesalahan.

Nama Jenis Deskripsi
additionalInfo

ErrorAdditionalInfo[]

Info tambahan kesalahan.

code

string

Kode kesalahan.

details

ErrorDetail[]

Detail kesalahan.

message

string

Pesan kesalahan.

target

string

Target kesalahan.

ErrorResponse

Respons kesalahan

Nama Jenis Deskripsi
error

ErrorDetail

Objek kesalahan.

NoEncryption

Kelas untuk skema NoEncryption

Nama Jenis Deskripsi
enabledProtocols

EnabledProtocols

Mewakili protokol yang didukung

StreamingPolicy

Sumber daya Kebijakan Streaming

Nama Jenis Deskripsi
id

string

ID sumber daya yang sepenuhnya memenuhi syarat untuk sumber daya. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

Nama sumber daya.

properties.commonEncryptionCbcs

CommonEncryptionCbcs

Konfigurasi CommonEncryptionCbcs

properties.commonEncryptionCenc

CommonEncryptionCenc

Konfigurasi CommonEncryptionCenc

properties.created

string

Waktu pembuatan Kebijakan Streaming

properties.defaultContentKeyPolicyName

string

ContentKey Default yang digunakan oleh Kebijakan Streaming saat ini

properties.envelopeEncryption

EnvelopeEncryption

Konfigurasi EnvelopeEncryption

properties.noEncryption

NoEncryption

Konfigurasi NoEncryption

systemData

systemData

Metadata sistem yang berkaitan dengan sumber daya ini.

type

string

Jenis sumber daya. Misalnya, "Microsoft.Compute/virtualMachines" atau "Microsoft.Storage/storageAccounts"

StreamingPolicyContentKey

Kelas untuk menentukan properti kunci konten

Nama Jenis Deskripsi
label

string

Label dapat digunakan untuk menentukan Kunci Konten saat membuat Pencari Lokasi Streaming

policyName

string

Kebijakan yang digunakan oleh Kunci Konten

tracks

TrackSelection[]

Melacak yang menggunakan kunci konten ini

StreamingPolicyContentKeys

Kelas untuk menentukan properti semua kunci konten dalam Kebijakan Streaming

Nama Jenis Deskripsi
defaultKey

DefaultKey

Kunci konten default untuk skema enkripsi

keyToTrackMappings

StreamingPolicyContentKey[]

Mewakili trek memerlukan kunci konten terpisah

StreamingPolicyFairPlayConfiguration

Kelas untuk menentukan konfigurasi FairPlay dalam Kebijakan Streaming

Nama Jenis Deskripsi
allowPersistentLicense

boolean

Semua lisensi yang akan dipertahankan atau tidak

customLicenseAcquisitionUrlTemplate

string

Templat untuk URL layanan kustom yang mengirimkan lisensi ke pemutar pengguna akhir. Tidak diperlukan saat menggunakan Azure Media Services untuk menerbitkan lisensi. Template mendukung token yang dapat diganti yang akan diperbarui oleh layanan saat runtime dengan nilai khusus untuk permintaan. Nilai token yang saat ini didukung adalah {AlternativeMediaId}, yang diganti dengan nilai StreamingLocatorId.AlternativeMediaId, dan {ContentKeyId}, yang diganti dengan nilai pengidentifikasi kunci yang diminta.

StreamingPolicyPlayReadyConfiguration

Kelas untuk menentukan konfigurasi PlayReady dalam Kebijakan Streaming

Nama Jenis Deskripsi
customLicenseAcquisitionUrlTemplate

string

Templat untuk URL layanan kustom yang mengirimkan lisensi ke pemutar pengguna akhir. Tidak diperlukan saat menggunakan Azure Media Services untuk menerbitkan lisensi. Template mendukung token yang dapat diganti yang akan diperbarui oleh layanan saat runtime dengan nilai khusus untuk permintaan. Nilai token yang saat ini didukung adalah {AlternativeMediaId}, yang diganti dengan nilai StreamingLocatorId.AlternativeMediaId, dan {ContentKeyId}, yang diganti dengan nilai pengidentifikasi kunci yang diminta.

playReadyCustomAttributes

string

Atribut kustom untuk PlayReady

StreamingPolicyWidevineConfiguration

Kelas untuk menentukan konfigurasi Widevine dalam Kebijakan Streaming

Nama Jenis Deskripsi
customLicenseAcquisitionUrlTemplate

string

Templat untuk URL layanan kustom yang mengirimkan lisensi ke pemutar pengguna akhir. Tidak diperlukan saat menggunakan Azure Media Services untuk menerbitkan lisensi. Template mendukung token yang dapat diganti yang akan diperbarui oleh layanan saat runtime dengan nilai khusus untuk permintaan. Nilai token yang saat ini didukung adalah {AlternativeMediaId}, yang diganti dengan nilai StreamingLocatorId.AlternativeMediaId, dan {ContentKeyId}, yang diganti dengan nilai pengidentifikasi kunci yang diminta.

systemData

Metadata yang berkaitan dengan pembuatan dan modifikasi terakhir sumber daya.

Nama Jenis Deskripsi
createdAt

string

Tanda waktu pembuatan sumber daya (UTC).

createdBy

string

Identitas yang membuat sumber daya.

createdByType

createdByType

Jenis identitas yang membuat sumber daya.

lastModifiedAt

string

Tanda waktu modifikasi terakhir sumber daya (UTC)

lastModifiedBy

string

Identitas yang terakhir memodifikasi sumber daya.

lastModifiedByType

createdByType

Jenis identitas yang terakhir mengubah sumber daya.

TrackPropertyCompareOperation

Lacak operasi kondisi properti

Nama Jenis Deskripsi
Equal

string

Operasi yang sama

Unknown

string

Operasi perbandingan properti trek tidak diketahui

TrackPropertyCondition

Kelas untuk menentukan satu kondisi properti trek

Nama Jenis Deskripsi
operation

TrackPropertyCompareOperation

Melacak operasi kondisi properti

property

TrackPropertyType

Melacak jenis properti

value

string

Melacak nilai properti

TrackPropertyType

Melacak jenis properti

Nama Jenis Deskripsi
FourCC

string

Lacak FourCC

Unknown

string

Properti trek tidak diketahui

TrackSelection

Kelas untuk memilih trek

Nama Jenis Deskripsi
trackSelections

TrackPropertyCondition[]

TrackSelections adalah daftar kondisi properti trek yang dapat menentukan trek