getting black screen between chunks of clip
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