#define ADAPTIVE_VARIANT_DEFAULT_VALUE -1 /* auto */
+/* For PD mode */
+#define PLAYER_PD_EXT_MAX_SIZE_BYTE 1024 * 1024 * 3
+
#define PLAYER_BUS_MSG_DEFAULT_TIMEOUT 500 /* bus msg wait timeout */
#define PLAYER_BUS_MSG_PREPARE_TIMEOUT 10
pre_buffering_time = (pre_buffering_time > 0) ? (pre_buffering_time) : (player->ini.http_buffering_time);
+ player->streamer->is_pd_mode = TRUE;
+
__mm_player_streaming_set_queue2(player->streamer,
element,
TRUE,
- player->ini.http_max_size_bytes + 52428800, // http_max_size_types + 5Mb
+ player->ini.http_max_size_bytes + PLAYER_PD_EXT_MAX_SIZE_BYTE,
pre_buffering_time,
1.0,
player->ini.http_buffering_limit,
streamer->is_buffering = FALSE;
streamer->is_buffering_done = FALSE;
streamer->is_adaptive_streaming = FALSE;
- streamer->buffering_percent = -1;
+ streamer->is_pd_mode = FALSE;
+ streamer->buffering_percent = -1;
streamer->ring_buffer_size = DEFAULT_RING_BUFFER_SIZE;
+
MMPLAYER_FLEAVE();
return;
}
streamer->is_buffering = FALSE;
streamer->is_buffering_done = FALSE;
streamer->is_adaptive_streaming = FALSE;
+ streamer->is_pd_mode = FALSE;
streamer->buffering_percent = -1;
streamer->ring_buffer_size = DEFAULT_RING_BUFFER_SIZE;
if (use_buffering) {
streamer->streaming_buffer_type = BUFFER_TYPE_MUXED;
- if (content_size > 0) {
+ if (content_size > 0 || streamer->is_pd_mode) {
if (streamer->buffering_req.prebuffer_time > 0)
streamer->buffering_req.is_pre_buffering = TRUE;
else