-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Code structure for docs and artisan
- Loading branch information
Showing
56 changed files
with
468 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
next: | ||
text: "Features: Stitcher" | ||
link: "/features/stitcher" | ||
--- | ||
|
||
# Package | ||
|
||
Video packaging refers to the process of preparing a video file for delivery and consumption by users across different devices and platforms. | ||
|
||
- The video is split into smaller segments or chunks, usually a few seconds long, to facilitate adaptive bitrate streaming (ABR), which adjusts quality based on network conditions. | ||
|
||
- A manifest file (m3u8 for HLS) is generated. It contains metadata about the available segments, bitrates, and resolutions, helping the player know what content to request based on the user’s network conditions. | ||
|
||
## API | ||
|
||
The package job will prepare an HLS playlist for your asset. Before you package, check the [transcode](/features/transcode) instructions. | ||
|
||
::: code-group | ||
|
||
```sh [shell] | ||
curl -X POST https://api.domain.com/package | ||
-H "Content-Type: application/json" | ||
-d "{body}" | ||
``` | ||
|
||
::: | ||
|
||
A minimal body payload may look like this: | ||
|
||
```json | ||
{ | ||
"assetId": "f7e89553-0d3b-4982-ba7b-3ce5499ac689" | ||
} | ||
``` | ||
|
||
Your asset is now available for playback at: | ||
|
||
``` | ||
{S3_PUBLIC_URL}/package/f7e89553-0d3b-4982-ba7b-3ce5499ac689/hls/master.m3u8 | ||
``` | ||
|
||
::: tip | ||
Each package result is uploaded to /package/{assetId}/hls/master.m3u8 | ||
::: | ||
|
||
## Example | ||
|
||
We started by [transcoding](/features/transcode#example) two input files (content.mp4 and bumper.mp4) to multiple streams. We'll now package these their HLS master and media playlists files. | ||
|
||
``` | ||
input = 67b070fd-5db6-4022-a568-652abdbfac9c | ||
output = https://my.cdn/package/67b070fd-5db6-4022-a568-652abdbfac9c/hls/master.m3u8 | ||
``` | ||
|
||
``` | ||
input = 13b1d432-ec8e-4516-9904-df1aa90db803 | ||
output = https://my.cdn/package/13b1d432-ec8e-4516-9904-df1aa90db803/hls/master.m3u8 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
packages/docs/features/dashboard.md → docs/frontend/dashboard.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
--- | ||
next: false | ||
--- | ||
|
||
# Dashboard | ||
|
||
The dashboard is a client application that visualizes running jobs, its statuses and has auto-generated API documentation based on the `spec.json` API endpoint. The API documentation is built with [Scalar](https://github.com/scalar/scalar). It's a React app and does not require separate a backend to function. | ||
|
||
Typically, you'd want to build the dashboard once and upload it to `S3` to serve it as a static site. The dashboard is an SPA and requires no separate server / backend to function. | ||
|
||
You can use the API docs to `Test Request`. | ||
|
||
<img class="image" src="../assets/dashboard-api.png" alt="Dashboard API" /> | ||
<video class="video-frame" src="/dashboard-jobs.mp4" controls></video> | ||
|
||
Each job, or child job, has detailed logs. | ||
You can use the API docs to interact with the API, as seen here: | ||
|
||
<img class="image" src="../assets/dashboard-job.png" alt="Dashboard job" /> | ||
<video class="video-frame" src="/dashboard-transcode.mp4" controls></video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
next: | ||
text: "Frontend: Dashboard" | ||
link: "/frontend/dashboard" | ||
--- | ||
|
||
# Player | ||
|
||
Coming soon! | ||
|
||
Meanwhile, we've got a couple of player video's on the [stitcher](/features/stitcher) page. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.