Skip to content

Commit c0c903d

Browse files
feat(api): update documentation (#344)
1 parent 2bf6831 commit c0c903d

File tree

1 file changed

+40
-10
lines changed

1 file changed

+40
-10
lines changed

src/resources/video/live-streams.ts

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,17 @@ export interface SimulcastTarget {
528528
status: 'idle' | 'starting' | 'broadcasting' | 'errored';
529529

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

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

556565
/**
557-
* Stream Key represents an stream identifier for the third party live streaming
558-
* service to simulcast the parent live stream too.
566+
* Stream Key represents a stream identifier on the third party live streaming
567+
* service to send the parent live stream to. Only used for RTMP(s) simulcast
568+
* destinations.
559569
*/
560570
stream_key?: string;
561571
}
@@ -723,8 +733,17 @@ export namespace LiveStreamCreateParams {
723733

724734
export interface SimulcastTarget {
725735
/**
726-
* RTMP hostname including application name for the third party live streaming
727-
* service. Example: `rtmp://live.example.com/app`.
736+
* The RTMP(s) or SRT endpoint for a simulcast destination.
737+
*
738+
* - For RTMP(s) destinations, this should include the application name for the
739+
* third party live streaming service, for example:
740+
* `rtmp://live.example.com/app`.
741+
* - For SRT destinations, this should be a fully formed SRT connection string, for
742+
* example:
743+
* `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`.
744+
*
745+
* Note: SRT simulcast targets can only be used when an source is connected over
746+
* SRT.
728747
*/
729748
url: string;
730749

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

736755
/**
737756
* Stream Key represents a stream identifier on the third party live streaming
738-
* service to send the parent live stream to.
757+
* service to send the parent live stream to. Only used for RTMP(s) simulcast
758+
* destinations.
739759
*/
740760
stream_key?: string;
741761
}
@@ -825,8 +845,17 @@ export interface LiveStreamCreatePlaybackIDParams {
825845

826846
export interface LiveStreamCreateSimulcastTargetParams {
827847
/**
828-
* RTMP hostname including application name for the third party live streaming
829-
* service. Example: `rtmp://live.example.com/app`.
848+
* The RTMP(s) or SRT endpoint for a simulcast destination.
849+
*
850+
* - For RTMP(s) destinations, this should include the application name for the
851+
* third party live streaming service, for example:
852+
* `rtmp://live.example.com/app`.
853+
* - For SRT destinations, this should be a fully formed SRT connection string, for
854+
* example:
855+
* `srt://srt-live.example.com:1234?streamid={stream_key}&passphrase={srt_passphrase}`.
856+
*
857+
* Note: SRT simulcast targets can only be used when an source is connected over
858+
* SRT.
830859
*/
831860
url: string;
832861

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

838867
/**
839868
* Stream Key represents a stream identifier on the third party live streaming
840-
* service to send the parent live stream to.
869+
* service to send the parent live stream to. Only used for RTMP(s) simulcast
870+
* destinations.
841871
*/
842872
stream_key?: string;
843873
}

0 commit comments

Comments
 (0)