allow fast trimming in the video editor, should fix some glitches

This commit is contained in:
tibbi 2021-10-03 19:32:45 +02:00
parent 48bf301e55
commit 02afd54309

View file

@ -222,7 +222,7 @@ class NewVideoEditActivity : SimpleActivity() {
}
private fun openEditor(inputVideo: Uri) {
val settingsList = createPesdkSettingsList()
val settingsList = createVesdkSettingsList()
settingsList.configure<LoadSettings> {
it.source = inputVideo
@ -235,7 +235,7 @@ class NewVideoEditActivity : SimpleActivity() {
.startActivityForResult(this, VESDK_EDIT_VIDEO)
}
private fun createPesdkSettingsList(): VideoEditorSettingsList {
private fun createVesdkSettingsList(): VideoEditorSettingsList {
val settingsList = VideoEditorSettingsList().apply {
configure<UiConfigFilter> {
it.setFilterList(FilterPackBasic.getFilterPack())
@ -288,6 +288,7 @@ class NewVideoEditActivity : SimpleActivity() {
getSettingsModel(UiConfigTheme::class.java).theme = R.style.Imgly_Theme_NoFullscreen
configure<VideoEditorSaveSettings> {
it.allowFastTrim = true
it.allowOrientationMatrixMetadata = true
it.setOutputToTemp()
it.outputMode = OutputMode.EXPORT_IF_NECESSARY