How to play an OGG file at runtime without having to import it?

This works perfectly! Didn’t know the media player could play sound files! Even works for URLs!

To play local files that the user can choose at runtime, use Open File. Open Url works at runtime, too. You’ll probably also want to bind On Media Opened & On Media Open Failed so you know when the media is opened.

Though, I tested it on a few ogg files, and it didn’t work (it did for mp3 & wav). I’m on 4.20. If you can’t get it to work for you, Rama’s plugin and RuntimeAudioImporter can play ogg.

2 Likes