- clone the repos and change into it the
prp-api
directory
git clone https://github.com/ThatNotEasy/PlayReadyProxy.git
git clone https://github.com/ThatNotEasy/PlayReadyProxy-API.git
cd PlayReadyProxy-API
- create and activate a python virtual environment
python -m venv venv
venv\Scripts\Activate.ps1
- install the required modules
pip install -r requirements.txt
- move your cdm into the working directory and rename it
mv path\to\your_prd_file.prd cdm.prd
- rename the env and config files
mv .env.example .env
mv config.ini.example config.ini
- set the cdm location and name
(cat config.ini) -replace '=.*', '= cdm.prd' | Set-Content config.ini
- create a
local.json
file
echo '{"security_level":"3000","host":"http://127.0.0.1:1337","secret":"key","device_name":"cdm.prd"}' > local.json
- generate an api key
python generate_apikey.py
- add the api key to
local.json
(cat local.json) -replace 'key', (cat APIKEY.json | ConvertFrom-Json).apikey | Set-Content local.json
- start the server
flask run
- open edge, navigate to the extensions page and enable
developer mode
- select
load unpacked
and choose the prp
extension directory
- click the
prp
icon, select choose config
under remote cdm and choose your local.json
file