Skip to content

Commit 004cac2

Browse files
authored
Merge pull request #37 from PinSeeker/bug/android-double-back-to-source
Resolve an issue where on some Android devices the videoSize is not cast correctly
2 parents d854782 + 365ffd5 commit 004cac2

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)