Skip to content

Commit ee5021d

Browse files
authored
Merge pull request #580 from ant-media/drm-refactor
Update drm-plugin.md
2 parents 7226f14 + 85c8d42 commit ee5021d

File tree

4 files changed

+27
-15
lines changed

4 files changed

+27
-15
lines changed

docs/guides/drm-integration/drm-plugin.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ This section walks you through securing a live stream with Widevine using DoveRu
151151

152152
```bash
153153
cd html5-player-drm-samples
154-
sudo cp videojs-pallycon-sample.html /usr/local/antmedia/webapps/live/
154+
sudo cp videojs-doverunner-sample.html /usr/local/antmedia/webapps/live/
155155
sudo cp js/videojs-sample.js /usr/local/antmedia/webapps/live/js/
156-
sudo cp js/pallycon-sample-helper.js /usr/local/antmedia/webapps/live/js/
156+
sudo cp js/doverunner-sample-helper.js /usr/local/antmedia/webapps/live/js/
157157
sudo cp css/* /usr/local/antmedia/webapps/live/css/
158158
```
159159

@@ -177,8 +177,8 @@ Pay attention that we use `stream007` as the `streamid`. It will be used to get
177177
- The HTTP endpoint templates will be like
178178

179179
```bash
180-
DASH: https://{YOUR_ANTMEDIA_SERVER}:5443/live/streams/stream123/master.mpd
181-
HLS: https://{YOUR_ANTMEDIA_SERVER}:5443/live/streams/stream123/master.m3u8
180+
DASH: https://{YOUR_ANTMEDIA_SERVER}:5443/live/streams/drm/stream123/master.mpd
181+
HLS: https://{YOUR_ANTMEDIA_SERVER}:5443/live/streams/drm/stream123/master.m3u8
182182
```
183183

184184
### Step 4: Generate Widevine Token
@@ -189,14 +189,14 @@ Pay attention that we use `stream007` as the `streamid`. It will be used to get
189189
- **SITE ID, SITE Key, ACCESS Key** → Get from [DRM Settings on DoveRunner](https://contentsecurity.doverunner.com/drm/setting).
190190
- **DRM Type**`Widevine` because we used `Widevine` in this sample.
191191
- **CID** → Your streamId. `stream007` in this sample.
192-
- **USER ID** → any unique identifier.
192+
- **USER ID** → any unique identifier (for example, 1234 etc).
193193
- Click **Refresh Timestamp**, and leave the other fields with default values.
194194

195195
3. Click the `Generate Token` button and copy the token in `Result`.
196196
4. Open the below file:
197197

198198
```bash
199-
sudo nano /usr/local/antmedia/webapps/live/js/pallycon-sample-helper.js
199+
sudo nano /usr/local/antmedia/webapps/live/js/doverunner-sample-helper.js
200200
```
201201

202202
- **Replace**:
@@ -208,14 +208,20 @@ Pay attention that we use `stream007` as the `streamid`. It will be used to get
208208

209209
- Save the changes & exit the editor.
210210

211-
### Step 5: Play the Stream in Chrome
211+
### Step 5: Play Stream in Chrome
212212

213213
Open the below URL with `Chrome` because Widevine is supported by Chrome:
214214

215215
```css
216-
https://{YOUR_ANTMEDIA_SERVER}:5443/live/videojs-pallycon-sample.html
216+
https://{YOUR_ANTMEDIA_SERVER}:5443/live/videojs-doverunner-sample.html
217217
```
218218

219-
- Click Play.
219+
- Click Play
220220

221-
- If it works — congratulations! 🎉 You are successfully playing a DRM-protected video using Widevine with your Ant Media Server.
221+
- If it works, you are successfully playing a DRM-protected video using Widevine with your Ant Media Server.
222+
223+
- Try to get the screenshot of that page and it should be blank.
224+
225+
![](@site/static/img/drm-test.webp)
226+
227+
If it is blank, congratulations! 🎉 Your content is protected using the DRM, and no one can capture it.

static/img/drm-test.png

209 KB
Loading

static/img/drm-test.webp

35 KB
Binary file not shown.

versioned_docs/version-2.13/guides/drm-integration/drm-plugin.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ Pay attention that we use `stream007` as the `streamid`. It will be used to get
177177
- The HTTP endpoint templates will be like
178178

179179
```bash
180-
DASH: https://{YOUR_ANTMEDIA_SERVER}:5443/live/streams/stream123/master.mpd
181-
HLS: https://{YOUR_ANTMEDIA_SERVER}:5443/live/streams/stream123/master.m3u8
180+
DASH: https://{YOUR_ANTMEDIA_SERVER}:5443/live/streams/drm/stream123/master.mpd
181+
HLS: https://{YOUR_ANTMEDIA_SERVER}:5443/live/streams/drm/stream123/master.m3u8
182182
```
183183

184184
### Step 4: Generate Widevine Token
@@ -189,7 +189,7 @@ Pay attention that we use `stream007` as the `streamid`. It will be used to get
189189
- **SITE ID, SITE Key, ACCESS Key** → Get from [DRM Settings on DoveRunner](https://contentsecurity.doverunner.com/drm/setting).
190190
- **DRM Type**`Widevine` because we used `Widevine` in this sample.
191191
- **CID** → Your streamId. `stream007` in this sample.
192-
- **USER ID** → any unique identifier.
192+
- **USER ID** → any unique identifier (for example, 1234 etc).
193193
- Click **Refresh Timestamp**, and leave the other fields with default values.
194194

195195
3. Click the `Generate Token` button and copy the token in `Result`.
@@ -208,7 +208,7 @@ Pay attention that we use `stream007` as the `streamid`. It will be used to get
208208

209209
- Save the changes & exit the editor.
210210

211-
### Step 5: Play the Stream in Chrome
211+
### Step 5: Play Stream in Chrome
212212

213213
Open the below URL with `Chrome` because Widevine is supported by Chrome:
214214

@@ -218,4 +218,10 @@ https://{YOUR_ANTMEDIA_SERVER}:5443/live/videojs-doverunner-sample.html
218218

219219
- Click Play
220220

221-
- If it works — congratulations! 🎉 You are successfully playing a DRM-protected video using Widevine with your Ant Media Server.
221+
- If it works, you are successfully playing a DRM-protected video using Widevine with your Ant Media Server.
222+
223+
- Try to get the screenshot of that page and it should be blank.
224+
225+
![](@site/static/img/drm-test.webp)
226+
227+
If it is blank, congratulations! 🎉 Your content is protected using the DRM, and no one can capture it.

0 commit comments

Comments
 (0)