You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Hello,
I'm using the following code to add a MediaPlayer in a form and it works just fine:
Media m = MediaManager.createMedia("https://.............mp4", true); f.add(BorderLayout.CENTER, new MediaPlayer(m));
On the same form I have a button which when clicked I navigate to another form using showForm(".......") but the video in the MediaPlayer doesn't stop (the sound is in the background). How can I stop it playing when I click that button?
It happens on simulator and actual device.
Thanks in advance.
Shai Almog
unread,
Jun 1, 2017, 1:13:04 AM6/1/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Hi, call stop on the media object before calling showForm.