07-22-2008 10:18 AM
Hi all,
It's on 4.2 platform... I use javax.microedition.media.Player thing for displaying video content in my application. It worked pretty well until I need to implement video pausing and seeking. When I use player.stop() method then the video playback gets dissapeared and I see the screen that was under it. Though it becomes visible back when I resume the playback using player.resume()
Almost the same thing happens when I seek the playback back and forward - the playback dissapears for a moment, gets seeked and then appears back at the new play position.
Is there chance to make the seeking smooth and pause do not hide the video?
Thank you!
Pavlo
07-22-2008 12:02 PM
07-22-2008 02:02 PM
I am getting the same behavior. Basically when the player is not playing, it does not refresh the screen.
This is how it was always behaving on all devices ( version 4.2.x).
Is this a bug?
Rab
07-22-2008 04:50 PM
07-22-2008 06:10 PM
I am using a BlackBerry CLDC application.
Rab
07-23-2008 03:32 AM
Hi MSohm,
It's CLDC application. Here's how I create and prepare the player:
player = Manager.createPlayer(Utils.filePath(track.getFilen
player.addPlayerListener(new PlayerListener() {
public void playerUpdate(final Player player, String event, Object eventData) {
if (event == PlayerListener.END_OF_MEDIA) {
...
}
if (event == PlayerListener.STARTED) {
...
}
}
});
player.realize();
player.prefetch();
player.start();
For pause/resume things I am using player.pause() and player.start() methods. I tried them with and without screen invalidation - both does not work smoothly.
As for seek - I am using player.setMediaTime(long) method call (tried also to do screen invalidation right after it)
it's 4.2.2.123 BlackBerry handheld software version.
07-23-2008 09:34 AM - edited 07-23-2008 09:36 AM
If you embed the Player within your Canvas, the paused screen will remain. To embed your media player in your Canvas, call VideoControl.initDisplayMode(VideoControl.USE_DIRE
For those extending the RIM UI, similar functionality is available in 4.3.0, where you would call