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