Skip to content

Commit

Permalink
reduce size of video sent in-band, otherwise exception: Data cannot o…
Browse files Browse the repository at this point in the history
…ccupy more than 10240 bytes when serialized
  • Loading branch information
or-else committed Jul 16, 2023
1 parent 6e22fa8 commit d6b8a36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/co/tinode/tindroid/VideoViewFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public class VideoViewFragment extends Fragment implements MenuProvider {

// Max size of the video and poster bitmap to be sent as byte array.
// Otherwise write to temp file.
private static final int MAX_POSTER_BYTES = 4096; // 4K.
private static final int MAX_VIDEO_BYTES = 6144;
private static final int MAX_POSTER_BYTES = 1024*3; // 3K.
private static final int MAX_VIDEO_BYTES = 1024*4; // 4K.

private ExoPlayer mExoPlayer;
// Media source factory for remote videos from Tinode server.
Expand Down

0 comments on commit d6b8a36

Please sign in to comment.