- First, clone the repositories PlayReadyProxy and PlayReadyProxy-API to your local machine.
- Navigate to the
PlayReadyProxy-API
directory for re-configuration. - Rename
.env.example
andconfig.ini.example
to.env
andconfig.ini
, respectively.
- Open and modify the
config.ini
file with the appropriate settings. For example:
[CDM]
DEVICE_FILE = device/myprd_file.prd
DEVICE_NAME = NVIDIA
- Create a virtual environment (venv) and activate it.
- Install the required dependencies from
requirements.txt
:
pip install -r requirements.txt
- Ensure that your
myprd_file.prd
file is located in thedevice
directory.
- The
NVIDIA
device name will be used in the PlayReadyProxy extension.
- Once everything is set up, run
generate_apikey.py
to generate an API key:
python generate_apikey.py
- Example output after generation:
Enter username: TEST
Generated API key for 'new_user': TEST_3b6d0dfba92b63cbf41aaaa76fb493a8
- Use the generated API key
TEST_3b6d0dfba92b63cbf41aaaa76fb493a8
in thePlayReadyProxy
extension configuration.
- Example configuration for the PlayReadyProxy extension:
{
"security_level": "3000", // Can be 2000 or 3000
"host": "http://127.0.0.1:1337",
"secret": "TEST_3b6d0dfba92b63cbf41aaaa76fb493a8",
"device_name": "NVIDIA"
}
- Make sure to check the
device_name
andsecret
values carefully. These are obtained from the Backend (PlayReadyProxy-API
).
-
Visit the following link to get the keys: DASH.js PlayReady Example
-
Check the terminal to see if the setup was successful.
- If you encounter any issues or errors, please feel free to DM me on Telegram.