Hi all,
I am making a application for video streaming from rtsp server . I am getting a delay near about 15 sec in video playing.
anybody have idea how can i redude this time?
Code:try { if(p != null){ p.close(); } p = Manager.createPlayer(fileName); p.addPlayerListener(this); p.realize(); p.prefetch(); video = (VideoControl) p.getControl("VideoControl"); videoItem = (Item)video.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, null); videoItem.setLayout(Item.LAYOUT_CENTER); viewForm.deleteAll(); video.setVisible(true); viewForm.append(videoItem); viewForm.addCommand(CMD_LIKE); viewForm.addCommand(CMD_NEXT); viewForm.addCommand(CMD_DISLIKE); viewForm.setCommandListener(this); p.start(); p.addPlayerListener(this); display.setCurrent(viewForm); }catch(Exception ioe){ ioe.printStackTrace(); }

Reply With Quote

