According to bug #RSS-978, TMediaPlayer
on Android can create more than 1 platform player, but will leak them. So perhaps you are seeing a leaked player not being hidden.
The bug report offers the following workaround for the leaking. Maybe it will fix the hiding issue, too.
The reason for the leak is in "source\fmx\FMX.Media.Android.pas". There FMX Delphi creates the player twice for each video "TJMediaPlayer.JavaClass.init". Once in "procedure TAndroidVideo.RetreiveVideoSize" to just get the size of the video picture. And the second time in "constructor TAndroidMedia.Create", then to play the video file already .
The first time they forgot to call "MediaPlayer.release" in "RetreiveVideoSize". Because of which the resources of the media component created in the operating system are not released. On some Android devices the application crashes.
Solution: to patch "FMX.Media.Android.pas" by yourself. In "procedure TAndroidVideo.RetreiveVideoSize" add a call to "MediaPlayer.release".
procedure TAndroidVideo.RetreiveVideoSize;
var
MediaPlayer: JMediaPlayer;
begin
MediaPlayer := TJMediaPlayer.JavaClass.init;
MediaPlayer.setDataSource(StringToJString(FileName));
MediaPlayer.prepare;
FVideoSize := TSize.Create(MediaPlayer.getVideoWidth, MediaPlayer.getVideoHeight);
MediaPlayer.release; // !!!!!!! add this line !!!!!!!
MediaPlayer := nil;
end;