+ Reply to Thread
Results 31 to 50 of 50
-
Hey, I am playing arround https://github.com/ready-dl/pyplayready
I just it in proxy mode. Is there a python script avalible to make remote key request to pyplayready proxy?
The example code snippet is for local request:
from pyplayready.cdm import Cdm
from pyplayready.device import Device
from pyplayready.system.pssh import PSSH
import requests
device = Device.load("C:/Path/To/A/Device.prd")
cdm = Cdm.from_device(device)
session_id = cdm.open()
pssh = PSSH(
"AAADfHBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAAA1xcAwAAA QABAFIDPABXAFIATQBIAEUAQQBEAEUAUgAgAHgAbQBsAG4AcwA 9ACIAaAB0AH"
"QAcAA6AC8ALwBzAGMAaABlAG0AYQBzAC4AbQBpAGMAcgBvAHM AbwBmAHQALgBjAG8AbQAvAEQAUgBNAC8AMgAwADAANwAvADAAM wAvAFAAbABh"
"AHkAUgBlAGEAZAB5AEgAZQBhAGQAZQByACIAIAB2AGUAcgBzA GkAbwBuAD0AIgA0AC4AMAAuADAALgAwACIAPgA8AEQAQQBUAEE APgA8AFAAUg"
"BPAFQARQBDAFQASQBOAEYATwA+ADwASwBFAFkATABFAE4APgA xADYAPAAvAEsARQBZAEwARQBOAD4APABBAEwARwBJAEQAPgBBA EUAUwBDAFQA"
"UgA8AC8AQQBMAEcASQBEAD4APAAvAFAAUgBPAFQARQBDAFQAS QBOAEYATwA+ADwASwBJAEQAPgA0AFIAcABsAGIAKwBUAGIATgB FAFMAOAB0AE"
"cAawBOAEYAVwBUAEUASABBAD0APQA8AC8ASwBJAEQAPgA8AEM ASABFAEMASwBTAFUATQA+AEsATABqADMAUQB6AFEAUAAvAE4AQ QA9ADwALwBD"
"AEgARQBDAEsAUwBVAE0APgA8AEwAQQBfAFUAUgBMAD4AaAB0A HQAcABzADoALwAvAHAAcgBvAGYAZgBpAGMAaQBhAGwAcwBpAHQ AZQAuAGsAZQ"
"B5AGQAZQBsAGkAdgBlAHIAeQAuAG0AZQBkAGkAYQBzAGUAcgB 2AGkAYwBlAHMALgB3AGkAbgBkAG8AdwBzAC4AbgBlAHQALwBQA GwAYQB5AFIA"
"ZQBhAGQAeQAvADwALwBMAEEAXwBVAFIATAA+ADwAQwBVAFMAV ABPAE0AQQBUAFQAUgBJAEIAVQBUAEUAUwA+ADwASQBJAFMAXwB EAFIATQBfAF"
"YARQBSAFMASQBPAE4APgA4AC4AMQAuADIAMwAwADQALgAzADE APAAvAEkASQBTAF8ARABSAE0AXwBWAEUAUgBTAEkATwBOAD4AP AAvAEMAVQBT"
"AFQATwBNAEEAVABUAFIASQBCAFUAVABFAFMAPgA8AC8ARABBA FQAQQA+ADwALwBXAFIATQBIAEUAQQBEAEUAUgA+AA=="
)
request = cdm.get_license_challenge(session_id, pssh.wrm_headers[0])
response = requests.post(
url="https://test.playready.microsoft.com/service/rightsmanager.asmx?cfg=(persist:false,sl:2000)",
headers={
'Content-Type': 'text/xml; charset=UTF-8',
},
data=request,
)
cdm.parse_license(session_id, response.text)
for key in cdm.get_keys(session_id):
print(f"{key.key_id.hex}:{key.key.hex()}")
cdm.close(session_id) -
And this:
https://github.com/ready-dl/csplayready -
you just have to change the imports and specify a remote cdm at the beginning of the example script like so:
Code:from pyplayready.cdm import Cdm from pyplayready.remote.remotecdm import RemoteCdm from pyplayready.system.pssh import PSSH import requests cdm = RemoteCdm( security_level = <level>, host = "http://<ip>:<port>", secret = "<secret>", device_name = "<name>" ) session_id = cdm.open()
host is the ip address and port that pyplayready is running on. when you start serving it will display these details.
secret and device name are whatever you set them as in your config.yml file. -
Thanks a lot mate.
And do you know whether it's possible to rotate between devices? For example:
I have 10 users and 15 devices. On each user request, I want to randomly rotate between the devices instead of assigning a fixed device to each one.
And I read in serve.example.yml:
username: chloe # only for internal logging, user will not see this name -
Whats the difference between ?:
https://github.com/ready-dl/csplayready
and
https://github.com/ready-dl/pyplayready -
-
why the port is 5000 and not 1337 when start server app.py? I modify file config.ini and write 5000 and not 1337 but not work (sorry for my english XD)
-
Local cdm is empty
You need add .prd to make it workLast edited by iamghost; 25th Apr 2025 at 13:00.
-
How do I select the local cdm? when I press choose nothing opens...I select "Choose device" but not open window where select file .prd...you can help me?
Similar Threads
-
How to stream 3D video for 3D devices
By piso in forum Video ConversionReplies: 0Last Post: 26th Jun 2023, 21:13 -
Devices and Printers
By johns0 in forum ComputerReplies: 1Last Post: 28th Nov 2022, 11:53 -
How can I get WV L3 keys without android devices?
By 491389286 in forum Video Streaming DownloadingReplies: 13Last Post: 22nd Nov 2022, 15:25 -
What crippled my Internet? Static IP for devices?
By kanamit in forum ComputerReplies: 5Last Post: 28th May 2020, 08:22 -
Recommendations for Capture Devices
By CaptainCatholic587 in forum Capturing and VCRReplies: 88Last Post: 11th Dec 2019, 14:58