Files
UnrealEngineUWP/Engine/Source/Runtime/MediaAssets/Private/Assets/StreamMediaSource.cpp
Tony Wong be0251029b MediaAssets: Added thumbnails for media sources.
#JIRA: UE-145827
#preflight 636555a3de2c4dbb5dcc7899
#review-22587318 @thomas.engel
#rb thomas.engel

[CL 23013126 by Tony Wong in ue5-main branch]
2022-11-07 12:38:37 -05:00

35 lines
718 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "StreamMediaSource.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(StreamMediaSource)
/* UMediaSource overrides
*****************************************************************************/
FString UStreamMediaSource::GetUrl() const
{
return StreamUrl;
}
bool UStreamMediaSource::Validate() const
{
return StreamUrl.Contains(TEXT("://"));
}
#if WITH_EDITOR
void UStreamMediaSource::PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
if (PropertyChangedEvent.GetPropertyName() == GET_MEMBER_NAME_CHECKED(UStreamMediaSource, StreamUrl))
{
GenerateThumbnail();
}
}
#endif