BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-03-2008, 09:48 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2008
Model: 7100
PIN: N/A
Carrier: Sprint
Posts: 31
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default getting black screen between chunks of clip

Please Login to Remove!

Hi all,
We are developing an application which plays the series of clips one after the other. We are releasing and re-starting player object in playerUpdate block.
We are getting black screen in between the chunk of clips while switching from one clip to another, is there any way to avoid this black screen??
Following is the code for reference

public void playerUpdate(Player player, String event, Object arg2) {
try{
main.repaint();
//End of clip event
if(event == END_OF_MEDIA){
//release player
if (player != null) {
if(player.getState() == Player.STARTED) {
player.stop();
}
if(player.getState() == Player.PREFETCHED) {
player.deallocate();
}
if(player.getState() == Player.REALIZED || player.getState() == Player.UNREALIZED) {
player.close();
}
player = null;
}

//delete played clip
main.deleteFile("clip_"+ (main.sequencePlay - 1) +".3gp");

//if clip is constructed then play it, else turn off PLAY status
if(main.sequencePlay < main.sequenceDownload )
playVideo();
else
main.IS_PLAYING = false;
}
}
catch(Exception e){
main.showAlert("Error in PlayerUpdate",e.getMessage());
}
}

Thanks
Ajj
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

HP Agilent VXI E1401A Mainframe w/ E4208C,E4206A,E1609A,E1618A,E4209B,E1697A
$499.0
HP Agilent VXI E1401A Mainframe w/ E4208C,E4206A,E1609A,E1618A,E4209B,E1697A pictureCisco OSR-1 SHELF-L-ELH 15-Slot Modular Mainframe Chassis w/Plug-In Modules
$1499.99
Cisco OSR-1 SHELF-L-ELH 15-Slot Modular Mainframe Chassis w/Plug-In Modules pictureHP Agilent 70004A Display Mainframe (No Plug-Ins)
$195.0
HP Agilent 70004A Display Mainframe (No Plug-Ins) pictureAgilent E8408A VXI Mainframe W/ E8491B 89606A E1438A E1438A
$700.0
Agilent E8408A VXI Mainframe W/ E8491B 89606A E1438A E1438A pictureHP 8555A RF Section Spectrum Analyzer Mainframe & 85528 IF Module 141T Display
$750.0
HP 8555A RF Section Spectrum Analyzer Mainframe & 85528 IF Module 141T Display picture






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