Here is a work around :
#include "binkplugin_ue4.h" UObject* UBinkMediaPlayerFactory::FactoryCreateBinary( UClass* Class, UObject* InParent, FName Name, EObjectFlags Flags, UObject* Context, const TCHAR* Type, const uint8*& Buffer, const uint8* BufferEnd, FFeedbackContext* Warn ) { UBinkMediaPlayer* MediaPlayer = NewObject<UBinkMediaPlayer>(InParent, Class, Name, Flags); #if 1 // This workaround is based on FBinkMediaPlayerCustomization::HandleUrlPickerPathPicked. if (CurrentFilename.IsEmpty() || CurrentFilename.StartsWith(TEXT("./")) || CurrentFilename.Contains(TEXT("://"))) { MediaPlayer->OpenUrl(CurrentFilename); } else { FString FullUrl = FPaths::ConvertRelativePathToFull(CurrentFilename); const FString FullGameContentDir = FPaths::ConvertRelativePathToFull(BINKCONTENTPATH); if (FullUrl.StartsWith(FullGameContentDir)) { FPaths::MakePathRelativeTo(FullUrl, *FullGameContentDir); FullUrl = FString(TEXT("./")) + FullUrl; } MediaPlayer->OpenUrl(FullUrl); } #else // original code MediaPlayer->OpenUrl(CurrentFilename); #endif return MediaPlayer; }
result:
Since the path is saved as full absolute path, File or Url property is marked as warning.
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
How do I set a material as a post-processing material?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
What is the difference between Camera and CineCamera?
How to delete some elements correctly when deleting an array loop?
What does the number (2152,1-34) in glsl error mean?
How does TArray loop correctly remove elements in blueprints?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-215814 in the post.
0 |
Component | RAD - Bink Video |
---|---|
Affects Versions | 5.4 |
Target Fix | 5.6 |
Created | May 27, 2024 |
---|---|
Resolved | Jun 7, 2024 |
Updated | Oct 25, 2024 |