pinkfish / flutter_rtmppublisher

Publisher to rtmp using the camera plugin as a basis to do all the basic camera/record management.
BSD 3-Clause "New" or "Revised" License
95 stars 126 forks source link

Type mismatch: inferred type is ByteBuffer? but ByteBuffer was expected #57

Open Kedar-27 opened 3 years ago

Kedar-27 commented 3 years ago

Note: Recompile with -Xlint:deprecation for details.
e: /Users/kedar/.pub-cache/hosted/pub.dartlang.org/camera_with_rtmp-0.3.2/android/src/main/kotlin/com/whelksoft/camera_with_rtmp/Camera.kt: (682, 45): Type inference failed. Expected type mismatch: inferred type is Int? but Int was expected e: /Users/kedar/.pub-cache/hosted/pub.dartlang.org/camera_with_rtmp-0.3.2/android/src/main/kotlin/com/whelksoft/camera_with_rtmp/CameraUtils.kt: (51, 13): Type inference failed: Cannot infer type parameter V in inline operator fun <K, V> MutableMap<K, V>.set(key: K, value: V): Unit None of the following substitutions
receiver: MutableMap<String, Any> arguments: (String,Any)
receiver: MutableMap<String, Int?> arguments: (String,Int?)
can be applied to
receiver: HashMap<String, Any> arguments: (String,Int?)

e: /Users/kedar/.pub-cache/hosted/pub.dartlang.org/camera_with_rtmp-0.3.2/android/src/main/kotlin/com/whelksoft/camera_with_rtmp/VideoEncoder.kt: (218, 59): Type mismatch: inferred type is ByteBuffer? but ByteBuffer was expected e: /Users/kedar/.pub-cache/hosted/pub.dartlang.org/camera_with_rtmp-0.3.2/android/src/main/kotlin/com/whelksoft/camera_with_rtmp/VideoEncoder.kt: (427, 23): Type mismatch: inferred type is ByteBuffer? but ByteBuffer was expected

FAILURE: Build failed with an exception.

VladKhramykh commented 3 years ago

+1