Streaming Policies - Create

Een streamingbeleid maken in het Media Services-account

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

URI-parameters

Name In Vereist Type Description
accountName
path True

string

De naam van het Media Services-account.

resourceGroupName
path True

string

De naam van de resourcegroep binnen het Azure-abonnement.

streamingPolicyName
path True

string

De naam van het streamingbeleid.

subscriptionId
path True

string

De unieke id voor een Microsoft Azure-abonnement.

api-version
query True

string

De versie van de API die moet worden gebruikt met de clientaanvraag.

Aanvraagbody

Name Type Description
properties.commonEncryptionCbcs

CommonEncryptionCbcs

Configuratie van CommonEncryptionCbcs

properties.commonEncryptionCenc

CommonEncryptionCenc

Configuratie van CommonEncryptionCenc

properties.defaultContentKeyPolicyName

string

Standaard ContentKey die wordt gebruikt door het huidige streamingbeleid

properties.envelopeEncryption

EnvelopeEncryption

Configuratie van EnvelopeEncryption

properties.noEncryption

NoEncryption

Configuraties van NoEncryption

Antwoorden

Name Type Description
201 Created

StreamingPolicy

Gemaakt

Other Status Codes

ErrorResponse

Gedetailleerde foutinformatie.

Voorbeelden

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

Definities

Name Description
CbcsDrmConfiguration

Klasse voor het opgeven van DRM-configuraties van het CommonEncryptionCbcs-schema in streamingbeleid

CencDrmConfiguration

Klasse voor het opgeven van DRM-configuraties van het CommonEncryptionCenc-schema in streamingbeleid

ClearKeyEncryptionConfiguration

Klasse voor het opgeven van clearkey-configuratie van algemene versleutelingsschema's in streamingbeleid

CommonEncryptionCbcs

Klasse voor CommonEncryptionCbcs-versleutelingsschema

CommonEncryptionCenc

Klasse voor envelopversleutelingsschema

createdByType

Het type identiteit waarmee de resource is gemaakt.

DefaultKey

Klasse voor het opgeven van eigenschappen van de standaardinhoudssleutel voor elk versleutelingsschema

EnabledProtocols

Klasse om op te geven welke protocollen zijn ingeschakeld

EnvelopeEncryption

Klasse voor EnvelopVersleutelingsschema

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

NoEncryption

Klasse voor NoEncryption-schema

StreamingPolicy

Een streamingbeleidsresource

StreamingPolicyContentKey

Klasse om eigenschappen van inhoudssleutel op te geven

StreamingPolicyContentKeys

Klasse voor het opgeven van eigenschappen van alle inhoudssleutels in streamingbeleid

StreamingPolicyFairPlayConfiguration

Klasse om configuraties van FairPlay op te geven in streamingbeleid

StreamingPolicyPlayReadyConfiguration

Klasse om configuraties van PlayReady op te geven in streamingbeleid

StreamingPolicyWidevineConfiguration

Klasse om configuraties van Widevine op te geven in streamingbeleid

systemData

Metagegevens met betrekking tot het maken en laatste wijzigen van de resource.

TrackPropertyCompareOperation

Bewerking eigenschapsvoorwaarde bijhouden

TrackPropertyCondition

Klasse voor het opgeven van één voorwaarde voor de eigenschap track

TrackPropertyType

Type eigenschap bijhouden

TrackSelection

Klas om een nummer te selecteren

CbcsDrmConfiguration

Klasse voor het opgeven van DRM-configuraties van het CommonEncryptionCbcs-schema in streamingbeleid

Name Type Description
fairPlay

StreamingPolicyFairPlayConfiguration

FairPlay-configuraties

playReady

StreamingPolicyPlayReadyConfiguration

PlayReady-configuraties

widevine

StreamingPolicyWidevineConfiguration

Widevine-configuraties

CencDrmConfiguration

Klasse voor het opgeven van DRM-configuraties van het CommonEncryptionCenc-schema in streamingbeleid

Name Type Description
playReady

StreamingPolicyPlayReadyConfiguration

PlayReady-configuraties

widevine

StreamingPolicyWidevineConfiguration

Widevine-configuraties

ClearKeyEncryptionConfiguration

Klasse voor het opgeven van clearkey-configuratie van algemene versleutelingsschema's in streamingbeleid

Name Type Description
customKeysAcquisitionUrlTemplate

string

Sjabloon voor de URL van de aangepaste service die inhoudssleutels levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarde is {AlternativeMediaId}, die wordt vervangen door de waarde van StreamingLocatorId.AlternativeMediaId.

CommonEncryptionCbcs

Klasse voor CommonEncryptionCbcs-versleutelingsschema

Name Type Description
clearKeyEncryptionConfiguration

ClearKeyEncryptionConfiguration

Optionele configuratie die ClearKey ondersteunt in commonEncryptionCbcs-versleutelingsschema.

clearTracks

TrackSelection[]

Vertegenwoordigen welke sporen niet mogen worden versleuteld

contentKeys

StreamingPolicyContentKeys

Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers

drm

CbcsDrmConfiguration

Configuratie van DRM's voor het huidige versleutelingsschema

enabledProtocols

EnabledProtocols

Ondersteunde protocollen vertegenwoordigen

CommonEncryptionCenc

Klasse voor envelopversleutelingsschema

Name Type Description
clearKeyEncryptionConfiguration

ClearKeyEncryptionConfiguration

Optionele configuratie die ClearKey ondersteunt in het versleutelingsschema CommonEncryptionCenc.

clearTracks

TrackSelection[]

Vertegenwoordigen welke sporen niet mogen worden versleuteld

contentKeys

StreamingPolicyContentKeys

Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers

drm

CencDrmConfiguration

Configuratie van DRM's voor CommonEncryptionCenc-versleutelingsschema

enabledProtocols

EnabledProtocols

Ondersteunde protocollen vertegenwoordigen

createdByType

Het type identiteit waarmee de resource is gemaakt.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

DefaultKey

Klasse voor het opgeven van eigenschappen van de standaardinhoudssleutel voor elk versleutelingsschema

Name Type Description
label

string

Label kan worden gebruikt om inhoudssleutel op te geven bij het maken van een streaming-locator

policyName

string

Beleid dat wordt gebruikt door de standaardsleutel

EnabledProtocols

Klasse om op te geven welke protocollen zijn ingeschakeld

Name Type Description
dash

boolean

DASH-protocol inschakelen of niet

download

boolean

Downloadprotocol inschakelen of niet

hls

boolean

HLS-protocol inschakelen of niet

smoothStreaming

boolean

SmoothStreaming-protocol inschakelen of niet

EnvelopeEncryption

Klasse voor EnvelopVersleutelingsschema

Name Type Description
clearTracks

TrackSelection[]

Vertegenwoordigen welke sporen niet mogen worden versleuteld

contentKeys

StreamingPolicyContentKeys

Vertegenwoordigt de standaardinhoudssleutel voor elk versleutelingsschema en afzonderlijke inhoudssleutels voor specifieke nummers

customKeyAcquisitionUrlTemplate

string

Sjabloon voor de URL van de aangepaste service die sleutels levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het uitgeven van sleutels. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde van StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd.

enabledProtocols

EnabledProtocols

Ondersteunde protocollen vertegenwoordigen

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

NoEncryption

Klasse voor NoEncryption-schema

Name Type Description
enabledProtocols

EnabledProtocols

Ondersteunde protocollen vertegenwoordigen

StreamingPolicy

Een streamingbeleidsresource

Name Type Description
id

string

Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

De naam van de resource

properties.commonEncryptionCbcs

CommonEncryptionCbcs

Configuratie van CommonEncryptionCbcs

properties.commonEncryptionCenc

CommonEncryptionCenc

Configuratie van CommonEncryptionCenc

properties.created

string

Aanmaaktijd van streamingbeleid

properties.defaultContentKeyPolicyName

string

Standaard ContentKey die wordt gebruikt door het huidige streamingbeleid

properties.envelopeEncryption

EnvelopeEncryption

Configuratie van EnvelopeEncryption

properties.noEncryption

NoEncryption

Configuraties van NoEncryption

systemData

systemData

De systeemmetagegevens met betrekking tot deze resource.

type

string

Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

StreamingPolicyContentKey

Klasse om eigenschappen van inhoudssleutel op te geven

Name Type Description
label

string

Label kan worden gebruikt om inhoudssleutel op te geven bij het maken van een streaming-locator

policyName

string

Beleid dat wordt gebruikt door inhoudssleutel

tracks

TrackSelection[]

Houdt bij welke inhoudssleutel wordt gebruikt

StreamingPolicyContentKeys

Klasse voor het opgeven van eigenschappen van alle inhoudssleutels in streamingbeleid

Name Type Description
defaultKey

DefaultKey

Standaardinhoudssleutel voor een versleutelingsschema

keyToTrackMappings

StreamingPolicyContentKey[]

Voor het weergeven van sporen is een afzonderlijke inhoudssleutel vereist

StreamingPolicyFairPlayConfiguration

Klasse om configuraties van FairPlay op te geven in streamingbeleid

Name Type Description
allowPersistentLicense

boolean

Alle licenties die permanent moeten zijn of niet

customLicenseAcquisitionUrlTemplate

string

Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd.

StreamingPolicyPlayReadyConfiguration

Klasse om configuraties van PlayReady op te geven in streamingbeleid

Name Type Description
customLicenseAcquisitionUrlTemplate

string

Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde van StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd.

playReadyCustomAttributes

string

Aangepaste kenmerken voor PlayReady

StreamingPolicyWidevineConfiguration

Klasse om configuraties van Widevine op te geven in streamingbeleid

Name Type Description
customLicenseAcquisitionUrlTemplate

string

Sjabloon voor de URL van de aangepaste service die licenties levert aan eindgebruikers. Niet vereist bij het gebruik van Azure Media Services voor het verlenen van licenties. De sjabloon ondersteunt vervangbare tokens die de service tijdens runtime bijwerkt met de waarde die specifiek is voor de aanvraag. De momenteel ondersteunde tokenwaarden zijn {AlternativeMediaId}, die wordt vervangen door de waarde van StreamingLocatorId.AlternativeMediaId en {ContentKeyId}, die wordt vervangen door de waarde van de id van de sleutel die wordt aangevraagd.

systemData

Metagegevens met betrekking tot het maken en laatste wijzigen van de resource.

Name Type Description
createdAt

string

De tijdstempel van het maken van resources (UTC).

createdBy

string

De identiteit die de resource heeft gemaakt.

createdByType

createdByType

Het type identiteit waarmee de resource is gemaakt.

lastModifiedAt

string

Het tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource het laatst heeft gewijzigd.

TrackPropertyCompareOperation

Bewerking eigenschapsvoorwaarde bijhouden

Name Type Description
Equal

string

Gelijke bewerking

Unknown

string

Onbekende vergelijkingsbewerking voor traceereigenschappen

TrackPropertyCondition

Klasse voor het opgeven van één voorwaarde voor de eigenschap track

Name Type Description
operation

TrackPropertyCompareOperation

Bewerking eigenschapsvoorwaarde bijhouden

property

TrackPropertyType

Type eigenschap bijhouden

value

string

Waarde van eigenschap bijhouden

TrackPropertyType

Type eigenschap bijhouden

Name Type Description
FourCC

string

FourCC bijhouden

Unknown

string

Onbekende trackeigenschap

TrackSelection

Klas om een nummer te selecteren

Name Type Description
trackSelections

TrackPropertyCondition[]

TrackSelections is een lijst met voorwaarden voor trackeigenschappen waarmee u track(s) kunt opgeven