Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/FireMonkey/Components    [ Add a report in this area ]  
Report #:  128596   Status: Resolved
[Android] Error in TMediaPlayer when video play cyclically
Project:  Delphi Build #:  21.0.17017.3725
Version:    21.0 Submitted By:   Andrey Kozlov
Report Type:  Basic functionality failure Date Reported:  10/29/2014 12:37:35 AM
Severity:    Serious / Highly visible problem Last Updated: 3/1/2015 4:10:51 PM
Platform:    Google mobile OS Internal Tracking #:   56130
Resolution: Checked In (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Unable to get the mediaplayer to play various video cyclically. When you attempt to play the video the first time - all good, but when you try to play another video - an error " failed.:status=0x1"
Steps to Reproduce:
1. New Multi-Device App for Android
2. Add on form TMediaPlayer
3. Add on form TTimer (timer1.Enabled:=true)
4. Run Android App

procedure TForm1.Timer1Timer(Sender: TObject);

  if MediaPlayer1.State = TMediaState.Playing then


  if MediaPlayer1.Tag=0 then
    MediaPlayer1.FileName := '/mnt/sdcard/TabletApp/0.mp4';
    MediaPlayer1.Tag := 1;
    MediaPlayer1.Tag := 0;
    MediaPlayer1.FileName := '/mnt/sdcard/TabletApp/1.mp4';


Andrey Kozlov at 10/29/2014 12:50:00 AM -
Is there a way to force the player to play multiple video cyclically without stops and error?

Tomohiro Takahashi at 10/29/2014 5:57:48 PM -
>     MediaPlayer1.FileName := '/mnt/sdcard/TabletApp/0.mp4';
Do you have any sample video files?

and, what Android(OS version) do you use, for example Nexus 5(Android 4.4.4) etc...?

Andrey Kozlov at 10/29/2014 8:18:02 PM -

Andrey Kozlov at 10/29/2014 8:13:08 PM -
No problem. I attach the video.

Small clarification: the interval from the timer should be 5000, otherwise the player will not have time to start the video. (In my example Interval=1000 - my mistake)

To see the error does not need to wait for the end of the video, just press the back button and it will start to play the following.

I use Nexus4 (Android 4.4.4), but on other device it's not work. This is a known problem on the Internet.

Please write if it will reproduce the error?

Andrey Kozlov at 12/12/2014 9:50:36 PM -
have any progress?

Server Response from: ETNACODE01