Skip to content

tethridge/webrtc-kmp

 
 

Repository files navigation

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: M89

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.5.2-native-mt")
          }
      }
  }
}

On iOS, in addition to the Kotlin library add in Podfile

pod 'webrtc-kmp', :git => '[email protected]:shepeliev/webrtc-kmp.git'

Usage

Please reffer to sample project.

About

WebRTC Kotlin Multiplatform SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 70.9%
  • Kotlin 28.2%
  • Other 0.9%