Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 83badf6

Browse files
committed
Update README
1 parent aa45bbd commit 83badf6

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# playready-rs
22

33
Rust port of [pyplayready](https://github.com/ready-dl/pyplayready).
4-
Currently it does **not** support creating `.prd` files and device reprovisioning. Other functionality should be working fine.
54

65
As a proof of concept it has been integrated with Kodi. Implementation is available on [fork of inputstream.adaptive](https://github.com/dobo90/inputstream.adaptive/tree/Omega-ossdrm/src/decrypters/playready).
76

8-
## Example usage:
7+
## Example code usage
98
```rust
109
use isahc::{ReadResponseExt, Request, RequestExt};
1110
use playready::{cdm::Cdm, Device, Pssh};
@@ -51,12 +50,13 @@ fn main() {
5150

5251
println!("Content keys:");
5352
for (kid, ck) in &keys {
54-
println!("{}:{}", hex::encode(kid), hex::encode(ck));
53+
println!("{}:{}", kid, ck);
5554
}
5655
}
5756
```
5857

59-
It also contains a simple CLI to test your `.prd` file by connecting to Microsoft's test server.
58+
## CLI
59+
If you want to test your `.prd` file by connecting to Microsoft's test server, run:
6060
```
6161
$ cd crates/playready-cli
6262
$ cargo run test-device /path/to/device.prd
@@ -67,5 +67,24 @@ $ cargo run test-device /path/to/device.prd
6767
[*] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
6868
```
6969

70+
To create new .prd device run:
71+
```
72+
$ cd crates/playready-cli
73+
$ cargo run create-device -c /path/to/bgroupcert.dat -k /path/to/zgpriv.dat -o /path/to/output_device.prd
74+
[*] Trying to provision device
75+
[*] Provisioned successfully
76+
[*] Device: Test Device
77+
[*] Security level: 0000
78+
```
79+
80+
In order to reprovision device:
81+
```
82+
$ cd crates/playready-cli
83+
$ cargo run reprovision-device /path/to/device.prd
84+
[*] Device: Test Device
85+
[*] Security level: 0000
86+
[*] Reprovisioned successfully
87+
```
88+
7089
## Documentation
71-
Available at [GitHub pages](https://dobo90.github.io/playready-rs/playready/index.html).
90+
Available at [GitHub pages](https://dobo90.github.io/playready-rs/playready/index.html) and [docs.rs](https://docs.rs/playready/latest/playready/).

0 commit comments

Comments
 (0)