Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update documentation #344

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 40 additions & 10 deletions src/resources/video/live-streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,17 @@ export interface SimulcastTarget {
status: 'idle' | 'starting' | 'broadcasting' | 'errored';

/**
* RTMP hostname including the application name for the third party live streaming
* service.
* The RTMP(s) or SRT endpoint for a simulcast destination.
*
* - For RTMP(s) destinations, this should include the application name for the
* third party live streaming service, for example:
* `rtmp://live.example.com/app`.
* - For SRT destinations, this should be a fully formed SRT connection string, for
* example:
* `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`.
*
* Note: SRT simulcast targets can only be used when an source is connected over
* SRT.
*/
url: string;

Expand All @@ -554,8 +563,9 @@ export interface SimulcastTarget {
passthrough?: string;

/**
* Stream Key represents an stream identifier for the third party live streaming
* service to simulcast the parent live stream too.
* Stream Key represents a stream identifier on the third party live streaming
* service to send the parent live stream to. Only used for RTMP(s) simulcast
* destinations.
*/
stream_key?: string;
}
Expand Down Expand Up @@ -723,8 +733,17 @@ export namespace LiveStreamCreateParams {

export interface SimulcastTarget {
/**
* RTMP hostname including application name for the third party live streaming
* service. Example: `rtmp://live.example.com/app`.
* The RTMP(s) or SRT endpoint for a simulcast destination.
*
* - For RTMP(s) destinations, this should include the application name for the
* third party live streaming service, for example:
* `rtmp://live.example.com/app`.
* - For SRT destinations, this should be a fully formed SRT connection string, for
* example:
* `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`.
*
* Note: SRT simulcast targets can only be used when an source is connected over
* SRT.
*/
url: string;

Expand All @@ -735,7 +754,8 @@ export namespace LiveStreamCreateParams {

/**
* Stream Key represents a stream identifier on the third party live streaming
* service to send the parent live stream to.
* service to send the parent live stream to. Only used for RTMP(s) simulcast
* destinations.
*/
stream_key?: string;
}
Expand Down Expand Up @@ -825,8 +845,17 @@ export interface LiveStreamCreatePlaybackIDParams {

export interface LiveStreamCreateSimulcastTargetParams {
/**
* RTMP hostname including application name for the third party live streaming
* service. Example: `rtmp://live.example.com/app`.
* The RTMP(s) or SRT endpoint for a simulcast destination.
*
* - For RTMP(s) destinations, this should include the application name for the
* third party live streaming service, for example:
* `rtmp://live.example.com/app`.
* - For SRT destinations, this should be a fully formed SRT connection string, for
* example:
* `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`.
*
* Note: SRT simulcast targets can only be used when an source is connected over
* SRT.
*/
url: string;

Expand All @@ -837,7 +866,8 @@ export interface LiveStreamCreateSimulcastTargetParams {

/**
* Stream Key represents a stream identifier on the third party live streaming
* service to send the parent live stream to.
* service to send the parent live stream to. Only used for RTMP(s) simulcast
* destinations.
*/
stream_key?: string;
}
Expand Down