Jump to content
Sign in to follow this  
azrael_11

TMediaPlayer and TMediaPlayerControlFMX

Recommended Posts

Hello ...
Try to add video files with TMediaPlayer and TMediaPlayerControl and always get "unsupported media file" for any video file type like *.avi, *.wmv or *.mp4.

I install the latest K-Full media codecs and the problem remains the same.

Anyone has some experience about TMediaPlayer?

 

P.S. Even the MediaPlayerHD example provided from delphi not working.

Thank you..

Share this post


Link to post

what kind of video file can supported,  depends on system, not by FMX.  Cause FMX just use default mediaplayer of system.

Share this post


Link to post
20 hours ago, pcplayer99 said:

what kind of video file can supported,  depends on system, not by FMX.  Cause FMX just use default mediaplayer of system.

That i know, but mediaplayer from windows plays just fine.

So something else create the problem.

 

Share this post


Link to post
Posted (edited)

Be aware that there is a bug in the TMediaPlayer component that reports an "unsupported media file" error when it should have reported a "file not found" error. So first check if the file you are pointing to actually exists.

Edited by M.Joos
  • Like 1

Share this post


Link to post
On 3/4/2019 at 10:25 AM, M.Joos said:

Be aware that there is a bug in the TMediaPlayer component that reports an "unsupported media file" error when it should have reported a "file not found" error. So first check if the file you are pointing to actually exists.

No i double check that the .mp3 files plays just fine.

Thank you.

Share this post


Link to post
9 hours ago, pcplayer99 said:

In Windows,I play video by using Dspack to write my own mediaplayer.

Is DsPack support fmx native o have a popup window when play a video file?

 

Share this post


Link to post
17 hours ago, azrael_11 said:

Is DsPack support fmx native o have a popup window when play a video file?

 

Dspack is a set of VCL control, so, you can use it to write a mediaplayer you self in VCL mode. And then, you can embed a VCL form into your FMX project.

Dspack wrapped DirectShow9 as pascal code and you can use it in Delphi. The MediaPlayer in FMX under Windows is Windows mediaplayer that using DirectShow9 and wrapped by pascal. So, essentially these two is wrapped the same Windows component.

 

By using Dspack, you have more degree of freedom, using TMediaPlayer by FMX, you have extremely few public method and property to use.

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
Sign in to follow this  

×