Hi,
I use JWPlayer 7.6.0 for rtmp live streaming. The javascript is like this.
var playerInstance1 = jwplayer("video1");
playerInstance1.setup({
width: 800,
height: 450,
file: "rtmp://192.168.250.48:1935/live/test",
primary: "flash",
controls: false,
autostart: true,
rtmp: {
bufferlength: 0.1
}
});
The bufferlength is set to 0.1, but usually the latency is more than 0.1s and the latency increases gradually with time.
In flash NetStream API reference. There are three related properties, bufferLength, bufferTime and bufferTimeMax.
In my opinion, bufferLength is a read-only property indicates the real buffering time of stream. bufferTime is correspond to the rtmp:bufferlength in JWPlayer tells the player the expecting buffering time. bufferTimeMax means if bufferLength >= bufferTimeMax, the video will play faster to catch the bufferTime.
The flash document suggests when streaming live content, set the bufferTime property to 0. But there is no effect when I set
rtmp: {
bufferlength: 0
}
So I have two questions.
1. Is the bufferlength = 0 is acceptable in JWPlayer 7.6, or the valid minimum value is 0.1?
2. Are there any JWPlayer API can read/write property netstream.bufferLength and netstream.bufferTimeMax. Do they work in JWPlayer 7.6?
Thank you.
↧