Enable seeking a recorded voice message (#1758)
This commit is contained in:
parent
941c196dcf
commit
7a4adf3e28
8 changed files with 261 additions and 95 deletions
|
|
@ -108,7 +108,7 @@ internal fun VoiceMessagePreview(
|
|||
playbackProgress = playbackProgress,
|
||||
showCursor = showCursor,
|
||||
waveform = waveform,
|
||||
seekEnabled = false, // TODO enable seeking
|
||||
seekEnabled = true,
|
||||
onSeek = onSeek,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
plugins {
|
||||
id("io.element.android-library")
|
||||
id("io.element.android-compose-library")
|
||||
alias(libs.plugins.anvil)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue