diff --git a/app/src/main/java/asgardius/page/s3manager/VideoPlayer.java b/app/src/main/java/asgardius/page/s3manager/VideoPlayer.java index 8879125..7a220d5 100644 --- a/app/src/main/java/asgardius/page/s3manager/VideoPlayer.java +++ b/app/src/main/java/asgardius/page/s3manager/VideoPlayer.java @@ -57,10 +57,15 @@ public class VideoPlayer extends AppCompatActivity { if (cause instanceof HttpDataSource.HttpDataSourceException) { // An HTTP error occurred. //System.out.println("Playback error F"); - Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_load_fail), Toast.LENGTH_SHORT).show(); - player.release(); - finish(); + Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_conn_fail), Toast.LENGTH_SHORT).show(); } + else { + // An HTTP error occurred. + //System.out.println("Playback error F"); + Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_wrong_type), Toast.LENGTH_SHORT).show(); + } + player.release(); + finish(); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index cce6bc5..70f8e23 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,7 +9,8 @@ peces felices.mp4 File Explorer Test Video Test - Cannot load media file + Cannot retrieve media file + Invalid media file Cannot connect to server Dummy Button DUMMY\nCONTENT