diff --git a/README.md b/README.md
index e6e6375..66889bd 100644
--- a/README.md
+++ b/README.md
@@ -15,15 +15,13 @@ This app is based on Asgardius S3 Manager
This app is a work in progress, so it have some bugs that need to be fixed
-You need to setup a pdf.js server to use pdf viewer. Just download latest version from official website and upload to any web server with ssl on same root domain than S3 server (can be same subdomain or a different one). Then set url to pdfjs root folder like https://example.com/pdfjs-dist
-
[](https://f-droid.org/packages/asgardius.page.s3manager/)
+ height="80">](https://f-droid.org/packages/asgardius.page.s3music/)
[](https://play.google.com/store/apps/details?id=asgardius.page.s3manager)
+ height="80">](https://play.google.com/store/apps/details?id=asgardius.page.s3music)
F-droid release may take a few days to get updated [More info here](https://www.f-droid.org/en/docs/FAQ_-_App_Developers/#ive-published-a-new-release-why-is-it-not-in-the-repository)
diff --git a/app/src/main/java/asgardius/page/s3music/VideoPlayer.java b/app/src/main/java/asgardius/page/s3music/VideoPlayer.java
index e01232e..dcf9d25 100644
--- a/app/src/main/java/asgardius/page/s3music/VideoPlayer.java
+++ b/app/src/main/java/asgardius/page/s3music/VideoPlayer.java
@@ -29,6 +29,7 @@ import com.google.android.exoplayer2.database.StandaloneDatabaseProvider;
import com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector;
import com.google.android.exoplayer2.source.ProgressiveMediaSource;
import com.google.android.exoplayer2.ui.PlayerNotificationManager;
+import com.google.android.exoplayer2.ui.StyledPlayerControlView;
import com.google.android.exoplayer2.ui.StyledPlayerView;
import com.google.android.exoplayer2.upstream.DefaultHttpDataSource;
import com.google.android.exoplayer2.upstream.cache.CacheDataSource;
@@ -47,6 +48,7 @@ public class VideoPlayer extends AppCompatActivity {
// creating a variable for exoplayerview.
protected StyledPlayerView playerView;
+ protected StyledPlayerControlView controlView;
private WifiManager.WifiLock mWifiLock;
private PowerManager.WakeLock mWakeLock;
private PowerManager powerManager;
@@ -170,6 +172,7 @@ public class VideoPlayer extends AppCompatActivity {
standaloneDatabaseProvider = new StandaloneDatabaseProvider(this);
maxCacheSize = (long)videocache * 1024 * 1024;
playerView = findViewById(R.id.player_view);
+ controlView = findViewById(R.id.control_view);
// creating a variable for exoplayer
player = new ExoPlayer.Builder(this).setLoadControl(loadControl).build();
player.setAudioAttributes(audioAttributes, true);
@@ -181,6 +184,7 @@ public class VideoPlayer extends AppCompatActivity {
evictor,
standaloneDatabaseProvider);
playerView.setPlayer(player);
+ controlView.setPlayer(player);
playerView.setUseController(false);
//MediaItem mediaItem = MediaItem.fromUri(videoURL);
@@ -250,8 +254,10 @@ public class VideoPlayer extends AppCompatActivity {
public void onIsPlayingChanged(boolean isPlaying) {
if(player.isPlaying()) {
playpause.setImageDrawable(pause);
+ playpause.setContentDescription(getResources().getString(R.string.pause));
} else {
playpause.setImageDrawable(play);
+ playpause.setContentDescription(getResources().getString(R.string.play));
}
Player.Listener.super.onIsPlayingChanged(isPlaying);
}
diff --git a/app/src/main/res/layout/activity_bucket_policy.xml b/app/src/main/res/layout/activity_bucket_policy.xml
deleted file mode 100644
index 5912f8c..0000000
--- a/app/src/main/res/layout/activity_bucket_policy.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_cors_config.xml b/app/src/main/res/layout/activity_cors_config.xml
deleted file mode 100644
index a5b6c51..0000000
--- a/app/src/main/res/layout/activity_cors_config.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_create_bucket.xml b/app/src/main/res/layout/activity_create_bucket.xml
deleted file mode 100644
index 701c67f..0000000
--- a/app/src/main/res/layout/activity_create_bucket.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_downloader.xml b/app/src/main/res/layout/activity_downloader.xml
deleted file mode 100644
index 000f473..0000000
--- a/app/src/main/res/layout/activity_downloader.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_image_viewer.xml b/app/src/main/res/layout/activity_image_viewer.xml
deleted file mode 100644
index 1ebad8f..0000000
--- a/app/src/main/res/layout/activity_image_viewer.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_object_info.xml b/app/src/main/res/layout/activity_object_info.xml
deleted file mode 100644
index f38821d..0000000
--- a/app/src/main/res/layout/activity_object_info.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_object_policy.xml b/app/src/main/res/layout/activity_object_policy.xml
deleted file mode 100644
index 2325102..0000000
--- a/app/src/main/res/layout/activity_object_policy.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_share.xml b/app/src/main/res/layout/activity_share.xml
deleted file mode 100644
index f638260..0000000
--- a/app/src/main/res/layout/activity_share.xml
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_text_viewer.xml b/app/src/main/res/layout/activity_text_viewer.xml
deleted file mode 100644
index 64d4b63..0000000
--- a/app/src/main/res/layout/activity_text_viewer.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_uploader.xml b/app/src/main/res/layout/activity_uploader.xml
deleted file mode 100644
index 41f1c65..0000000
--- a/app/src/main/res/layout/activity_uploader.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_video_player.xml b/app/src/main/res/layout/activity_video_player.xml
index aac575c..266d9fa 100644
--- a/app/src/main/res/layout/activity_video_player.xml
+++ b/app/src/main/res/layout/activity_video_player.xml
@@ -24,11 +24,20 @@
android:layout_width="match_parent"
android:layout_height="200dp"
android:orientation="vertical"
- android:layout_weight="2" >
+ android:layout_weight="0" >
+
+
@@ -39,7 +48,8 @@
android:background="#000000"
android:scaleType="centerCrop"
android:layout_marginHorizontal="20dp"
- app:srcCompat="@drawable/previous" />
+ app:srcCompat="@drawable/previous"
+ android:contentDescription="@string/previous" />
+ app:srcCompat="@drawable/play"
+ android:contentDescription="@string/play" />
+ app:srcCompat="@drawable/next"
+ android:contentDescription="@string/next" />
diff --git a/app/src/main/res/layout/player_custom_controls.xml b/app/src/main/res/layout/player_custom_controls.xml
new file mode 100644
index 0000000..1b37bba
--- /dev/null
+++ b/app/src/main/res/layout/player_custom_controls.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/menu/bucket_menu.xml b/app/src/main/res/menu/bucket_menu.xml
deleted file mode 100644
index 5ff27bf..0000000
--- a/app/src/main/res/menu/bucket_menu.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
\ No newline at end of file
diff --git a/app/src/main/res/menu/folder_menu.xml b/app/src/main/res/menu/folder_menu.xml
deleted file mode 100644
index caaf8b8..0000000
--- a/app/src/main/res/menu/folder_menu.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
\ No newline at end of file
diff --git a/app/src/main/res/menu/object_menu.xml b/app/src/main/res/menu/object_menu.xml
deleted file mode 100644
index fc1082f..0000000
--- a/app/src/main/res/menu/object_menu.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
\ No newline at end of file
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 778359f..1463075 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -6,16 +6,6 @@
ImagenLa base de datos está corrupta, favor de reinstalar la appEsta característica aún no es implementada
- Establezca el nombre del nuevo bucket
- Nombre del bucket
- Se requiere un nombre para el bucket
- Compartir archivo
- Descargar archivo
- Descargar archivos
- Cancelar descarga
- Archivo descargado exitosamente
- Subir archivo en este bucket
- Subir carpeta en este bucketSu dispositivo no es compatible con esta característicaNo se encuentra el uri del archivoSubir archivo
@@ -31,6 +21,7 @@
Subida fallidaÉxitoCrear nuevo bucket
+ La fecha de caducidad debe ser inferior a 7 díasBucket creado exitosamenteSubir archivo en el directorio actualSubir carpeta en el directorio actual
@@ -66,20 +57,11 @@
Acerca de esta appservidor pdfjsNecesita configurar un servidor pdf.js
- D
- HH
- MM
- Fecha de expiración
- Expira dentro de
- Crear enlace
- La fecha de caducidad debe ser inferior a 7 díasTamaño del archivoPropiedades
- Abir enTamaño de la carpetaTamaño del bucketArchivos
- Debe establecer una fecha de expiración para compartir archivosDescarga canceladaSubida canceladaAjustes
@@ -94,37 +76,10 @@
Reproduccion de videoeste valor no puede ser ceroAcceso de estilo de ruta
- Política CORS
- Orígenes permitidos
- Permitidos todos los orígenes
- Uso de endpoint PDF permitido
- Uso de endpoint PDF no permitido
- Política CORS no encontrada
- Permitir todo
- Permitir pdf
- Eliminar CORS
- No se pudo cambiar la política
- Política cambiada exitosamente
- Descargar contenido del bucket
- Descargar contenido de la carpeta
- Archivos descargados exitosamente
- Copiar nombre al portapapeles
- Copiado al portapapeles
- Calculando tamaño de la carpeta
- Imagen demasiado grande
- Guardar enlaces en archivo
- Copiar enlaces al potapapeles
- Archivo guardado exitosamente
- Permisos de acceso
- Bucket público
- Bucket privado
- Objeto público
- Objeto privado
- Política personalizada
- Establecer como público
- Establecer como privado
- Política establecida por carpeta padre
- Fecha de expiración no requeridaLimpiar Cache de VideoCache limpiada exitosamente
+ Reproducir
+ Pausa
+ Anterior
+ Siguiente
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 4c451a3..df8bfc9 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -7,30 +7,9 @@
Bucket listObject listImage
- Expiration date
- Expires within
- HH
- MM
- D
- Create linkExpiration date must be at most 7 days
- You must set an expiration date to share filesLocal database is corrupted. Please reinstall this appThis feature is not implemented yet
- Set new bucket name
- Bucket name
- A bucket name is required
- Share file
- Open in
- Download file
- Download files
- Download bucket content
- Download folder content
- Cancel download
- File downloaded successfully
- Files downloaded successfully
- Upload file to this bucket
- Upload folder to this bucketYour device is not compatible with this featureFile uri not foundUpload file
@@ -99,34 +78,10 @@
Video PlaybackThis value cannot be zeroPath style access
- CORS policy
- Allowed origins
- All origins allowed
- PDF Endpoint allowed
- PDF Endpoint not allowed
- CORS policy not found
- Allow all
- Allow pdf
- Delete CORS
- Cannot change policy
- Policy changed successfully
- Copy name to clipboard
- Copied to clipboard
- Calculating folder size
- Picture too big
- Save links to file
- File saved successfully
- Copy links to clipboard
- Access permissions
- Public bucket
- Private bucket
- Public object
- Private object
- Custom policy
- Set as public
- Set as private
- Policy set by parent folder
- Expiration date not requiredClear Video CacheCache clean successfully
+ Play
+ Pause
+ Previous
+ Next
\ No newline at end of file