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.



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support