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.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/cc588014-0bdc-4b70-b5be-02fea1ccb831%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to