mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-06-06 11:51:37 +00:00
desktop: development alerts (#2777)
* desktop: development alerts * strings --------- Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
677b75f368
commit
e9f77e1064
+2
-1
@@ -2,6 +2,7 @@ package chat.simplex.common.platform
|
||||
|
||||
import androidx.compose.runtime.MutableState
|
||||
import chat.simplex.common.model.ChatItem
|
||||
import chat.simplex.common.views.usersettings.showInDevelopingAlert
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
|
||||
actual class RecorderNative: RecorderInterface {
|
||||
@@ -18,7 +19,7 @@ actual class RecorderNative: RecorderInterface {
|
||||
|
||||
actual object AudioPlayer: AudioPlayerInterface {
|
||||
override fun play(filePath: String?, audioPlaying: MutableState<Boolean>, progress: MutableState<Int>, duration: MutableState<Int>, resetOnEnd: Boolean) {
|
||||
/*LALAL*/
|
||||
showInDevelopingAlert()
|
||||
}
|
||||
|
||||
override fun stop() {
|
||||
|
||||
+22
-19
@@ -1,7 +1,9 @@
|
||||
package chat.simplex.common.platform
|
||||
|
||||
import androidx.compose.runtime.MutableState
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.ui.graphics.ImageBitmap
|
||||
import chat.simplex.common.views.usersettings.showInDevelopingAlert
|
||||
import java.net.URI
|
||||
|
||||
actual class VideoPlayer: VideoPlayerInterface {
|
||||
@@ -12,39 +14,40 @@ actual class VideoPlayer: VideoPlayerInterface {
|
||||
defaultPreview: ImageBitmap,
|
||||
defaultDuration: Long,
|
||||
soundEnabled: Boolean
|
||||
): VideoPlayer = VideoPlayer()
|
||||
actual fun enableSound(enable: Boolean, fileName: String?, gallery: Boolean): Boolean { TODO() }
|
||||
actual fun release(uri: URI, gallery: Boolean, remove: Boolean) { TODO() }
|
||||
): VideoPlayer = VideoPlayer().also {
|
||||
it.preview.value = defaultPreview
|
||||
it.duration.value = defaultDuration
|
||||
it.soundEnabled.value = soundEnabled
|
||||
}
|
||||
actual fun enableSound(enable: Boolean, fileName: String?, gallery: Boolean): Boolean { /*TODO*/ return false }
|
||||
actual fun release(uri: URI, gallery: Boolean, remove: Boolean) { /*TODO*/ }
|
||||
actual fun stopAll() { /*LALAL*/ }
|
||||
actual fun releaseAll() { /*LALAL*/ }
|
||||
}
|
||||
|
||||
override val soundEnabled: MutableState<Boolean>
|
||||
get() = TODO("Not yet implemented")
|
||||
override val brokenVideo: MutableState<Boolean>
|
||||
get() = TODO("Not yet implemented")
|
||||
override val videoPlaying: MutableState<Boolean>
|
||||
get() = TODO("Not yet implemented")
|
||||
override val progress: MutableState<Long>
|
||||
get() = TODO("Not yet implemented")
|
||||
override val duration: MutableState<Long>
|
||||
get() = TODO("Not yet implemented")
|
||||
override val preview: MutableState<ImageBitmap>
|
||||
get() = TODO("Not yet implemented")
|
||||
override val soundEnabled: MutableState<Boolean> = mutableStateOf(false)
|
||||
override val brokenVideo: MutableState<Boolean> = mutableStateOf(false)
|
||||
override val videoPlaying: MutableState<Boolean> = mutableStateOf(false)
|
||||
override val progress: MutableState<Long> = mutableStateOf(0L)
|
||||
override val duration: MutableState<Long> = mutableStateOf(0L)
|
||||
override val preview: MutableState<ImageBitmap> = mutableStateOf(ImageBitmap(0, 0))
|
||||
|
||||
override fun stop() {
|
||||
TODO("Not yet implemented")
|
||||
/*TODO*/
|
||||
}
|
||||
|
||||
override fun play(resetOnEnd: Boolean) {
|
||||
TODO("Not yet implemented")
|
||||
if (appPlatform.isDesktop) {
|
||||
showInDevelopingAlert()
|
||||
}
|
||||
}
|
||||
|
||||
override fun enableSound(enable: Boolean): Boolean {
|
||||
TODO("Not yet implemented")
|
||||
/*TODO*/
|
||||
return false
|
||||
}
|
||||
|
||||
override fun release(remove: Boolean) {
|
||||
TODO("Not yet implemented")
|
||||
/*TODO*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user