BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-04-2009, 05:10 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8800
PIN: N/A
Carrier: ATT
Posts: 65
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Video Play/Pause Issue

Please Login to Remove!

Hello All,

I am trying to provide Play/pause funcionality on menu Item click. But when I click pause menu item, it gives me a blank screen and not exact paused image(I observed this behaviour on simulator).

My simulator details are,

BB 9530 v 4.7.0.75

So, I provided the same behaviour(play/pause) on touch events of STORM. By doing this play/pause working ok on simulator(sometime it still gives me the blank image). But when I try the App on device, most of the times when I pause(on touch) the movie it shows me a blank screen.



I have provided the play/pause functionality on touch event like this.

I called handleUpEvent() method from touchven. It is coded like this.
Code:
public void handleUpEvent(){ 
if(player != null){ 
if (player.getState() == Player.STARTED){ //Stop playback. 
	try{ 
		player.stop(); 
	}catch (Exception ex){ 
		//System.out.println("Exception: " + ex.toString()); 
		Dialog.alert("handleUpEvent stop::Exception: " + ex.toString()); 
	} 
	}else if(player.getState() == Player.PREFETCHED){ // I tried with Player.STOP also //Start playback. 
	try{ 
		player.start(); 
	}catch (Exception ex){ 
		//System.out.println("Exception: " + ex.toString()); 
		Dialog.alert("handleUpEvent start::Exception: " + ex.toString()); 
	} 
	} 
} 
}
Can anyone please tell me, what am I doing wrong here?.

One more thing I am playing player indefinitely, I mean

player.setLoopCount(-1);// to play the movie indefinitely



Am I clear to you all?

Any help will be greatly appreciated

Thanks.

Last edited by hemant.bobade : 05-04-2009 at 05:12 AM.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

1000 Pieces of 2N4221 Transistors, Manufacturer FSC/NSC
$79.0
1000 Pieces of 2N4221 Transistors, Manufacturer FSC/NSC pictureTP2P50E MOTOROLA MTP2P50E TO-220 TYPE PKG NEW LAST ONES
$4.95
TP2P50E MOTOROLA MTP2P50E TO-220 TYPE PKG NEW LAST ONES picture[20 pcs] PHC2300 genuine Philips Complementary MOS Transistor N-chn+P-chn SO8
$1.45
[20 pcs] PHC2300 genuine Philips Complementary MOS Transistor N-chn+P-chn SO8 picture10PCS RF/VHF/UHF Transistor MITSUBISHI TO-220 2SC1971 C1971 GOOD
$13.65
10PCS RF/VHF/UHF Transistor MITSUBISHI TO-220 2SC1971 C1971 GOOD pictureLot of (58) RCA CA30B5BT3 Solid State Devices Differential Amplifier T039 Can
$99.99
Lot of (58) RCA CA30B5BT3 Solid State Devices Differential Amplifier T039 Can  picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.