[Android] Implement the remote access API change on media duration
Nicolas Pomepuy
git at videolan.org
Mon Sep 2 10:00:58 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Sep 2 10:13:30 2024 +0200| [6e661fe7b5595e6e86f08a44d368cd73a8513d3c] | committer: Nicolas Pomepuy
Implement the remote access API change on media duration
> https://code.videolan.org/videolan/vlc-android/commit/6e661fe7b5595e6e86f08a44d368cd73a8513d3c
---
.../src/main/java/org/videolan/vlc/webserver/RemoteAccessServer.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessServer.kt b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessServer.kt
index b5cce11085..4b104a7103 100644
--- a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessServer.kt
+++ b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessServer.kt
@@ -744,7 +744,7 @@ class RemoteAccessServer(private val context: Context) : PlaybackService.Callbac
data class WSBookmark(val title: String, val time: Long)
data class PlayQueue(val medias: List<PlayQueueItem>) : WSMessage("play-queue")
- data class PlayQueueItem(val id: Long, val title: String, val artist: String, val length: Long, val artworkURL: String, val playing: Boolean, val resolution: String = "", val path: String = "", val isFolder: Boolean = false, val progress: Long = 0L, val played: Boolean = false, var fileType: String = "", val favorite: Boolean = false)
+ data class PlayQueueItem(val id: Long, val title: String, val artist: String, val duration: Long, val artworkURL: String, val playing: Boolean, val resolution: String = "", val path: String = "", val isFolder: Boolean = false, val progress: Long = 0L, val played: Boolean = false, var fileType: String = "", val favorite: Boolean = false)
data class WebSocketAuthorization(val status:String, val initialMessage:String) : WSMessage("auth")
data class Volume(val volume: Int) : WSMessage("volume")
data class PlayerStatus(val playing: Boolean) : WSMessage("player-status")
More information about the Android
mailing list