getCurrentPreview method

Future<String> getCurrentPreview()

Gets the current preview scene.

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

Implementation

Future<String> getCurrentPreview() async {
  final response =
      await obsWebSocket.sendRequest(Request('GetCurrentPreviewScene'));

  return StringResponse.fromJson(response!.responseData!).value;
}