Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.teocci:Android-LibRTSP:'
}
dependencies {
implementation("com.github.teocci:Android-LibRTSP:")
}
<dependency>
<groupId>com.github.teocci</groupId>
<artifactId>Android-LibRTSP</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.teocci" % "Android-LibRTSP" % ""
:dependencies [[com.github.teocci/Android-LibRTSP ""]]
This is a very simple and straight-forward RTSP "library" for Android. It can used to create both TCP and UDP client or server implementations. It can be used to test any server or client that uses TCP or UDP protocol to communicate.
This repository contains sample code intended to demonstrate the capabilities of the Exoplayer using a custom RTSP library. The current version of the code supports RTP over UDP and TCP as the transport protocol and only decodes H264 encoded video. It is not intended to be used as-is in applications as a library dependency, and will not be maintained as such. Bug fix contributions are welcome, but issues and feature requests will not be addressed.
This project provides a basic implementation for RTSP and RTP protocol communication. Also, encapsulates the Exoplayer as decoder in the RtspPlayer
class.
If you would like to contribute code, you can do so through GitHub by forking the repository and sending a pull request. When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible.
This project was based on the huge knowledge learn from the libstreaming project.
The code supplied here is covered under the MIT Open Source License..