├── app ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── raw │ │ │ └── test.mp4 │ │ ├── values │ │ │ ├── strings.xml │ │ │ ├── colors.xml │ │ │ └── styles.xml │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ ├── img_cut_screen.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ │ ├── background.png │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ └── layout │ │ │ ├── activity_player.xml │ │ │ ├── activity_tcp_send.xml │ │ │ └── activity_main.xml │ │ ├── java │ │ └── com │ │ │ └── ryan │ │ │ └── screenrecoder │ │ │ ├── application │ │ │ ├── SysValue.java │ │ │ └── ScreenApplication.java │ │ │ ├── bean │ │ │ └── EventLogBean.java │ │ │ ├── util │ │ │ ├── LogUtil.java │ │ │ ├── SharedUtil.java │ │ │ └── SysUtil.java │ │ │ ├── ui │ │ │ └── activity │ │ │ │ ├── PlayerActivity.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── TcpSendActivity.java │ │ │ ├── conn │ │ │ ├── TcpServerThread.java │ │ │ └── TcpSendThread.java │ │ │ ├── glec │ │ │ ├── STextureRender.java │ │ │ ├── GlUtil.java │ │ │ └── EGLRender.java │ │ │ └── coder │ │ │ └── MediaEncoder.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── 脑图.png ├── show.jpg ├── .gitignore ├── README.md ├── gradle.properties └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /脑图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/脑图.png -------------------------------------------------------------------------------- /show.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/show.jpg -------------------------------------------------------------------------------- /app/src/main/res/raw/test.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/raw/test.mp4 -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ScreenRecoder 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-xxhdpi/background.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/img_cut_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-xhdpi/img_cut_screen.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RyanRQ/ScreenRecoder/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | /local.properties 3 | .DS_Store 4 | /build 5 | /captures 6 | .externalNativeBuild 7 | .idea/ 8 | gradle/ 9 | gradlew.bat 10 | .gradle/ 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/ryan/screenrecoder/application/SysValue.java: -------------------------------------------------------------------------------- 1 | package com.ryan.screenrecoder.application; 2 | 3 | /** 4 | * Created by zx315476228 on 17-3-10. 5 | */ 6 | 7 | public class SysValue { 8 | public static int api;//系统API版本号 9 | public static int screen_width;//屏幕宽度 10 | public static int screen_height;//屏幕高度 11 | public static int screen_dpi;//屏幕密度 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/java/com/ryan/screenrecoder/bean/EventLogBean.java: -------------------------------------------------------------------------------- 1 | package com.ryan.screenrecoder.bean; 2 | 3 | /** 4 | * Created by zx315476228 on 17-3-15. 5 | */ 6 | 7 | public class EventLogBean { 8 | private String log; 9 | 10 | public EventLogBean(String log) { 11 | this.log = log; 12 | } 13 | 14 | public String getLog() { 15 | return log; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ScreenRecoder 2 | 3 | ### 使用方法: 4 | 两台安卓设备处于同一网段,设备1先开启接收端,另一台输入设备1的IP地址,开启发送端即可 5 | 6 | ![image](https://github.com/RyanRQ/ScreenRecoder/blob/master/show.jpg)
7 | 8 | ### 思维脑图 9 | ![image](https://github.com/RyanRQ/ScreenRecoder/blob/master/%E8%84%91%E5%9B%BE.png) 10 | 11 | ## 版本 12 | ### V1.1.2 解决录屏时,截屏卡顿感 13 | ### V1.1 修复部分bug,接收端与发送端合并. 14 | 15 | 16 | ## Future: 17 | 1.支持摄像头获取数据 18 | 19 | 2.增加滤镜 20 | 21 | 3.支持RTMP推流 22 | 23 | 24 | # 如果该项目对你有帮助请点个赞~\(≧▽≦)/~吧!!!! 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_player.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 12 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_tcp_send.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 |