No Cache with PHP & FLV
i used following php , called netsream.play() prevent cacheing.
<?php
function nocache($filename){
$ctype="application/octet-stream";
header("expires: 0");
// http/1.1
header("cache-control: no-store, no-cache, must-revalidate");
header("cache-control: post-check=0, pre-check=0", false);
// http/1.0
header("pragma: no-cache");
header("content-type: $ctype");
readfile($filename);
}
$fname = $_get['f'];
nocache($fname);
?>
this work, appear whole flv needs loaded first, before palying. possible make stream.
<?php
function nocache($filename){
$ctype="application/octet-stream";
header("expires: 0");
// http/1.1
header("cache-control: no-store, no-cache, must-revalidate");
header("cache-control: post-check=0, pre-check=0", false);
// http/1.0
header("pragma: no-cache");
header("content-type: $ctype");
readfile($filename);
}
$fname = $_get['f'];
nocache($fname);
?>
this work, appear whole flv needs loaded first, before palying. possible make stream.
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment