Azure / azure-sdk-for-php

Microsoft Azure SDK for PHP
http://azure.microsoft.com/en-us/develop/php/
Apache License 2.0
415 stars 276 forks source link

warnings and fatal error in vodworkflow_drm_fairplay.php #986

Open Karrtojal opened 6 years ago

Karrtojal commented 6 years ago

Executing the example vodworkflow_drm_fairplay.php with only set the parameters in userconfig.png this is the result:

Azure SDK for PHP - FairPlay Dynamic Encryption Sample
Asset created: name=Mezzanine Azure-Video.wmv id=nb:cid:UUID:6ec8da00-ef76-4a14-bdac-987767cc8455
Uploading...
File uploaded: size=3797556
Using Media Processor: Media Encoder Standard version 1.1
Created Job with Id: nb:jid:UUID:4c1826ff-0300-bce6-bd93-f1e89fdaa875
Job status: Queued
Job status: Queued
Job status: Queued
Job status: Scheduled
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job status: Processing
Job Finished!
Asset encoded: name=Encoded Mezzanine Azure-Video.wmv id=nb:cid:UUID:ffdba7be-e581-45d5-bec9-f3e4060242b4
Content Key id=nb:kid:UUID:2b613d99-2167-4ea1-befc-97fb6caf93b5
<br />
<b>Warning</b>:  hex2bin(): Input string must be hexadecimal string in <b>/var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/examples/MediaServices/vodworkflow_drm_fairplay.php</b> on line <b>407</b><br />
FairPlay ASK Content Key id=nb:kid:UUID:718b8123-304e-4f5d-b5be-8ac75ba90754
FairPlay PFX Password Content Key id=nb:kid:UUID:0b52249b-27cf-43a5-885e-fc99c9f45d11
<br />
<b>Warning</b>:  file_get_contents(&lt;path to the pfx file&gt;): failed to open stream: No such file or directory in <b>/var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/examples/MediaServices/vodworkflow_drm_fairplay.php</b> on line <b>397</b><br />
<br />
<b>Warning</b>:  openssl_pkcs12_export(): cannot get cert from parameter 1 in <b>/var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/MediaServices/Templates/FairPlayConfiguration.php</b> on line <b>76</b><br />
<br />
<b>Fatal error</b>:  Uncaught WindowsAzure\Common\ServiceException: Fail:
Code: 400
Value: Bad Request
details (if any): &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;m:error xmlns:m=&quot;http://schemas.microsoft.com/ado/2007/08/dataservices/metadata&quot;&gt;&lt;m:code /&gt;&lt;m:message xml:lang=&quot;en-US&quot;&gt;FairPlay configuration must have FairPlayPfx.&lt;/m:message&gt;&lt;/m:error&gt;. in /var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/Common/Internal/Http/HttpClient.php:405
Stack trace:
#0 /var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/Common/Internal/Http/HttpClient.php(301): WindowsAzure\Common\Internal\Http\HttpClient::throwIfError(400, 'Bad Request', Object(GuzzleHttp\Psr7\Stream), Array)
#1 /var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/Common/Internal/RestProxy.php(144): WindowsAzure\Common\Internal\Http\HttpClient-&gt;sendAndGetHttpResponse(Array, Object(WindowsAzure\Common\Internal\Http\Url))
#2 /var/www/api.azure.0.5.7/vendor/micr in <b>/var/www/api.azure.0.5.7/vendor/microsoft/windowsazure/src/Common/Internal/Http/HttpClient.php</b> on line <b>405</b><br />

Any idea the reason? Thanks in advance.