groupList method

Future<List<SceneItemDetail>> groupList(
  1. String sceneName
)

Basically GetSceneItemList, but for groups.

Using groups at all in OBS is discouraged, as they are very broken under the hood.

Groups only

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

Implementation

Future<List<SceneItemDetail>> groupList(String sceneName) async {
  final response = await obsWebSocket.sendRequest(Request(
    'GetGroupSceneItemList',
    requestData: {'sceneName': sceneName},
  ));

  final sceneItemListResponse =
      SceneItemListResponse.fromJson(response!.responseData!);

  return sceneItemListResponse.sceneItems;
}