try { URL url=new URL("视频页面地址记得是有http://的"); URLConnection uc= url.openConnection(); BufferedReader bus=new BufferedReader(new InputStreamReader(uc.getInputStream(),"utf-8")) ; String temp=""; jt2.setText(""); int i=0; while((temp=bus.readLine())!=null){ //这里写过滤,用这则表达式找到*.flv的文件路径 } // 有了路径了你可以用java写程序下载,要对http协议比较了解 } } catch (UnknownHostException e1) { e1.printStackTrace(); } catch (IOException e1) { e1.printStackTrace(); }[code=java][/code]
[code=java]
62,620
社区成员
307,251
社区内容
加载中
试试用AI创作助手写篇文章吧