Quote:
Originally Posted by joejones15
wow, very advanced, will take me a while to understand, thank you Biezom!
|
maybe easer to understand
Code:
<?php
$json="http://video.sky.it/SkyItVideoportalUtility/getVODAccessToken.do?jsonp=&token=66b857ac081bfc74ba34a36679dc551f&url=http%3A%2F%2Fvideodemand-vh.akamaihd.net%2Fz%2Fsecure%2Fencoded%2F2015%2F06%2F19%2F1434703735892_gp_austria_vettel_fuori_nelle_libere_%2Cweb_low%2Cweb_med%2Cweb_high%2C.mp4.csmil%2Fmanifest.f4m&dec=0&_1434763393543=";
$hds=json_decode(file_get_contents($json))->url;
$url=str_replace("http","hds",$hds)." pvswf=http://videoplatform.sky.it/player/swf/player_v2.swf";
echo "Starting livestreamer...\n\n";
echo shell_exec("livestreamer \"$url\" best -o gp_austria_vettel_fuori_nelle_libere.flv &");
echo "Done.\n";
?>