File tree Expand file tree Collapse file tree 3 files changed +27
-27
lines changed
Expand file tree Collapse file tree 3 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -4712,6 +4712,28 @@ export interface QueueStatsResponse {
47124712 time_to_action_buckets : Record < string , number > ;
47134713}
47144714
4715+ export interface RTMPBroadcastRequest {
4716+ name : string ;
4717+
4718+ stream_url : string ;
4719+
4720+ quality ?:
4721+ | '360p'
4722+ | '480p'
4723+ | '720p'
4724+ | '1080p'
4725+ | '1440p'
4726+ | 'portrait-360x640'
4727+ | 'portrait-480x854'
4728+ | 'portrait-720x1280'
4729+ | 'portrait-1080x1920'
4730+ | 'portrait-1440x2560' ;
4731+
4732+ stream_key ?: string ;
4733+
4734+ layout ?: LayoutSettingsRequest ;
4735+ }
4736+
47154737export interface RTMPIngress {
47164738 address : string ;
47174739}
@@ -5283,25 +5305,7 @@ export interface StartHLSBroadcastingResponse {
52835305}
52845306
52855307export interface StartRTMPBroadcastsRequest {
5286- name : string ;
5287-
5288- stream_url : string ;
5289-
5290- quality ?:
5291- | '360p'
5292- | '480p'
5293- | '720p'
5294- | '1080p'
5295- | '1440p'
5296- | 'portrait-360x640'
5297- | 'portrait-480x854'
5298- | 'portrait-720x1280'
5299- | 'portrait-1080x1920'
5300- | 'portrait-1440x2560' ;
5301-
5302- stream_key ?: string ;
5303-
5304- layout ?: LayoutSettingsRequest ;
5308+ broadcasts : RTMPBroadcastRequest [ ] ;
53055309}
53065310
53075311export interface StartRTMPBroadcastsResponse {
Original file line number Diff line number Diff line change @@ -164,10 +164,10 @@ export class CallApi {
164164 return this . videoApi . listRecordings ( { id : this . id , type : this . type } ) ;
165165 } ;
166166
167- startRTMPBroadcast = (
167+ startRTMPBroadcasts = (
168168 request : StartRTMPBroadcastsRequest ,
169169 ) : Promise < StreamResponse < StartRTMPBroadcastsResponse > > => {
170- return this . videoApi . startRTMPBroadcast ( {
170+ return this . videoApi . startRTMPBroadcasts ( {
171171 id : this . id ,
172172 type : this . type ,
173173 ...request ,
Original file line number Diff line number Diff line change @@ -457,19 +457,15 @@ export class VideoApi extends BaseApi {
457457 return { ...response . body , metadata : response . metadata } ;
458458 } ;
459459
460- startRTMPBroadcast = async (
460+ startRTMPBroadcasts = async (
461461 request : StartRTMPBroadcastsRequest & { type : string ; id : string } ,
462462 ) : Promise < StreamResponse < StartRTMPBroadcastsResponse > > => {
463463 const pathParams = {
464464 type : request ?. type ,
465465 id : request ?. id ,
466466 } ;
467467 const body = {
468- name : request ?. name ,
469- stream_url : request ?. stream_url ,
470- quality : request ?. quality ,
471- stream_key : request ?. stream_key ,
472- layout : request ?. layout ,
468+ broadcasts : request ?. broadcasts ,
473469 } ;
474470
475471 const response = await this . sendRequest <
You can’t perform that action at this time.
0 commit comments