@stacksjs/video 0.75.182 → 0.75.184

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -76,10 +76,21 @@ Manifests remain short-lived or private, while content-addressed segments use im
76
76
  label="Product demonstration"
77
77
  poster="/media/demo/poster.avif"
78
78
  :sources="progressiveFallbacks"
79
+ :drm="licenseEndpoints"
79
80
  :tracks="captionAndChapterTracks"
80
81
  />
81
82
  ```
82
83
 
83
84
  It plays a file, an HLS or DASH stream, or a YouTube or Vimeo link, with play, seek, live edge, time, mute, volume, speed, quality, captions, AirPlay, Picture in Picture, fullscreen and accessible errors, labelled in the page's language. `src`, `poster`, `aspectRatio` and `label` follow a binding. See the component's README in `@stacksjs/components` for every prop.
84
85
 
85
- `<Video>` takes no `drm` prop yet. To play protected DASH, render ts-video-player's `<video-player>` with a `data-media-config` JSON that carries the `drm` descriptor next to `sources`.
86
+ `drm` accepts Widevine, PlayReady and FairPlay license endpoints for already encrypted media:
87
+
88
+ ```ts
89
+ const licenseEndpoints = {
90
+ widevine: { url: '/licenses/widevine', headers: { Authorization: token } },
91
+ playready: { url: '/licenses/playready' },
92
+ fairplay: { url: '/licenses/fairplay', certificateUrl: '/licenses/certificate' },
93
+ }
94
+ ```
95
+
96
+ The component serializes these descriptors into `data-media-config` and attaches them to DASH sources, detected by MIME type or a `.mpd` URL (including query strings). Progressive fallback sources remain unchanged. License and certificate routes must authorize the viewer.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/video",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.182",
5
+ "version": "0.75.184",
6
6
  "description": "Native video delivery planning for Stacks.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",