Skip to content

Commit

Permalink
Merge pull request #14 from khainhero/patch-5
Browse files Browse the repository at this point in the history
match progress indicator for android and iOS
  • Loading branch information
jonataslaw committed Apr 16, 2020
2 parents 8796511 + 42a6bcb commit baa5b38
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ class VideoCompressPlugin private constructor(private val activity: Activity, pr
.setVideoTrackStrategy(strategy)
.setListener(object : TranscoderListener {
override fun onTranscodeProgress(progress: Double) {
channel.invokeMethod("updateProgress", progress)
channel.invokeMethod("updateProgress", progress * 100.00)
}
override fun onTranscodeCompleted(successCode: Int) {
channel.invokeMethod("updateProgress", 100.00)
val json = Utility(channelName).getMediaInfoJson(context, destPath)
json.put("isCancel", false)
result.success(json.toString())
Expand Down

0 comments on commit baa5b38

Please sign in to comment.