Search code examples
androidjava-melwuit

Lwuit VideoComponent goes to the background of the form when played on Samsung TouchScreen Mobiles


I am using Lwuit videocomponent to play some media as 3gp, mp4 etc. The problem occurs when the component is started, it plays but immediately goes to the background. This happens only on Samsung TouchScreen devices Such as Corby, GT S5620, Duos.

the code i am using is as follows:

                    videoComponent = VideoComponent.createVideoPeer(filePath);
                          player = (Player) videoComponent.getNativePeer();
                          player.prefetch();
                          player.realize();
                          player.start();
                          videoComponent.setVisible(true);
                          f.addComponent(videoComponent);

The media is played for just a sec and immediately goes to background.

Thanks!


Solution

  • The video component in LWUIT had many issues most of which we fixed in Codename One.