Hey guys, I'm trying to use TMSFNCWXAudioPlayer in my project. For some reason, it's not showing up on Android. I tried the demo and it works fine on Android. Is there a file or configuration I need to add to my project?
Thanks.
Hey guys, I'm trying to use TMSFNCWXAudioPlayer in my project. For some reason, it's not showing up on Android. I tried the demo and it works fine on Android. Is there a file or configuration I need to add to my project?
Thanks.
Did you add the necessary JAR files and set permissions:
For deploying on android, you’ll need to add both the FNCWebChromeClient.jar and the JavascriptHelper.jar files to your project. You can read the instructions on how to this here.
Yes, I added the necessary files, what permissions should I configure?
Hi,
The demo is normally not using any special permissions. If that is working then something goes wrong with initialization.
You indicate that you added the necessary JAR files. Could it be that you are interacting with the control before it has a chance to initialize (e.g. setting some properties programmatically in the Form's OnCreate or OnShow events)?
Hi Tunder, thanks for the tip. I reviewed the code and even commented it out (OnCreate, OnShow). I'm not interacting with the control, but it still doesn't appear. I even set up an alert on the control to check if it's initialized.
procedure TFrm_MainForm.TMSFNCWXAudioPlayer1AudioInitialized(Sender: TObject);
begin
showmessage('Audio Initialized');
end;
On Windows, the event fires. On Android, it's never called. Any other ideas on what could be happening?
Thank you very much.
Would it be possible to send a sample application that doesn't work for you? We cannot reproduce it here, the control initializes as expected.
Thanks Tünde for your support. I created a new project and copied the contents of the project where the controls weren't showing up, and the problem was solved. I don't know if my old project was corrupted, but it works now.
Regards
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.