mirror of
https://github.com/samsonjs/media.git
synced 2026-04-07 11:35:46 +00:00
Use consistent buffer sizes in demo app.
This commit is contained in:
parent
d6801389de
commit
7f9b12982d
4 changed files with 5 additions and 5 deletions
|
|
@ -62,7 +62,7 @@ public class DashRendererBuilder implements RendererBuilder {
|
|||
|
||||
private static final int BUFFER_SEGMENT_SIZE = 64 * 1024;
|
||||
private static final int VIDEO_BUFFER_SEGMENTS = 200;
|
||||
private static final int AUDIO_BUFFER_SEGMENTS = 60;
|
||||
private static final int AUDIO_BUFFER_SEGMENTS = 54;
|
||||
private static final int TEXT_BUFFER_SEGMENTS = 2;
|
||||
private static final int LIVE_EDGE_LATENCY_MS = 30000;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import android.net.Uri;
|
|||
public class ExtractorRendererBuilder implements RendererBuilder {
|
||||
|
||||
private static final int BUFFER_SEGMENT_SIZE = 64 * 1024;
|
||||
private static final int BUFFER_SEGMENT_COUNT = 160;
|
||||
private static final int BUFFER_SEGMENT_COUNT = 256;
|
||||
|
||||
private final Context context;
|
||||
private final String userAgent;
|
||||
|
|
|
|||
|
|
@ -51,8 +51,8 @@ import java.util.Map;
|
|||
*/
|
||||
public class HlsRendererBuilder implements RendererBuilder {
|
||||
|
||||
private static final int BUFFER_SEGMENT_SIZE = 256 * 1024;
|
||||
private static final int BUFFER_SEGMENTS = 64;
|
||||
private static final int BUFFER_SEGMENT_SIZE = 64 * 1024;
|
||||
private static final int BUFFER_SEGMENTS = 256;
|
||||
|
||||
private final Context context;
|
||||
private final String userAgent;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class SmoothStreamingRendererBuilder implements RendererBuilder {
|
|||
|
||||
private static final int BUFFER_SEGMENT_SIZE = 64 * 1024;
|
||||
private static final int VIDEO_BUFFER_SEGMENTS = 200;
|
||||
private static final int AUDIO_BUFFER_SEGMENTS = 60;
|
||||
private static final int AUDIO_BUFFER_SEGMENTS = 54;
|
||||
private static final int TEXT_BUFFER_SEGMENTS = 2;
|
||||
private static final int LIVE_EDGE_LATENCY_MS = 30000;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue