How do we remove the rotate button in the video trimmer?

I followed the docs to customize the video editor. but i could not find any way to remove the rotate button. how can i do that?

here is my VideoEditorModule

private class SampleIntegrationVeKoinModule {
    private val minVideoDuration: Long = 20 * 1000
    private val maxVideoDuration: Long = 180 * 1000
    private val supportedDurations = listOf(minVideoDuration, 60_000, 120_000, maxVideoDuration)
    val module = module {
        single<ArEffectsRepositoryProvider>(createdAtStart = true) {
            ArEffectsRepositoryProvider(
                arEffectsRepository = get(named("backendArEffectsRepository")),
                ioDispatcher = get(named("ioDispatcher"))
            )
        }
        single<CameraConfig> {
            CameraConfig(
                supportsGallery = false,
                supportsExternalMusic = false,
                takePhotoOnTap = false,
                supportsMuteMic = false,
                videoDurations = supportedDurations,
                minRecordedTotalVideoDurationMs = minVideoDuration,
                maxRecordedTotalVideoDurationMs = maxVideoDuration,
                isStartFrontFacingFirst = true,

                isSaveLastCameraFacing = false,
            )
        }

        single<EditorConfig> {
            EditorConfig(
                supportsGalleryOnCover = false,
                supportsGalleryOnTrimmer = false,
                minTotalVideoDurationMs = minVideoDuration,
                maxTotalVideoDurationMs = maxVideoDuration,
            )
        }
        factory<PlayerScaleType>(named("editorVideoScaleType")) {
            PlayerScaleType.FIT_SCREEN_HEIGHT
        }
        single<AspectsProvider> {
            object : AspectsProvider{
                override var availableAspects: List<AspectSettings> = listOf()
                override fun provide(): AspectsProvider.AspectsData {
                    return AspectsProvider.AspectsData(
                        allAspects = availableAspects,
                        default = EditorAspectSettings.Original()
                    )
                }
            }
        }
        single<CameraRecordingModesProvider> {
            object : CameraRecordingModesProvider {
                override var availableModes: Set<RecordMode> = setOf(RecordMode.Video)
            }
        }
        single<PipLayoutProvider> {
            object : PipLayoutProvider {
                override fun provide(
                    insetsOffset: Int,
                    screenSize: Size
                ): List<EditorPipLayoutSettings> {
                    val context = androidContext()
                    return listOf(
                        EditorPipLayoutSettings.LeftRight(),
                        EditorPipLayoutSettings.Floating(
                            context = context,
                            physicalScreenSize = screenSize,
                            topOffsetPx = context.dimen(R.dimen.pip_floating_top_offset) + insetsOffset
                        ),
                        EditorPipLayoutSettings.TopBottom(),
                        EditorPipLayoutSettings.React(
                            context = context,
                            physicalScreenSize = screenSize,
                            topOffsetPx = context.dimen(R.dimen.pip_react_top_offset) + insetsOffset
                        ),
                    )

                }
            }
        }
    }
}

Hi Saileshbro,

Thank you for your question!

Please create a new class:

import com.banuba.sdk.veui.domain.TrimmerAction
import com.banuba.sdk.veui.ui.trimmer.TrimmerActionsProvider

class CustomTrimmerActionsProvider : TrimmerActionsProvider {
override fun provide(hasPipAction: Boolean): List<TrimmerAction> =
    mutableListOf(
        TrimmerAction.SPLIT,
        TrimmerAction.TRIM,
        TrimmerAction.DELETE).also {
        if (hasPipAction) {
            it.add(it.lastIndex, TrimmerAction.ADJUST_VOLUME)
        }
    }

}

And indicate it in the VideoEditorModule:

single <TrimmerActionsProvider>{
    CustomTrimmerActionsProvider()
}

IOS:

Please use this config for the VideoEditorModule:

config.trimVideosConfiguration.editVideoItems = config.trimVideosConfiguration.editVideoItems.filter { $0.type != .rotate }