├── .gitignore ├── LiveView ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── gen │ └── com │ │ └── example │ │ └── liveview │ │ ├── BuildConfig.java │ │ └── R.java ├── ic_launcher-web.png ├── libs │ └── android-support-v4.jar ├── lint.xml ├── proguard-project.txt ├── project.properties ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ ├── layout │ │ └── activity_live_view.xml │ ├── menu │ │ └── live_view.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ ├── values-w820dp │ │ └── dimens.xml │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml └── src │ └── com │ └── example │ └── liveview │ ├── CameraPreview.java │ └── LiveView.java ├── MyRtsp ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── gen │ └── com │ │ └── example │ │ └── myrtsp │ │ ├── BuildConfig.java │ │ └── R.java ├── ic_launcher-web.png ├── libs │ └── android-support-v4.jar ├── lint.xml ├── proguard-project.txt ├── project.properties ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ ├── layout │ │ └── activity_main.xml │ ├── menu │ │ └── main.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ ├── values-w820dp │ │ └── dimens.xml │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml └── src │ └── com │ └── example │ └── myrtsp │ └── MainActivity.java ├── README.md ├── RtspServer ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── gen │ └── com │ │ └── optman │ │ └── RtspServer │ │ ├── BuildConfig.java │ │ └── R.java ├── ic_launcher-web.png ├── libs │ └── android-support-v4.jar ├── lint.xml ├── proguard-project.txt ├── project.properties ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ ├── layout │ │ └── activity_main.xml │ ├── menu │ │ └── main.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ ├── values-w820dp │ │ └── dimens.xml │ └── values │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml └── src │ └── com │ └── optman │ └── RtspServer │ ├── RtpSession.java │ ├── RtpSessionManager.java │ ├── RtspServer.java │ ├── RtspServerActivitiy.java │ ├── StreamInfo.java │ └── Utility.java └── libRtsp ├── .classpath ├── .project ├── .settings └── org.eclipse.jdt.core.prefs ├── AndroidManifest.xml ├── gen └── com │ └── optman │ └── librtsp │ ├── BuildConfig.java │ └── R.java ├── libs └── android-support-v4.jar ├── lint.xml ├── proguard-project.txt ├── project.properties ├── res ├── drawable-hdpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── values-v11 │ └── styles.xml ├── values-v14 │ └── styles.xml └── values │ ├── strings.xml │ └── styles.xml └── src └── com └── optman ├── rtp ├── player │ ├── Player.java │ ├── RtpPlayer.java │ ├── RtpSampleSource.java │ ├── RtspPlayer.java │ ├── SimplePlayer.java │ ├── Statistics.java │ ├── TcpSinkPlayer.java │ └── UdpSinkPlayer.java ├── receiver │ ├── RtpAacStream.java │ ├── RtpAvcStream.java │ ├── RtpSink.java │ ├── RtpStream.java │ ├── Sample.java │ ├── SampleHandler.java │ └── UdpServer.java └── sender │ ├── CameraStream.java │ ├── MicStream.java │ ├── RtpAacStream.java │ ├── RtpAvcStream.java │ ├── RtpSocket.java │ ├── RtpStream.java │ └── RtpUdp.java └── rtsp ├── RtspClient.java ├── RtspClientListener.java ├── TcpChannel.java ├── TcpDataHandler.java ├── TcpReceiver.java └── TcpSender.java /.gitignore: -------------------------------------------------------------------------------- 1 | .git/ 2 | .metadata 3 | bin/ 4 | 5 | -------------------------------------------------------------------------------- /LiveView/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /LiveView/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | LiveView 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /LiveView/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /LiveView/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /LiveView/gen/com/example/liveview/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.example.liveview; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /LiveView/gen/com/example/liveview/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | 8 | package com.example.liveview; 9 | 10 | public final class R { 11 | public static final class attr { 12 | } 13 | public static final class dimen { 14 | /** Default screen margins, per the Android Design guidelines. 15 | 16 | Example customization of dimensions originally defined in res/values/dimens.xml 17 | (such as screen margins) for screens with more than 820dp of available width. This 18 | would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). 19 | 20 | */ 21 | public static final int activity_horizontal_margin=0x7f040000; 22 | public static final int activity_vertical_margin=0x7f040001; 23 | } 24 | public static final class drawable { 25 | public static final int ic_launcher=0x7f020000; 26 | } 27 | public static final class id { 28 | public static final int camera_preview=0x7f070000; 29 | public static final int flip_protocol=0x7f070001; 30 | } 31 | public static final class layout { 32 | public static final int activity_live_view=0x7f030000; 33 | } 34 | public static final class menu { 35 | public static final int live_view=0x7f060000; 36 | } 37 | public static final class string { 38 | public static final int action_settings=0x7f050002; 39 | public static final int app_name=0x7f050000; 40 | public static final int hello_world=0x7f050001; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /LiveView/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/optman/android-cam-rtsp/1a2c9bdc89194e1554afeff1efcdbd7f45ea35ba/LiveView/ic_launcher-web.png -------------------------------------------------------------------------------- /LiveView/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/optman/android-cam-rtsp/1a2c9bdc89194e1554afeff1efcdbd7f45ea35ba/LiveView/libs/android-support-v4.jar -------------------------------------------------------------------------------- /LiveView/lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /LiveView/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /LiveView/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-21 15 | android.library.reference.1=../appcompat_v7 16 | -------------------------------------------------------------------------------- /LiveView/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/optman/android-cam-rtsp/1a2c9bdc89194e1554afeff1efcdbd7f45ea35ba/LiveView/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /LiveView/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/optman/android-cam-rtsp/1a2c9bdc89194e1554afeff1efcdbd7f45ea35ba/LiveView/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /LiveView/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/optman/android-cam-rtsp/1a2c9bdc89194e1554afeff1efcdbd7f45ea35ba/LiveView/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /LiveView/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/optman/android-cam-rtsp/1a2c9bdc89194e1554afeff1efcdbd7f45ea35ba/LiveView/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /LiveView/res/layout/activity_live_view.xml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 16 | 17 | 18 |