mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-17 05:28:01 +00:00
force re-render after upload so all mp4s can be viewed on mobile
This commit is contained in:
@@ -509,7 +509,7 @@ class PictshareModel extends Model
|
|||||||
unlink($tempfile);
|
unlink($tempfile);
|
||||||
|
|
||||||
//re-render new mp4 by calling the re-encode script
|
//re-render new mp4 by calling the re-encode script
|
||||||
if($type=='mp4' && strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
|
if($type=='mp4')
|
||||||
{
|
{
|
||||||
system("nohup php ".ROOT.DS.'tools'.DS.'re-encode_mp4.php force '.$hash." > /dev/null 2> /dev/null &");
|
system("nohup php ".ROOT.DS.'tools'.DS.'re-encode_mp4.php force '.$hash." > /dev/null 2> /dev/null &");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user