Skip to content

Commit

Permalink
Increase UDP buffer size - attempting to fix microfreezes (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexodessa authored Nov 18, 2024
1 parent 14b0c56 commit 6f27d8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/videonative/src/main/cpp/VideoPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ class VideoPlayer {
private:
void onNewNALU(const NALU &nalu);

//Assumptions: Max bitrate: 40 MBit/s, Max time to buffer: 100ms
//5 MB should be plenty !
static constexpr const size_t WANTED_UDP_RCVBUF_SIZE = 1024 * 1024 * 5;
//Assumptions: Max bitrate: 40 MBit/s, Max time to buffer: 500ms
//25 MB should be plenty !
static constexpr const size_t WANTED_UDP_RCVBUF_SIZE = 1024 * 1024 * 25;
// Retrieve settings from shared preferences
enum SOURCE_TYPE_OPTIONS {
UDP, FILE, ASSETS, VIA_FFMPEG_URL, EXTERNAL
Expand Down

0 comments on commit 6f27d8e

Please sign in to comment.