From 9ca83da1fa2ec32b81fc5a9a6aed403010960a8b Mon Sep 17 00:00:00 2001 From: FoxRefire <155989196+FoxRefire@users.noreply.github.com> Date: Fri, 31 May 2024 06:49:45 +0900 Subject: [PATCH] Updated Using with Remote CDM (markdown) --- Using-with-Remote-CDM.md | 60 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/Using-with-Remote-CDM.md b/Using-with-Remote-CDM.md index d39c07d..b8cd174 100644 --- a/Using-with-Remote-CDM.md +++ b/Using-with-Remote-CDM.md @@ -1 +1,59 @@ -Todo \ No newline at end of file +# For users +If you are a normal user, just place the remote.json provided by the server operator in the root directory of the extension. + +# Requirements +* Working WVD +* Server with pywidevine installed + +# Guide +1. Open Python shell on your terminal + ``` + python3 + ``` + +2. Run the following script to check the system ID of your WVD. + ``` + Device.load("/path/to/=FILENAME=.wvd").system_id + ``` + +3. Go to following website to create a 32-character API key + + https://bitwarden.com/password-generator/ + + **Characters: 32** + + - [x] **A-Z** + - [x] **a-z** + - [x] **0-9** + - [ ] **!@#$%^&\*** + +4. Create `serve.yml` according to the following format + ``` + devices: + - '/path/to/FILENAME.wvd' + + users: + APIKEY: + username: jane + devices: + - FILENAME + + force_privacy_mode: false + ``` + +5. Start the server by run the following command on your terminal + ``` + pywidevine serve /path/to/serve.yml + ``` + +6. Create `remote.json` according to the following format + ``` + { + "device_type":"ANDROID", + "system_id":SYSTEMID, + "security_level":3, + "host":"https://YOURSERVER:PORT", + "secret":"APIKEY", + "device_name":"FILENAME" + } + ``` \ No newline at end of file