Open sandilya28 opened 3 years ago
@sandilya28 Can you share the code that you used to open the activity
For picking the video from the gallery:
private fun showVideoPickerActivity() {
val mimetypes = arrayOf("image/*", "video/*")
Intent().apply {
action = Intent.ACTION_PICK
type = "video/*"
putExtra(Intent.EXTRA_MIME_TYPES, mimetypes)
resultLauncher.launch(this)
}
}
private val resultLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
if (result.resultCode == Activity.RESULT_OK) {
val data : Intent? = result.data
val videoUri = data?.data
TrimVideo.activity(videoUri.toString())
.setHideSeekBar(true)
.setMinToMax(10, 45)
.start(this, startForResult)
}
}
Here it is @a914-gowtham.
@sandilya28 could you try this one
TrimVideo.activity(videoUri.toString())
.setTrimType(TrimType.MIN_MAX_DURATION)
.setHideSeekBar(true)
.setMinToMax(10, 45)
.start(this, startForResult)
Sorry, @a914-gowtham unfortunately the same issue persists.
@akashmi Try adding this in your proguard-rules
-keepclassmembers enum * { *; }
Stack trace for the crash
@a914-gowtham Could you please help me debug this crash?