Hi I'm using this code to download the video and play it on my phone. at the moment I'm testing it from WTK2.5.2 only. but the problem is player will created so quickly but when it is prefetching it takes a long time. Is there something wrong with my code but I guess there is nothing wrong. Oh and the url for the player would be http://www.onlnet.com/amila/v1.mpg .
thanks in advance.
and here is my code
Code:Thread t = new Thread() { public void run() { try { form1 = null; player1 = null; vc1 = null; videoDisp1 = null; form1 = new Form("player1"); player1 = Manager.createPlayer(url); System.out.println("player 1 created"); player1.realize(); player1.prefetch(); player1.addPlayerListener(this); System.out.println("player 1 pre and rea"); vc1 = (VideoControl) player1.getControl("VideoControl"); videoDisp1 = (Item) vc1.initDisplayMode(vc1.USE_GUI_PRIMITIVE, null); form1.append(videoDisp1); } catch (Exception e) { } } }

. Oh and the url for the player would be
Reply With Quote

