renaudmathieu / webrtc-kmp

WebRTC Kotlin Multiplatform SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebRTC KMP Maven Central

WebRTC Kotlin Multiplatform SDK

API implementation map

API Android iOS JS
Audio/Video
Data channel
Screen Capture

WebRTC revision

Current revision: M106

Installation

Root build.gradle.kts

allprojects {
    repositories {
        mavenCentral()
    }
}

Shared module build.gradle.kts

kotlin {

  ios {
      binaries
          .filterIsInstance<Framework>()
          .forEach {
              it.transitiveExport = true
              it.export("com.shepeliev:webrtc-kmp:$webRtcKmmVersion")
          }
  }

  sourceSets {
      val commonMain by getting {
          dependencies {
              api("com.shepeliev:webrtc-kmp:$webRtcKmmVersion")
              implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
          }
      }
  }
}

Usage

Please reffer to sample.

About

WebRTC Kotlin Multiplatform SDK

License:Apache License 2.0


Languages

Language:Kotlin 100.0%