@portalshq/capability-video-delivery 0.1.0 → 0.1.1
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/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/live-session.d.ts +15 -0
- package/dist/live-session.js +8 -0
- package/dist/vod-session.d.ts +8 -0
- package/dist/vod-session.js +5 -0
- package/package.json +15 -2
- package/src/index.ts +0 -2
- package/src/live-session.ts +0 -20
- package/src/vod-session.ts +0 -11
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live broadcast delivery. Origin -> Akamai edge -> audience. This package
|
|
3
|
+
* intentionally exposes only session lifecycle + manifest URL — codec,
|
|
4
|
+
* bitrate ladder, and origin packaging are implementation details that can
|
|
5
|
+
* change without breaking any channel that consumes this capability.
|
|
6
|
+
*/
|
|
7
|
+
export interface LiveSessionHandle {
|
|
8
|
+
sessionId: string;
|
|
9
|
+
ingestUrl: string;
|
|
10
|
+
playbackManifestUrl: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class LiveDelivery {
|
|
13
|
+
start(sessionId: string): Promise<LiveSessionHandle>;
|
|
14
|
+
stop(sessionId: string): Promise<void>;
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portalshq/capability-video-delivery",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/portalshq/portals-cloud"
|
|
7
7
|
},
|
|
8
8
|
"description": "Live and VOD session delivery, abstracted behind one interface. Edge delivery target: Akamai CDN.",
|
|
9
|
-
"
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc -p tsconfig.json",
|
|
17
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
18
|
+
},
|
|
10
19
|
"dependencies": {
|
|
11
20
|
"@portalshq/contracts": "*"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"typescript": "^5.5.0",
|
|
24
|
+
"@types/node": "^20.0.0"
|
|
12
25
|
}
|
|
13
26
|
}
|
package/src/index.ts
DELETED
package/src/live-session.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Live broadcast delivery. Origin -> Akamai edge -> audience. This package
|
|
3
|
-
* intentionally exposes only session lifecycle + manifest URL — codec,
|
|
4
|
-
* bitrate ladder, and origin packaging are implementation details that can
|
|
5
|
-
* change without breaking any channel that consumes this capability.
|
|
6
|
-
*/
|
|
7
|
-
export interface LiveSessionHandle {
|
|
8
|
-
sessionId: string;
|
|
9
|
-
ingestUrl: string; // where the broadcaster pushes
|
|
10
|
-
playbackManifestUrl: string; // HLS/LL-HLS manifest served from Akamai edge
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export class LiveDelivery {
|
|
14
|
-
async start(sessionId: string): Promise<LiveSessionHandle> {
|
|
15
|
-
throw new Error("LiveDelivery.start: not yet wired to origin/Akamai config");
|
|
16
|
-
}
|
|
17
|
-
async stop(sessionId: string): Promise<void> {
|
|
18
|
-
throw new Error("LiveDelivery.stop: not yet implemented");
|
|
19
|
-
}
|
|
20
|
-
}
|
package/src/vod-session.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface VodAsset {
|
|
2
|
-
assetId: string;
|
|
3
|
-
playbackManifestUrl: string;
|
|
4
|
-
durationSeconds: number;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export class VodDelivery {
|
|
8
|
-
async getAsset(assetId: string): Promise<VodAsset> {
|
|
9
|
-
throw new Error("VodDelivery.getAsset: not yet wired to object storage / Akamai edge");
|
|
10
|
-
}
|
|
11
|
-
}
|