Skip to content

Commit 365ffd5

Browse files
committed
Resolve an issue where on some Android devices the videoSize is not cast correctly
1 parent d854782 commit 365ffd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/kotlin/video/api/flutter/livestream/MethodCallHandlerImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ class MethodCallHandlerImpl(
160160
val videoSize = flutterView!!.videoConfig.resolution
161161
result.success(
162162
mapOf(
163-
"width" to videoSize.width,
164-
"height" to videoSize.height
163+
"width" to videoSize.width.toDouble(),
164+
"height" to videoSize.height.toDouble()
165165
)
166166
)
167167
}

0 commit comments

Comments
 (0)