mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 06:17:59 +01:00
allow fast trimming in the video editor, should fix some glitches
This commit is contained in:
parent
48bf301e55
commit
02afd54309
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue