Skip to content

Commit

Permalink
Add list broadcasts and regen response payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Ribeiro authored and Bruno Ribeiro committed May 30, 2024
1 parent bd74d11 commit cc571ac
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 87 deletions.
7 changes: 7 additions & 0 deletions packages/client/src/Call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
GoLiveRequest,
GoLiveResponse,
ListRecordingsResponse,
ListRTMPBroadcastsResponse,
ListTranscriptionsResponse,
MuteUsersRequest,
MuteUsersResponse,
Expand Down Expand Up @@ -653,6 +654,12 @@ export class Call {
);
};

listRTMPBroadcasts = async () => {
return this.streamClient.get<ListRTMPBroadcastsResponse>(
`${this.streamClientBasePath}/list_rtmp_broadcasts`,
);
};

/**
* Creates a call
*
Expand Down
168 changes: 81 additions & 87 deletions packages/client/src/gen/coordinator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -911,91 +911,6 @@ export interface CallParticipantResponse {
*/
user_session_id: string;
}
/**
*
* @export
* @interface CallRTMPBroadcast
*/
export interface CallRTMPBroadcast {
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
CallID: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
CreatedAt: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
DeletedAt?: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
EndedAt?: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
Error: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
ErrorMessage: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
Name: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
Password: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
StartedAt?: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
Status: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
StreamKey: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
StreamURL: string;
/**
*
* @type {string}
* @memberof CallRTMPBroadcast
*/
Username: string;
}
/**
* This event is sent when a reaction is sent in a call, clients should use this to show the reaction in the call screen
* @export
Expand Down Expand Up @@ -3822,10 +3737,10 @@ export interface ListDevicesResponse {
export interface ListRTMPBroadcastsResponse {
/**
*
* @type {Array<CallRTMPBroadcast>}
* @type {Array<RTMPBroadcast>}
* @memberof ListRTMPBroadcastsResponse
*/
broadcasts: Array<CallRTMPBroadcast>;
broadcasts: Array<RTMPBroadcast>;
/**
* Duration of the request in human-readable format
* @type {string}
Expand Down Expand Up @@ -4861,6 +4776,85 @@ export interface QueryCallsResponse {
*/
prev?: string;
}
/**
*
* @export
* @interface RTMPBroadcast
*/
export interface RTMPBroadcast {
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
created_at: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
deleted_at?: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
ended_at?: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
error?: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
error_message?: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
name: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
password: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
started_at?: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
status: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
stream_key: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
stream_url: string;
/**
*
* @type {string}
* @memberof RTMPBroadcast
*/
username: string;
}
/**
* RTMP input settings
* @export
Expand Down

0 comments on commit cc571ac

Please sign in to comment.