mirror of
https://codeberg.org/tom79/Fedilab
synced 2025-01-05 23:37:48 +01:00
no controller for gif
This commit is contained in:
parent
6261eadeb7
commit
ac9eb64368
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user