İşinizi görür umarım.
function onedioVideo($adres) {
$veri = file_get_contents($adres);
$video = preg_match('#m3u8(.*?)file(.*?)http://video-s3.onedio.com/(.*?).mp4#',$veri,$link);
return "http://video-s3.onedio.com/".$link[3].".mp4";
}Kullanımı da şöyle olacak
echo onedioVideo("http://onedio.com/player/577f8a2cfc98bf227a62d07a/577f8a2cfc98bf227a62d078?i=v&vast=ok");