Download

Using a Media Player to play Audio in an Editor Utility Widget

I’m trying to play audio from a “Streamable Media Source” Asset via a media player in an editor utility widget. However it seems the only exposed method is to use a “MediaSoundComponent”, which normally would be fine. However my use case requires me to use an editor widget while also being an editor utiltity widget so I can’t just cast to an actor that has the media sound component on it.

I’ve been trying to figure out how the media player UI works in the editor but I haven’t been able to figure out how it creates a mediaplayer context for the editor. What’s the best way to hook into that, I’m fine with using C++ I just need to know how to do it :slight_smile: