startRTMPBroadcastWithHttpInfo method
Future<Response>
startRTMPBroadcastWithHttpInfo(
- String type,
- String id,
- StartRTMPBroadcastsRequest startRTMPBroadcastsRequest
Start RTMP broadcasts
Starts RTMP broadcasts for the provided RTMP destinations Required permissions: - StartBroadcasting
Note: This method returns the HTTP Response
.
Parameters:
-
String type (required):
-
String id (required):
-
StartRTMPBroadcastsRequest startRTMPBroadcastsRequest (required):
Implementation
Future<Response> startRTMPBroadcastWithHttpInfo(
String type,
String id,
StartRTMPBroadcastsRequest startRTMPBroadcastsRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/video/call/{type}/{id}/rtmp_broadcasts'
.replaceAll('{type}', type)
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = startRTMPBroadcastsRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}