Skip to content

Commit

Permalink
Bump to Haishinkit.kt up 0.13.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Jul 18, 2024
1 parent 3b497ec commit 724bcbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ android {
}

dependencies {
implementation 'com.github.shogo4405.HaishinKit~kt:haishinkit:0.13.2'
implementation 'com.github.shogo4405.HaishinKit~kt:haishinkit:0.13.7'
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ class RtmpStreamHandler(
override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
when (call.method) {
"$TAG#getHasAudio" -> {
result.success(instance?.audioSetting?.muted)
result.success(!instance?.audioSource?.isMuted!!)
}

"$TAG#setHasAudio" -> {
val value = call.argument<Boolean?>("value")
value?.let {
instance?.audioSetting?.muted = !it
instance?.audioSource?.isMuted = !it
}
result.success(null)
}
Expand Down

0 comments on commit 724bcbe

Please sign in to comment.