[Android] Remote access: use new video groups/folder API and bump the hash
Nicolas Pomepuy
git at videolan.org
Thu Jun 27 14:31:54 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jun 27 15:20:35 2024 +0200| [d36c04d56643c8c81e163d3138cca77a2ccb47d2] | committer: Nicolas Pomepuy
Remote access: use new video groups/folder API and bump the hash
> https://code.videolan.org/videolan/vlc-android/commit/d36c04d56643c8c81e163d3138cca77a2ccb47d2
---
.../src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt | 4 ++--
.../src/main/java/org/videolan/vlc/webserver/RemoteAccessServer.kt | 2 +-
buildsystem/compile-remoteaccess.sh | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
index 69ba9b09c7..927d2ba054 100644
--- a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
+++ b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
@@ -1432,7 +1432,7 @@ fun MediaWrapper.toPlayQueueItem(defaultArtist: String = "") = RemoteAccessServe
fun Folder.toPlayQueueItem(context: Context) = RemoteAccessServer.PlayQueueItem(id, title, context.resources.getQuantityString(org.videolan.vlc.R.plurals.videos_quantity, mediaCount(Folder.TYPE_FOLDER_VIDEO), mediaCount(Folder.TYPE_FOLDER_VIDEO))
?: "", 0, artworkMrl
- ?: "", false, "", videoType = "video-folder", favorite = isFavorite)
+ ?: "", false, "", fileType = "video-folder", favorite = isFavorite)
fun VideoGroup.toPlayQueueItem(context: Context) = RemoteAccessServer.PlayQueueItem(id, title, if (this.mediaCount() > 1) context.resources.getQuantityString(org.videolan.vlc.R.plurals.videos_quantity, this.mediaCount(), this.mediaCount()) else "length", 0, artworkMrl
- ?: "", false, "", played = presentSeen == presentCount && presentCount != 0, videoType = "video-group", favorite = isFavorite)
\ No newline at end of file
+ ?: "", false, "", played = presentSeen == presentCount && presentCount != 0, fileType = "video-group", favorite = isFavorite)
\ No newline at end of file
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 4ffc1be8be..9de591d241 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
@@ -747,7 +747,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 videoType: String? = null, val favorite: Boolean = false)
+ 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 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")
diff --git a/buildsystem/compile-remoteaccess.sh b/buildsystem/compile-remoteaccess.sh
index 4d688875e6..ae00192daa 100755
--- a/buildsystem/compile-remoteaccess.sh
+++ b/buildsystem/compile-remoteaccess.sh
@@ -57,7 +57,7 @@ done
##############################
diagnostic "Setting up the Remote Access project"
- REMOTE_ACCESS_TESTED_HASH=c2949a959d9251493945ee5bd8e7604d29de394e
+ REMOTE_ACCESS_TESTED_HASH=27d7222bb43bbc89161408419cba3eb80db65d7a
REMOTE_ACCESS_REPOSITORY=https://code.videolan.org/videolan/remoteaccess
: ${VLC_REMOTE_ACCESS_PATH:="$(pwd -P)/remoteaccess"}
More information about the Android
mailing list