diff options
Diffstat (limited to 'org.fox.ttrss/src/main')
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java | 4 | ||||
-rw-r--r-- | org.fox.ttrss/src/main/res/layout/activity_video_player.xml | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java index c8056866..57ec85b7 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/VideoPlayerActivity.java @@ -147,6 +147,10 @@ public class VideoPlayerActivity extends CommonActivity { mediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
@Override
public void onPrepared(MediaPlayer mp) {
+
+ View loadingBar = findViewById(R.id.video_loading);
+ if (loadingBar != null) loadingBar.setVisibility(View.GONE);
+
resizeSurface();
mp.setLooping(true);
mp.start();
diff --git a/org.fox.ttrss/src/main/res/layout/activity_video_player.xml b/org.fox.ttrss/src/main/res/layout/activity_video_player.xml index 00963588..2f81860c 100644 --- a/org.fox.ttrss/src/main/res/layout/activity_video_player.xml +++ b/org.fox.ttrss/src/main/res/layout/activity_video_player.xml @@ -16,6 +16,13 @@ android:layout_gravity="center"
android:id="@+id/video_player"
android:transitionName="TRANSITION:ARTICLE_VIDEO_PLAYER" />
+
+ <ProgressBar
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/video_loading"
+ android:layout_gravity="center"
+ android:indeterminate="true" />
</FrameLayout>
<include layout="@layout/toolbar" android:id="@+id/toolbar" />
|