diff --git a/BeanCovertor.kt b/BeanCovertor.kt index cb22fe536..fb2870d75 100644 --- a/BeanCovertor.kt +++ b/BeanCovertor.kt @@ -158,8 +158,8 @@ fun mapToLiveInjectStreamConfig(map: Map<*, *>): LiveInjectStreamConfig { fun mapToCameraCapturerConfiguration(map: Map<*, *>): CameraCapturerConfiguration { return CameraCapturerConfiguration( - intToCapturerOutputPreference((map["preference"] as Double).toInt()), - intToCameraDirection((map["cameraDirection"] as Double).toInt()) + intToCapturerOutputPreference((map["preference"] as Number).toInt()), + intToCameraDirection((map["cameraDirection"] as Number).toInt()) ) }