Jump to content
Linuxuser1234

Media player causing weird issue

Recommended Posts

When i use this code 

MediaPlayer1.FileName := 'https://radio.weatherusa.net/NWR/KEC61_2.mp3';
MediaPlayer1.Play; 

my app wont close after i close out of my weather radio popup window what is causing this issue  

Share this post


Link to post
4 hours ago, Linuxuser1234 said:

also this MediaPlayer1.FileName := 'https://radio.weatherusa.net/NWR/KEC61_2.mp3.myext'; shows unsupported media type 

To use a custom file extension like that, you have to create and register a custom TMedia class to handle it.  The StackOverflow link I gave you earlier explained that.

Edited by Remy Lebeau

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×