The URL parser encodes the input path to a URL-encoded path even if it is local, so if the path contains unicode characters (such as Japanese Kanji ), the media file cannot be read.
Following workaround works :
FString FURL_RFC3986::Get(bool bIncludeQuery, bool bIncludeFragment) { ... if (Authority.Len() && !IsPathSeparator(Path[0])) { URL += TEXT("/"); } #if 1 //work around if( Scheme.Equals(TEXT("file")) ) { URL += Path; } else { UrlEncode(URL, Path, RequiredEscapeCharsPath); } #else UrlEncode(URL, Path, RequiredEscapeCharsPath); #endif } else if ((Query.Len() && bIncludeQuery) || (Fragment.Len() && bIncludeFragment)) { URL += TEXT("/"); }
Electra player fails video play back with following error :
LogElectraPlayer: Error: [000008A5F3BB4800][000008A5F17244D0] ReportError: "error=8 in MP4 playlist reader: code 1, "Failed to parse mp4 "file://D:/dev/ue500projects/ElectraTest%30C6%30B9%30C8/Content/Movies/MediaExample.mp4" with error 7""
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-164040 in the post.
0 |
Component | Media Framework |
---|---|
Affects Versions | 5.0 |
Target Fix | 5.2 |
Created | Sep 16, 2022 |
---|---|
Resolved | Oct 24, 2022 |
Updated | Nov 27, 2022 |