Is it possible to play MP3 files using the VideoDisplay or VideoPlayer components?
Thank you.
Is it possible to play MP3 files using the VideoDisplay or VideoPlayer components?
Thank you.
Actually, yes they can play MP3 files. I've just got it working by simply passing the path of the MP3 to a VideoPlayer component instance.
Although I wouldn't recommend using a video component to solely play audio files, I agree that it's sometimes appropriate to play a sound file in a video display component. In my case I have a mixed list of audio and video media items and want a unified preview area and playback/scrub controls.
Why would you use a video component to play a sound file? Either way, you should probably google before posting here. This is how you do it: