Skip to content

Commit

Permalink
Merge pull request #93 from kleytonstn/hotfix_progress
Browse files Browse the repository at this point in the history
fix update progress (fixes #78)
  • Loading branch information
rurico committed Sep 9, 2020
2 parents 0d56ce3 + a154696 commit ef80842
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -150,7 +150,7 @@ class FFmpegCommander(private val context: Context, private val channelName: Str
val totalTimeStr = message.replace(reg, "$1")
val time = utility.timeStrToTimestamp(totalTimeStr.trim())
MethodChannel(messenger, channelName)
.invokeMethod("updateProgress", ((time / totalTime) * 100).toString())
.invokeMethod("updateProgress", ((time.toDouble() / totalTime.toDouble()) * 100).toString())
} catch (e: Exception) {
print(e.stackTrace)
}
Expand Down

0 comments on commit ef80842

Please sign in to comment.