资源简介
此源码可作为开发移动端视频会议视频通话的参考,mediarecorder录制,rtp打包传输,等等等等,Spydroid值得下载学习
代码片段和文件信息
/*
* Copyright (C) 2011-2012 GUIGUI Simon fyhertz@gmail.com
*
* This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/)
*
* Spydroid is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License or
* (at your option) any later version.
*
* This source code is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*/
package net.majorkernelpanic.http;
import static net.majorkernelpanic.http.TinyHttpServer.TAG;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.URLDecoder;
import java.util.Date;
import java.util.Locale;
import org.apache.http.HttpEntity;
import org.apache.http.HttpEntityEnclosingRequest;
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.MethodNotSupportedException;
import org.apache.http.entity.AbstractHttpEntity;
import org.apache.http.entity.ContentProducer;
import org.apache.http.entity.EntityTemplate;
import org.apache.http.entity.InputStreamEntity;
import org.apache.http.impl.cookie.DateParseException;
import org.apache.http.impl.cookie.DateUtils;
import org.apache.http.protocol.HttpContext;
import org.apache.http.protocol.HttpRequestHandler;
import org.apache.http.util.EntityUtils;
import android.content.res.AssetFileDescriptor;
import android.content.res.AssetManager;
import android.util.Log;
/**
*
* Serves the content of assets/www
*
*/
public class ModAssetServer implements HttpRequestHandler {
public static final String PATTERN = “*“;
/** The list of MIME Media Types supported by the server. */
public static String[] mimeMediaTypes = new String[] {
“htm“ “text/html“
“html“ “text/html“
“gif“ “image/gif“
“jpg“ “image/jpeg“
“png“ “image/png“
“js“ “text/javascript“
“json“ “text/json“
“css“ “text/css“
};
private final TinyHttpServer mServer;
private final AssetManager mAssetManager;
public ModAssetServer(TinyHttpServer server) {
super();
mServer = server;
mAssetManager = mServer.mContext.getAssets();
}
public void handle(
final HttpRequest request
final HttpResponse response
final HttpContext context) throws HttpException IOException {
AbstractHttpEntity body
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-04-24 23:15 spydroid-ipcamera-master\
文件 536 2014-04-24 23:15 spydroid-ipcamera-master\.classpath
文件 135 2014-04-24 23:15 spydroid-ipcamera-master\.gitignore
文件 811 2014-04-24 23:15 spydroid-ipcamera-master\.project
文件 2329 2014-04-24 23:15 spydroid-ipcamera-master\AndroidManifest.xm
文件 35147 2014-04-24 23:15 spydroid-ipcamera-master\LICENSE
文件 2955 2014-04-24 23:15 spydroid-ipcamera-master\README.md
目录 0 2014-04-24 23:15 spydroid-ipcamera-master\assets\
目录 0 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\
文件 3974 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\credits.htm
目录 0 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\fonts\
文件 19744 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\fonts\bangers.eot
文件 21512 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\fonts\bangers.woff
文件 71816 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\fonts\sunshiney.eot
文件 81948 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\fonts\sunshiney.woff
目录 0 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\
文件 1494 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\blue-button.png
文件 14893 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\camera.png
文件 18292 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\eye.png
文件 45314 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\facebook.png
文件 60567 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\install.jpg
文件 16120 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\lamp.png
文件 1554 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\phone.png
文件 6508 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\quote.png
文件 1527 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\red-button.png
文件 27344 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\speaker.png
文件 11038 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\images\spydroid.png
文件 9840 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\index.htm
目录 0 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\js\
文件 381 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\js\ie.js
文件 92630 2014-04-24 23:15 spydroid-ipcamera-master\assets\www\js\jquery-1.9.1.min.js
............此处省略154个文件信息
- 上一篇:354JSP财务管理系统.rar
- 下一篇:Android天气预报
相关资源
- Android天气预报
- 安卓查看周围wifi信号强弱列表
- Android 打飞机源码
- java人脸识别培训视频完整版,用于就
- Android二维码扫描识别-二维码生成de
-
Android ba
se64对图片进行编码和解码 - Android日历有闹钟提醒功能记事功能等
- Arcgis for android api中文文档
- Android 评论、回复功能,测试demo
- AndroidFragment整合上篇Webservice后台
- 中国象棋人机对弈android游戏源代码
- Qt On Android核心编程 书对应源码
- Android 中国象棋游戏源码
- 基于android的快递查询项目源码
- Android应用源码之智能农业
- android support-v7-v4合集
- Android智能灯泡demo
- Android网络音乐播放器
- android手机和西门子s1200 PLC通讯socke通
- Unity蓝牙插件,最新版2019年10月7号更
- 虚拟视频(音视频精准同步)[2018.1
- zw_AndroidLrcView-master.zip
- android中API和权限的对应关系表——超
- android实现风蓝记事本
- IOSAndroid SSL双向认证HTTPS方式请求及配
- Android植物大战僵尸简单版开发源码
- B4A(Basic4android) v6.30 Full (2016.10.2
- 基于android的动物识别系统
- Android应用源码大学生心理健康职业性
- android通讯录源码
评论
共有 条评论