Skip to content

Add library to your project

Pedro Sánchez edited this page Mar 5, 2021 · 94 revisions

Getting started

Permissions

This library require this permissions in your AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!--Optional for play store-->
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

Remember that you need get runtime permissions in Android API 23+.

Compile

Gradle

Add this to your build.gradle:

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}
dependencies {
  implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:1.9.9'
}

If you want check other version you can see all versions in my jitpack

Manual

Download the project:

git clone https://github.com/pedroSG94/rtmp-rtsp-stream-client-java.git

Import modules rtplibrary, encoder, rtmp and rtsp to your project (In Android Studio you can find import module option in File -> New -> Import Module...).

Delete this lines in all build.gradle module:

apply plugin: 'com.github.dcendents.android-maven'
group='com.github.pedroSG94'

Add rtplibrary module to your build.gradle:

dependencies {
  implementation project(':rtplibrary')
}
Clone this wiki locally