Files
UnrealEngine/Engine/Source/Runtime/MediaAssets/Private/Assets/StreamMediaSource.cpp
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -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