Skip to content

Commit

Permalink
fix convert exception in mapToCameraCapturerConfiguration function
Browse files Browse the repository at this point in the history
  • Loading branch information
Macrow committed Jun 18, 2020
1 parent 3257b66 commit e389e87
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 Double).toInt()),
intToCameraDirection((map["cameraDirection"] as Double).toInt())
)
}

Expand Down

0 comments on commit e389e87

Please sign in to comment.