Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.46 KB

README.md

File metadata and controls

57 lines (38 loc) · 2.46 KB

Android application | P2PSP

Join the chat at https://gitter.im/P2PSP/Android-player

This project is aimed to implement a P2PSP client as an Android application. This project is aimed to create a peer implementation for Android devices.

Pre-requisites

  • Android Studio 2.0+ with NDK bundle.

Getting Started

  1. Download Android Studio
  2. Launch Android Studio.
  3. Open the sample directory.
  4. Open File/Project Structure...
  • Click Download or Select NDK location.
  1. Click Tools/Android/Sync Project with Gradle Files.
  2. Click Gradle/p2psp-android/app/build/buildDependents.

This project uses the new Gradle Experimental Android plugin with external lib support.

Android Project Configuration

To compile the Android project we need to link several libraries such as Boost, LibVLC to the jni.

Boost

LibVLC

  • We can build the LibVLC for Android by following this AndroidCompile and then add it to the project.

Gradle Build Configuration

The key points regarding the build are:

  • Inform Android Studio where lib/header is
  • Add lib dependency to application >Details are inside projects' build.gradle files

Support

If you've found an error in these samples, please file an issue.

Patches are encouraged, and may be submitted by forking this project.