You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#JIRA: UE-145827 #preflight 636555a3de2c4dbb5dcc7899 #review-22587318 @thomas.engel #rb thomas.engel [CL 23013126 by Tony Wong in ue5-main branch]
35 lines
718 B
C++
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
|