Skip to content

Commit

Permalink
Merge pull request #219 from Macrow/beta/3.0.0
Browse files Browse the repository at this point in the history
fix convert exception in mapToCameraCapturerConfiguration function
  • Loading branch information
LichKing-2234 authored Jun 19, 2020
2 parents 3257b66 + 422e12e commit f853b80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/io/agora/rtc/base/BeanCovertor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ fun mapToLiveInjectStreamConfig(map: Map<*, *>): LiveInjectStreamConfig {

fun mapToCameraCapturerConfiguration(map: Map<*, *>): CameraCapturerConfiguration {
return CameraCapturerConfiguration(
intToCapturerOutputPreference(map["preference"] as Int),
intToCameraDirection(map["cameraDirection"] as Int)
intToCapturerOutputPreference((map["preference"] as Number).toInt()),
intToCameraDirection((map["cameraDirection"] as Number).toInt())
)
}

Expand Down

0 comments on commit f853b80

Please sign in to comment.