Is there a way to set the Media Framework programmatically within the UMediaPlayer
or UMediaSource
?
Right now I can create them:
UFileMediaSource* MediaSource = NewObject<UFileMediaSource>();
MediaSource->SetFilePath(FilePath);
MediaSource->SetMediaOptionBool("PlayOnOpen", false);
UMediaPlayer* MediaPlayer = NewObject<UMediaPlayer>();
MediaPlayer->OpenSource(MediaSource);
MediaPlayer->SetMediaOptions(MediaSource);
but I’d like to be able to hard-code whether the asset uses WMF, Electra, etc.
So far the only place I can find it is in the actual media file itself in the asset editor