Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Update WebRTC SDK (#20)
Browse files Browse the repository at this point in the history
* Update WebRTC SDK

* Change default encoder to hardware
  • Loading branch information
graszka22 authored Nov 29, 2022
1 parent 3aafd92 commit ddfc51c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MembraneRTC/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dependencies {
implementation deps.timber
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'com.github.dsrees:JavaPhoenixClient:1.0.0'
api 'com.github.webrtc-sdk:android:104.5112.01'
api 'com.github.webrtc-sdk:android:104.5112.05'
implementation 'androidx.core:core:1.8.0'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ enum class EncoderType {
*/
data class EncoderOptions(
/**
* SOFTWARE / HARDWARE encoder, default: SOFTWARE
* SOFTWARE / HARDWARE encoder, default: HARDWARE
*/
val encoderType: EncoderType = EncoderType.SOFTWARE,
val encoderType: EncoderType = EncoderType.HARDWARE,
/**
* whether to enable Intel's VP8 encoder, default: true
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ internal open class SimulcastVideoEncoderFactoryWrapper(
}

override fun getEncoderInfo(): VideoEncoder.EncoderInfo {
val future = executor.submit(Callable { return@Callable encoder.encoderInfo })
val future = executor.submit(Callable { return@Callable VideoEncoder.EncoderInfo(2, true) })
return future.get()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class RoomViewModel(
transport = PhoenixTransport(url, "room:$roomName", Dispatchers.IO, params),
config = mapOf("displayName" to displayName),
encoderOptions = EncoderOptions(
encoderType = EncoderType.SOFTWARE
encoderType = EncoderType.HARDWARE
)
),
listener = this@RoomViewModel
Expand Down

0 comments on commit ddfc51c

Please sign in to comment.