You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
61 lines
1.6 KiB
C++
61 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreTypes.h"
|
|
#include "Containers/Map.h"
|
|
#include "Containers/UnrealString.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "UObject/Object.h"
|
|
#include "MediaSource.h"
|
|
|
|
#include "BaseMediaSource.generated.h"
|
|
|
|
|
|
/**
|
|
* Base class for concrete media sources.
|
|
*/
|
|
UCLASS(Abstract, BlueprintType, hidecategories=(Object))
|
|
class MEDIAASSETS_API UBaseMediaSource
|
|
: public UMediaSource
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
#if WITH_EDITORONLY_DATA
|
|
|
|
/** Override native media player plug-ins per platform (Empty = find one automatically). */
|
|
UPROPERTY(transient, BlueprintReadWrite, EditAnywhere, Category=Platforms, Meta=(DisplayName="Player Overrides"))
|
|
TMap<FString, FName> PlatformPlayerNames;
|
|
|
|
private:
|
|
/** Platform to player plugin GUID mappings that could not be resolved on load (e.g. missing platform support) */
|
|
TMap<FGuid, FGuid> BlindPlatformGuidPlayerNames;
|
|
|
|
#endif
|
|
|
|
public:
|
|
|
|
//~ UObject interface
|
|
PRAGMA_DISABLE_DEPRECATION_WARNINGS // Suppress compiler warning on override of deprecated function
|
|
UE_DEPRECATED(5.0, "Use version that takes FObjectPreSaveContext instead.")
|
|
virtual void PreSave(const class ITargetPlatform* TargetPlatform);
|
|
PRAGMA_ENABLE_DEPRECATION_WARNINGS
|
|
virtual void PreSave(FObjectPreSaveContext ObjectSaveContext);
|
|
virtual void GetAssetRegistryTags(TArray<FAssetRegistryTag>& OutTags) const override;
|
|
virtual void Serialize(FArchive& Ar) override;
|
|
|
|
public:
|
|
|
|
//~ IMediaOptions interface
|
|
|
|
virtual FName GetDesiredPlayerName() const override;
|
|
|
|
private:
|
|
|
|
/** Name of the desired native media player (Empty = find one automatically). */
|
|
UPROPERTY(transient)
|
|
FName PlayerName;
|
|
};
|