You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
Hey dev,
I wanted to reproduce the example of the use of the playready library provided by Microsoft in C# in python based on your library in order to be able to use the uwp api specific to windows. The C# application works fine but I get errors with python.
I have below the python code used in order to use the video tests but does not work.
importuuidfromwinsdk.windows.media.protection.playreadyimport*fromwinsdk.windows.foundationimportUri# from winsdk.windows.foundation import IAsyncAction# https://github.com/pywinrt/python-winsdk# https://github.com/tpn/winsdk-10/blob/master/Include/10.0.16299.0/winrt/Windows.Media.Protection.PlayReadyErrors.hkeyId='{6F651AE1-DBE4-4434-BCB4-690D1564C41C}'moviePath='http://profficialsite.origin.mediaservices.windows.net/c51358ea-9a5e-4322-8951-897d640fdfd7/tearsofsteel_4k.ism/manifest(format=mpd-time-csf)'licenseUrl='http://playready.directtaps.net/pr/svc/rightsmanager.asmx?PlayRight=1&SecurityLevel=2000&MaxResDecode=1920x1080'# @PlayReadyHelpers.ReactiveLicenseAcquisitiondefReactiveLicenseAcquisition(laRequest):
# args = IAsyncActionlaRequest.begin_service_request() # ERROR: object needs an argumentprint('ReactiveLicenseAcquisition::Complete')
# @PlayReadyHelpers.ProactiveLicenseAcquisitiondefProactiveLicenseAcquisition(contentHeader):
laRequest=PlayReadyLicenseAcquisitionServiceRequestlaRequest.content_header=contentHeaderReactiveLicenseAcquisition(laRequest)
# @ProactiveViewModel.GetLicensedefGetLicense(kid):
laURL=licenseUrlcustomData='token:12345'contentHeader=PlayReadyContentHeader(
uuid.UUID(kid),
'',
PlayReadyEncryptionAlgorithm.AES128_CTR,
Uri(laURL),
Uri(laURL),
customData,
uuid.UUID(int=0)
) # ERROR: 0x8004b8ce --> HWDRM is present on the system but is not supported.ProactiveLicenseAcquisition(contentHeader)
if__name__=='__main__':
# Proactive License RequestGetLicense(keyId)
Hey dev,
I wanted to reproduce the example of the use of the playready library provided by Microsoft in C# in python based on your library in order to be able to use the uwp api specific to windows. The C# application works fine but I get errors with python.
I have below the python code used in order to use the video tests but does not work.
Do you have an idea for a fix?
Microsoft Sample Application: https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/playready/
The text was updated successfully, but these errors were encountered: