devine-dl / pywidevine

Python implementation of Google's Widevine DRM CDM (Content Decryption Module)
GNU General Public License v3.0
537 stars 118 forks source link

Auto select device in whitelist? #4

Closed sst311212 closed 2 years ago

sst311212 commented 2 years ago

It would be great if remote cdm can select random device in user's whitelist automatically. Thus, users no need to provide specific device in api request if they have multiple device key.

rlaphoenix commented 2 years ago

The selection of a random device could be problematic in relation to licensing server robustness though. So I don't know if that's the best idea.

DevataDev commented 2 years ago

Yes i am agree with @rlaphoenix it's a bit hard to keep the session if we give random device.

rlaphoenix commented 2 years ago

I don't think I will implement this as I do not personally see the need. If you want to randomly choose a device you can always do this on the client side where you list out what devices the user has, then randomly choose one from the list yourself.