setCurrentPreview method

Future<void> setCurrentPreview(
  1. String sceneName
)

Sets the current preview scene.

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

Implementation

Future<void> setCurrentPreview(String sceneName) async =>
    await obsWebSocket.sendRequest(Request(
      'SetCurrentPreviewScene',
      requestData: {'sceneName': sceneName},
    ));