enumerateDisplays method

Future<List<MediaDisplayDetails>> enumerateDisplays()

Returns the currently available MediaDisplayDetails.

Implementation

Future<List<MediaDisplayDetails>> enumerateDisplays() async {
  if (!PlatformUtils.isDesktop || PlatformUtils.isWeb) {
    return [];
  }

  return (await (await _mediaManager)?.enumerateDisplays() ?? [])
      .where((e) => e.deviceId().isNotEmpty)
      .toList();
}