8 Using with Remote CDM
FoxRefire edited this page 2024-06-07 03:45:12 +09:00

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.

Use this remote.json if you want to using this extension with remote cdm hosted by CDRM-Project.

remote.json

Also, use of unofficial versions of extensions within the CDRM-Project website is NOT recommended.

See also: FAQ - Is it safe to use a remote CDM operated by a third party?

Requirements

  • Working WVD
  • Server with pywidevine installed

Guide

  1. Open Python shell and run the following script on your terminal to check the system ID of your WVD

    python3
    from pywidevine.device import Device
    Device.load("/path/to/FILENAME.wvd").system_id
    
  2. Go to following website to create a 32-character API key

    https://bitwarden.com/password-generator/

    Characters: 32

    • A-Z
    • a-z
    • 0-9
    • !@#$%^&*
  3. Create serve.yml according to the following format

    devices:
      - '/path/to/FILENAME.wvd'
    
    users:
      APIKEY:
        username: jane
        devices:
          - FILENAME
    
    force_privacy_mode: false
    
  4. Start the server by run the following command on your terminal

    pywidevine serve /path/to/serve.yml
    
  5. 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"
    }
    

Check lists

  • Replaced FILENAME, APIKEY, FILENAME, SYSTEMID, and YOURSERVER:PORT in the serve.yml and remote.json
  • Checked to see if quoting was required for the replaced location (WRITE QUOTE where quotes are originally present, BUT NOT elsewhere)
  • FILENAME must not include the file extension