/
UpdateVideoInput (Unreal Engine)
UpdateVideoInput (Unreal Engine)
- Declaration
static void UpdateVideoInput(FCavrnusVideoInputDevice Device);
- Description
Sets which camera the user wishes to use. Note that the FCavrnusVideoInputDevice
provided to this function can only be acquired by calling FetchVideoInputs to search for available cameras.
- Blueprint Sample
Sample is taken from WBP_AudioVideoWidget.uasset in the Plugin. VideoInputDeviceResponse is a Blueprint array of FCavrnusVideoInputDevice
instances that was provided earlier via Fetch Video Inputs.
WBP_AudioVideoWidget
- Code Sample
#include "CavrnusFunctionLibrary.h"
#include "Types/CavrnusVideoInputDevice.h"
void UClassName::OnVideoInputDeviceSelected(const FString& DeviceId)
{
// Member is TMap<FString, FCavrnusVideoInputDevice> VideoInputDeviceList
FCavrnusVideoInputDevice* InputDevice = VideoInputDeviceList.Find(DeviceId);
if (InputDevice)
{
UCavrnusFunctionLibrary::UpdateVideoInput(*InputDevice);
}
else
{
UE_LOG(LogTemp, Warning, TEXT("Selected Video Input Device not found: %s"), *DeviceId);
}
}
, multiple selections available,
Related content
FetchVideoInputs (Unreal Engine)
FetchVideoInputs (Unreal Engine)
More like this
UpdateAudioInput (Unreal Engine)
UpdateAudioInput (Unreal Engine)
More like this
UpdateVideoInput (Unity)
UpdateVideoInput (Unity)
More like this
FCavrnusVideoInputDevice (Unreal Engine)
FCavrnusVideoInputDevice (Unreal Engine)
More like this
UpdateAudioOutput (Unreal Engine)
UpdateAudioOutput (Unreal Engine)
More like this
FetchAudioInputs (Unreal Engine)
FetchAudioInputs (Unreal Engine)
More like this