no controller for gif

This commit is contained in:
Thomas 2023-03-12 18:10:45 +01:00
parent 6261eadeb7
commit ac9eb64368

View file

@ -257,8 +257,10 @@ public class FragmentMedia extends Fragment {
.createMediaSource(mediaItem);
}
player = new ExoPlayer.Builder(requireActivity()).build();
if (type.equalsIgnoreCase("gifv"))
if (type.equalsIgnoreCase("gifv")) {
player.setRepeatMode(Player.REPEAT_MODE_ONE);
binding.mediaVideo.setUseController(false);
}
binding.mediaVideo.setPlayer(player);
binding.loader.setVisibility(View.GONE);
binding.mediaPicture.setVisibility(View.GONE);