によって提供されている場合、jPlayerは再生中にメディアをキャッシュしません。つまり、再生中に残りの曲をキャッシュしません。出力がPHPスクリプト
JS:
$('#jplayer-9999').jPlayer({
ready: function() {
$(this).jPlayer('setMedia', {
oga: 'http://mysite/getogg.php',
}).jPlayer('play', 15);
$(this).bind($.jPlayer.event.timeupdate, function(event) {
if(event.jPlayer.status.currentTime > 55) {
$(this).jPlayer('play', 15);
}
});
},
play: function() {
$(this).jPlayer('pauseOthers');
},
cssSelectorAncestor: '#jp_container_9999',
swfPath: '/js/jplayer',
supplied: 'oga',
preload: 'auto'
});
PHP(getogg.php):
<?php
header('Content-type: audio/ogg');
$output = readfile("/oggs/1234.ogg");
echo $output;
?>
しかし直接リンクがうまく動作し、歌があり、キャッシング: 男鹿:「のhttp://個人用サイト/ oggs/1234.ogg '
この問題の解決にお役立てください。
プログレッシブバッファリングを意味しますか?また、単に高いメモリ使用量は、正しいキャッシュ・ヘッダーを設定し、関数fgetsで小さな塊を吐き出すと、バッファ –
@LawrenceCheroneをクリアする必要があります言及しないように問題を引き起こすように、ファイル全体をも吐き出しは:あなたが例を提供することができ、合理的に聞こえますか? –