Skip to content

Commit

Permalink
set black background for video playback
Browse files Browse the repository at this point in the history
Signed-off-by: parneet-guraya <[email protected]>
  • Loading branch information
parneet-guraya committed Sep 5, 2023
1 parent 5288b18 commit 088d419
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ public void onActivityCreated(Bundle savedInstanceState) {
if (MimeTypeUtil.isVideo(file)) {
binding.exoplayerView.setVisibility(View.VISIBLE);
binding.imagePreview.setVisibility(View.GONE);
binding.getRoot().setBackgroundColor(getResources().getColor(R.color.black,null));
} else {
binding.exoplayerView.setVisibility(View.GONE);
binding.imagePreview.setVisibility(View.VISIBLE);
Expand Down

0 comments on commit 088d419

Please sign in to comment.