Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: TMediaPlayerControl, TMediaPlayer on Android, iOS and Windows.

This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Permlink Replies: 0

Posts: 53
Registered: 7/29/04
TMediaPlayerControl, TMediaPlayer on Android, iOS and Windows.  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 23, 2017 7:49 AM
Embarcadero® C++Builder 10.2 Version 25.0.26309.314
Microsoft Windows 10 x64 Pro [Version 10.0.14393]
Mac OSX 10.12.6
Mac SDK 10.12.2
iPhoneOS 10.2
IPod Touch 5th Generation on iOS 9.3.5
Android 7.0.1
Android SDK 24.3.3

I found out there is an issues as described in the following steps:

1. set Visible of TMediaPlayerControl to false
2. and then a user clicks a button, it sets the Visible property to true,
3. both statement 1 and 2 already using BeginUpdate(), EndUpdate() and Repaint();
4. then followed by TMediaPlayer:::Play() to play an MP4.

I can hears the MP4 sound from Android for the first time but no display, the second clicks to that button onward, TMediaPlayer starts showing the MP4 video display.

However, iOS 9.3.5 and Windows Win32 are working fine as expected.

Of course, if statement 1-4 are excluded, the Android TMediaPlayer always initialized with dark black screen but I am not sure it is same on other Android versions.

Therefore, statement 1-4 are used, just to blank or hide the display first before user clicks to play.

Please advise.

Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02