【文件属性】:
文件名称:android 视频播放器demo
文件大小:98KB
文件格式:RAR
更新时间:2015-06-26 05:14:03
android 视频播放器 demo
private static boolean sendGetRequest(String path,
Map params, String encoding) throws Exception {
StringBuilder pathBuilder = new StringBuilder(path);
pathBuilder.append("?");
//http://192.168.12.100:8080/videoweb/video/manage.do?
for(Map.Entry entry: params.entrySet()){
pathBuilder.append(entry.getKey()).append("=").append(URLEncoder.encode(entry.getValue())).append("&");
}
//http://192.168.12.100:8080/videoweb/video/manage.do?method=save&name=xxx&timelength=90&
pathBuilder.deleteCharAt(pathBuilder.length() -1);
//http://192.168.12.100:8080/videoweb/video/manage.do?method=save&name=xxx&timelength=90
URL url = new URL(pathBuilder.toString());
Log.i("TAG",pathBuilder.toString());
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
conn.setConnectTimeout(5000);
【文件预览】:
VideoPlayer
----bin()
--------classes.dex(7KB)
--------res()
--------VideoPlayer.apk(36KB)
--------classes()
--------resources.ap_(30KB)
----res()
--------drawable-ldpi()
--------drawable-hdpi()
--------values()
--------drawable-mdpi()
--------layout()
----assets()
----gen()
--------cn()
----proguard.cfg(1KB)
----src()
--------cn()
----.project(847B)
----.classpath(364B)
----project.properties(361B)
----AndroidManifest.xml(747B)