PeerRTC / AndroidPeerRTC

Android library built on top of PeerRTC module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AndroidPeerRTC πŸ€–

An android library built on top of PeerRTC module by utilizing the built in WebView module in android. This library is packed with easy to call api for native android that utilizes peer to peer connection like sending raw text, sending raw files, audio streaming, video streaming, connecting to peers via unique id and more. The library is created with Kotlin. However, it can be also used with Java.

❗ Note

  • Add credits and attribution to this website when using this library.
  • There are no documentations for this library yet. Any contributors are welcome.
  • This library is still in beta phase and can be unstable.
  • Source code contributions and bug reports are encouraged.

πŸ“– Sample Project

Video Call App

βš™οΈ Setup

  1. If you will be using the default PeerRTC backend server provided by us for testing purposes, you can skip this step. For own managed backend server, refer to PeerRTC server's repository. Server owned by us is unstable and not managed so it is recommended to host your own.

  2. Addd the following in your root build.gradle file

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}
  1. Add in build.gradle (app level) file
dependencies {
 implementation 'com.github.PeerRTC:AndroidPeerRTC:v1.0.4-beta'
}

πŸ‘¨β€πŸ« Sample Usage

val onReady = {p:AndroidPeerRTC->
  p.start(isSecure=true)
}

val peer = AndroidPeerRTC(context = this, serverURL = null, configuration = null, onReady=onReady) 

peer.onStart = {p:AndroidPeerRTC-> 
  println("Successfully connected to the server")
  println("My Id " + p.id)
}

πŸ“š Api Reference

There are no api reference and documentations yet. Feel free to contribute πŸ˜‰. The only classes in this library that needs documentation is the AndroidPeerRTC and MediaSourcesView.

About

Android library built on top of PeerRTC module.

License:MIT License


Languages

Language:Kotlin 71.4%Language:JavaScript 26.1%Language:HTML 2.0%Language:CSS 0.5%