Start Video Files After Checking if All Fully Loaded(Buffered)
<p>Using jwPlaye 6, I am running this code to display two videos which must start simultaneously.the problem is on of the video file is always bigger size than the other and this causes some delays at the start of that file which is not perfect presenting.Besides sometime there are some pauses at the beginning of videos which make video presentation look awful.
Here is the code I have:</p>

<pre><code>enter code here
&lt;script type="text/javascript"&gt;
 jQuery(function ($) {
 function stateListener(obj) {
    $('#state_change').text(obj.oldstate + ' -&gt; ' + obj.newstate);    
}
function timeListener(obj) {
    $('#position').text(obj.position);
}
function playerReady1(obj) {
    // Enable buttons when player is ready
    $('button').removeAttr('disabled');
}
function playerReady2(obj) {
    console.log('Player ', obj.id, ' is ready.');
}

$('#player1').jwPlayer({
    //debug: 'console',
    swf: 'player.swf',
    autostart: 'true',
    file: 'video.flv',
    image: 'http://i.ytimg.com/vi/rcyzubFvBsA/0.jpg',
    height: 240,
    width: 320,
    playerready: playerReady1,
    timelistener: timeListener,
    statelistener: stateListener,
});
$('#play_button').click(
    function () { $('#player1').jwPlayer('play'); }
);
$('#pause_button').click(
    function () { $('#player1').jwPlayer('pause'); }
);
$('#back_button').click(
    function () {
        var position = $('#player1').jwPlayer('get', 'position');
        $('#player1').jwPlayer('seek', position - 10);
    }
);
$('#forward_button').click(
    function () {
        var position = $('#player1').jwPlayer('get', 'position');
        $('#player1').jwPlayer('seek', position + 10);
    }
);

$('#player2').jwPlayer({
    //debug: 'console',
    id: 'jwPlayer2',
    swf: 'player.swf',
    file: 'video.flv',
    autostart: 'true',
    image: 'preview.jpg',
    height: 180,
    width: 240,
    playerready: playerReady2
});
});
&lt;/script&gt;
</code></pre>

<p>I need to use a jQuery load function to check both videos have been loaded fully and starts them at same time.Can you please let me know how I can do this? </p>
