@aglyn/plugins-video-delivery 1.0.0-beta.143 → 1.0.0-beta.145
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.
- package/README.md +16 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
# @aglyn/plugins-video-delivery
|
|
2
2
|
|
|
3
|
-
Library video served from Cloudflare R2 through a Worker
|
|
3
|
+
Library video served from Cloudflare R2 through a Worker, behind
|
|
4
4
|
core's media delivery contract (`core.media-delivery` in
|
|
5
5
|
`@aglyn/aglyn/plugin-manager/media-delivery-provider`). Core makes every
|
|
6
6
|
access decision and never names a provider; this plugin holds the copies
|
|
7
7
|
and serves them.
|
|
8
8
|
|
|
9
|
+
> Beta. Published from the Aglyn monorepo under the `beta` dist-tag; APIs can change between beta releases.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @aglyn/plugins-video-delivery@beta
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
A plugin is loaded through Aglyn's plugin manager (`@aglyn/aglyn`) by the console and the tenant runtime; it is not a standalone library.
|
|
18
|
+
|
|
9
19
|
- `declarations.server.ts` — registers the provider at boot in both apps
|
|
10
20
|
(`serverDeclarations` in `plugins.config.json`).
|
|
11
21
|
- `video-delivery-provider.ts` — the adapter: copies go to R2 through its S3
|
|
@@ -44,8 +54,12 @@ Nothing here runs until all three are on:
|
|
|
44
54
|
- The platform's bucket keeps every video, and the storage counter counts it
|
|
45
55
|
once; a copy's size is never added to it. Making the R2 copy the ONLY copy
|
|
46
56
|
is a later step, and the storage cost model for video depends on that step
|
|
47
|
-
|
|
57
|
+
.
|
|
48
58
|
- Cloudflare receives customer video and, in transit, the viewer's IP address
|
|
49
59
|
and user agent. It must be on `/legal/subprocessors` before the flag is on
|
|
50
60
|
for any customer. The owner decides and publishes that; this plugin
|
|
51
61
|
declares no `subprocessors` entry until the page carries the row.
|
|
62
|
+
|
|
63
|
+
## License
|
|
64
|
+
|
|
65
|
+
Apache-2.0. Source: https://github.com/aglyn/aglyn/tree/main/libs/plugins/video-delivery
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/plugins-video-delivery",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.145",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://aglyn.com",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aglyn/aglyn": "1.0.0-beta.
|
|
28
|
+
"@aglyn/aglyn": "1.0.0-beta.145",
|
|
29
29
|
"@swc/helpers": "0.5.23"
|
|
30
30
|
},
|
|
31
31
|
"sideEffects": false,
|