setStreamServiceSettings method

Future<void> setStreamServiceSettings({
  1. required String streamServiceType,
  2. required Map<String, dynamic> streamServiceSettings,
})

Sets the current stream service settings (stream destination).

Note: Simple RTMP settings can be set with type rtmp_custom and the settings fields server and key.

  • Complexity Rating: 4/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0

Implementation

Future<void> setStreamServiceSettings({
  required String streamServiceType,
  required Map<String, dynamic> streamServiceSettings,
}) async =>
    await obsWebSocket.sendRequest(Request(
      'SetStreamServiceSettings',
      requestData: {
        'streamServiceType': streamServiceType,
        'streamServiceSettings': streamServiceSettings,
      },
    ));