[Android] Add remaining strings to remote access

Nicolas Pomepuy git at videolan.org
Tue Jun 25 10:40:42 UTC 2024


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jun 25 11:50:11 2024 +0200| [e3594cd02740693100db9b4e081ed4b472047271] | committer: Nicolas Pomepuy

Add remaining strings to remote access

> https://code.videolan.org/videolan/vlc-android/commit/e3594cd02740693100db9b4e081ed4b472047271
---

 .../src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt    | 3 +++
 .../src/main/java/org/videolan/vlc/webserver/TranslationMapping.kt     | 2 ++
 buildsystem/compile-remoteaccess.sh                                    | 2 +-
 3 files changed, 6 insertions(+), 1 deletion(-)

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 e8b83c36a9..e9623ba118 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
@@ -57,6 +57,7 @@ import io.ktor.server.routing.get
 import io.ktor.server.routing.post
 import kotlinx.coroutines.CoroutineScope
 import kotlinx.coroutines.Dispatchers
+import kotlinx.coroutines.delay
 import kotlinx.coroutines.launch
 import kotlinx.coroutines.withContext
 import org.json.JSONArray
@@ -690,6 +691,7 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
                 return at get
             }
             val gson = Gson()
+            delay(5000)
             call.respondText(gson.toJson(list))
         }
         // List of all the network shares
@@ -718,6 +720,7 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
                         ?: "", false, "", (mediaLibraryItem as MediaWrapper).uri.toString(), true, favorite = mediaLibraryItem.isFavorite))
             }
             val gson = Gson()
+            delay(5000)
             call.respondText(gson.toJson(list))
         }
         //list of folders and files in a path
diff --git a/application/webserver/src/main/java/org/videolan/vlc/webserver/TranslationMapping.kt b/application/webserver/src/main/java/org/videolan/vlc/webserver/TranslationMapping.kt
index 2c9dfafc9a..99ef92f9d4 100644
--- a/application/webserver/src/main/java/org/videolan/vlc/webserver/TranslationMapping.kt
+++ b/application/webserver/src/main/java/org/videolan/vlc/webserver/TranslationMapping.kt
@@ -101,5 +101,7 @@ object TranslationMapping {
         FAVORITES(R.string.favorites),
         STORAGES(R.string.browser_storages),
         LOCAL_NETWORK(R.string.network_browsing),
+        STREAMS(R.string.streams),
+        LOADING(R.string.loading),
     }
 }
\ No newline at end of file
diff --git a/buildsystem/compile-remoteaccess.sh b/buildsystem/compile-remoteaccess.sh
index d5ddf34cda..e50a6270b3 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=4584cea6f493bb70fe31c221981c807b098daada
+  REMOTE_ACCESS_TESTED_HASH=0b303addef690c60e611e8a500d4594c60a4f4de
   REMOTE_ACCESS_REPOSITORY=https://code.videolan.org/videolan/remoteaccess
 
   : ${VLC_REMOTE_ACCESS_PATH:="$(pwd -P)/remoteaccess"}



More information about the Android mailing list