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
),
)
}
}
}
}
}