Questions tagged [tmediaplayer]

12 questions
4
votes
0 answers

Embed AVI as a resource file in Delphi

I have a TForm with a TPanel which is linked to the display properties of a TMediaPlayer. By selecting Project -> Resources and Images I was able to insert my video as a resource file, where filename = abc.avi type = RCDATA identifier =…
3
votes
1 answer

The controls on TMediaplayerControl cannot be displayed

I am using Firemonkey to develop a Win64 video application. I use TMediaPlayer and TMediaPlayerControl to play video files in full-screen mode. I hope that when playing a video, the playback time, progress information, and several playback control…
Leo
  • 1,947
  • 2
  • 20
  • 37
2
votes
1 answer

Display the seconds of TMediaPlayer.Duration and TMediaPlayer.CurrentTime using Delphi for Android

I'm using Delphi 10.3 for developing android mobile application. I'm using the TMediaPlayer to play the mp3 files. I want to display the current time and remaining time of the currently playing media file with the minutes and seconds (mm:ss - ref:…
test12345
  • 367
  • 1
  • 21
1
vote
1 answer

Delphi VCL TMediaPlayer: file path/name length limit

Using Delphi 10.4 Community Edition, VCL, Windows 10 64bit, although the compiled .exe application is 32bit. The VCL's TMediaPlayer seems to have a file path/name length limit of 128 characters. Is this really an internal limitation? Is there any…
Delphist
  • 21
  • 3
1
vote
0 answers

Delphi Firemonkey app on Android doesn't play sound after several play

I having problem to play sound files on android. Please see below my code as it works fine up to nearly 200 times but after that sounds doesn't come up. I receive java.lang.RuntimeException: setDataSource failed: stastus = 0x800000000. And sometimes…
mesutuk
  • 402
  • 3
  • 17
1
vote
0 answers

FMX and TMediaplayer playing several audio files

I am converting a Windows game to FMX 2D. Several audio files for music effects have to play asynchronous. With Windows Mediaplayer and VCL it was running very good. Now with Windows Mediaplayer unexspected C5 errors sometimes occur. Therfore I…
1
vote
0 answers

Delphi TMediaPlayer gives EMCIDeviceError when filename is not specified

I have a TMediaPlayer instance on a form in a Delphi VCL project (32 bit) (Delphi RAD Studio 10.1 Berlin). Working on Windows 10 Professional (64 bit). I would like to assign the filename at runtime (since I can't predict that a user will have any…
1
vote
1 answer

Delphi tmediaplayer don't play mp3 file with "strange" cover image embedded

I have developed a mp3 player with Delphi (XE) using the BASS library. Due to certain reasons, I want to remove the BASS libraries and want to use the TMediaPlayer component in Delphi (also want to "move" the project to Delphi 10 Seattle). Now I…
1
vote
0 answers

How to capture frames fromTMediaPlayer (VCL)

How to capture all frames (in RAM, not to disk) from TMediaPlayer (VCL) without showing the video on screen? I tried this: The MediaPlayer is set to show the movie in a panel: MediaPlayer1.Display := pnlFakeScreen; pnlFakeScreen.Visible:= true;…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
0
votes
0 answers

Delphi how to control volume using trackbar

I am using TMediaPlayer to play music and videos which works fine, but I want to control the volume using a trackbar that can slide from low to medium to high. Can someone please help me on how to code it or is there any other method to do it?…
B.Anderson
  • 21
  • 6
0
votes
0 answers

How can add windows media player to fmx delphi?

I cannot add windows media player to my fmx project. I have only tmediaplayer but it does not support most extensions. Is there any way to add it from activex component? Thank you.
Fly Rose
  • 11
  • 4
-1
votes
1 answer

Delphi 2007 - Using TMediaPlayer for non-media applications

I needed a control with Run, Stop and Step buttons and thought I would put a TMediaPlayer to work. It has the buttons I need and I can control the enables and use of colour. If I drop one onto a form and compile and run - the buttons are all…
rossmcm
  • 5,493
  • 10
  • 55
  • 118