Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Buffer before when play RTMP


I want to buffer before time when playing . I'm using bufferlength but not working!
here my code :

jwplayer(mplayer).setup({
html5player: parent_img_url+"/jwplayer.html5.js",
flashplayer: parent_img_url+"/jwplayer.swf",
//skin: parent_img_url+"/six.xml",
//skin: "bekle",
width: "100%",
//responsive: true,
//height: 700,
stretching: "exactfit",
aspectratio: "16:9",
/*logo: {
file: site_img_url+"/icons/logo_zui_bg.png",
},*/
captions: {
back: false,
color: '#ffffff',
fontsize: 18,
},
bufferlength: 6,
//startparam: "ec_seek",
events: {
onPlay: function() {
var check = $("#check_tvc").val();
if(check == 0)
{
$("#check_tvc").val(1);
$("#tvc").show();
jwplayer("playertvc").play();
jwplayer("mediaplayer").pause();

//jwplayer(mplayer).play();
var counter = 3;

var counternext = 30;
var interval = setInterval(function() {
counter--;
counternext --;
$("#count-tvc").html(counternext);
if(counter > 0 && counter <30)
{
$("#counter").html(counter);

}
if(counter == 0)
{

$("#count-timer").html('<div onclick="close_tvc()" id="close_tvc">Bá» QUA</div>');

}
if(counternext <= 0)
{
if(is_click_close_ads == 0)
{
close_tvc();
clearInterval(interval);
}


}
// Display 'counter' wherever you want to display it.

}, 1000);

}
else
{
$('html, body').animate({
scrollTop: $("#movie_player").offset().top
}, 2000);
}

}
},
rtmp: {
bufferlength: 6,
securetoken: "eg42Sh8yAp1Kr8r"
},
playlist: [{
tracks: [{
file: sub_title,
label: "Tiếng Việt",
kind: "captions",
"default": true
}],
sources: [{
file: url
}],
//file: url,
image: (imgthumb?imgthumb:""),

}],

primary: "flash",
controls: true,
fallback: false,

});

}

}

my Link : http://phimzui.test.net.vn/phim-rio-2-2014-chu-vet-rio-2-2978.html

9 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you update from 6.3 to 6.8? – https://account.jwplayer.com/

mstrauss

User  
0 rated :

Update finish ! But it's not Working . Can you help me?

Ethan Feldman

JW Player Support Agent  
0 rated :

How did you encode your file?

mstrauss

User  
0 rated :

I using Megui for encode .mkv to .mp4. on server Wowza

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you try to do a quick test encoding using HandBrake? – http://handbrake.fr/, use the default settings and web optimized.

mstrauss

User  
0 rated :

I don't understand ! Using HandBrake help buffer before when play video?

Ethan Feldman

JW Player Support Agent  
0 rated :

I mean that you should use HandBrake to re encode the video to see if it helps with the buffering issue.

mstrauss

User  
0 rated :

i used HandBrake to convert file , but not help buffering issue

Ethan Feldman

JW Player Support Agent  
0 rated :

Did you use default settings + web optimized?

This question has received the maximum number of answers.