unreal.MediaLibrary

class unreal.MediaLibrary(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Blueprint library for Media related functions.

C++ Source:

  • Module: MediaAssets

  • File: MediaBlueprintFunctionLibrary.h

classmethod enumerate_audio_capture_devices(filter=-1) Array[MediaCaptureDevice]

Enumerate available audio capture devices.

To filter for a specific subset of devices, use the MakeBitmask node with EMediaAudioCaptureDeviceFilter as the Bitmask Enum.

Parameters:

filter (int32) – The types of capture devices to return (-1 = all).

Returns:

out_devices (Array[MediaCaptureDevice]): Will contain the available capture devices.

Return type:

Array[MediaCaptureDevice]

classmethod enumerate_video_capture_devices(filter=-1) Array[MediaCaptureDevice]

Enumerate available audio capture devices.

To filter for a specific subset of devices, use the MakeBitmask node with EMediaVideoCaptureDeviceFilter as the Bitmask Enum.

Parameters:

filter (int32) – The types of capture devices to return (-1 = all).

Returns:

out_devices (Array[MediaCaptureDevice]): Will contain the available capture devices.

Return type:

Array[MediaCaptureDevice]

classmethod enumerate_webcam_capture_devices(filter=-1) Array[MediaCaptureDevice]

Enumerate available audio capture devices.

To filter for a specific subset of devices, use the MakeBitmask node with EMediaWebcamCaptureDeviceFilter as the Bitmask Enum.

Parameters:

filter (int32) – The types of capture devices to return (-1 = all).

Returns:

out_devices (Array[MediaCaptureDevice]): Will contain the available capture devices.

Return type:

Array[MediaCaptureDevice]