Enable seeking a recorded voice message (#1758)

This commit is contained in:
jonnyandrew 2023-11-10 09:18:01 +00:00 committed by GitHub
parent 941c196dcf
commit 7a4adf3e28
8 changed files with 261 additions and 95 deletions

View file

@ -108,7 +108,7 @@ internal fun VoiceMessagePreview(
playbackProgress = playbackProgress,
showCursor = showCursor,
waveform = waveform,
seekEnabled = false, // TODO enable seeking
seekEnabled = true,
onSeek = onSeek,
)
}

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
plugins {
id("io.element.android-library")
id("io.element.android-compose-library")
alias(libs.plugins.anvil)
}

View file

@ -16,9 +16,11 @@
package io.element.android.libraries.voicerecorder.api
import androidx.compose.runtime.Immutable
import java.io.File
import kotlin.time.Duration
@Immutable
sealed interface VoiceRecorderState {
/**
* The recorder is idle and not recording.