@ignitify-integrations/stream 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/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,8 +43,8 @@ The result is `{ success: true, stage: 'streamed', cancelled, watch, streamed_s,
|
|
|
43
43
|
## Grow your task
|
|
44
44
|
|
|
45
45
|
- **A radio-style stream.** Use `profile: 'audio'`.
|
|
46
|
-
- **Give viewers time to join.** Use `startDelaySec`, and send the link first: `watchUrl(ctx)` returns it before the stream starts (for example,
|
|
47
|
-
- **Keep the recording.** Use `after: 'stop'`; the playlist and segments stay in `$HOME/hls` until the next stream starts. To return one playable link, upload each segment with [`s3-storage`](
|
|
46
|
+
- **Give viewers time to join.** Use `startDelaySec`, and send the link first: `watchUrl(ctx)` returns it before the stream starts (for example, in a chat message).
|
|
47
|
+
- **Keep the recording.** Use `after: 'stop'`; the playlist and segments stay in `$HOME/hls` until the next stream starts. To return one playable link, upload each segment with [`s3-storage`](https://github.com/ignitify-dev/ignitify-integrations/tree/master/integrations/s3-storage)'s `put` under one prefix, keeping its file name (`key: 'rec/<file>'`), then the playlist with `putAndLink` and the same prefix, and return that link. The player fetches the segments by plain URL, so the prefix must allow public read. With a private bucket, return one link per file.
|
|
48
48
|
- **Your own encoding.** Change bitrate, codec or filters with `ffmpegArgs`; the package still runs the server and the progress.
|
|
49
49
|
- **React to progress.** Use `onProgress`, for example to stop early on a condition with your own `AbortController` and `signal`.
|
|
50
50
|
|
package/package.json
CHANGED