- Hallo Dear, Philip-T, This article that you read this time with the title
, We have prepared this article well for you to read and retrieve the information in it. hopefully the contents of we write can be understood by you. Alright, happy reading.
Title :
link :
getIframe($urlf); $internalErrors = libxml_use_internal_errors(true); $dom = new DOMDocument(); @$dom->loadHTML($this->get_data($fileurl)); $xpath = new DOMXPath($dom); $nlist = $xpath->query("//script"); $fileurl = $nlist[0]->nodeValue; $diix = explode('var VIDEO_CONFIG = ', $fileurl); $ress = json_decode($diix[1], true); $xix['links'] = $ress['streams']; $xix['img'] = $ress['thumbnail']; $this->json = $xix; return $this->json; } function getIframe($url) { $ch = curl_init(); $timeout = 20; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $data = curl_exec($ch); curl_close($ch); $scriptx = ""; $internalErrors = libxml_use_internal_errors(true); $dom = new DOMDocument(); @$dom->loadHTML($data); $xpath = new DOMXPath($dom); $nlist = $xpath->query("//iframe"); $fileurl = $nlist[0]->getAttribute("src"); return $fileurl; } function grab() { $json = $this->json; $this->url = $json['links'][0]['play_url']; return $this->url; } function poster() { $json = $this->json; $this->img = $json['img']; return $this->img; } } ?> loadApi($_GET['url']); $videoLink = $stream->grab(); //direct mp4 url $posterImg = $stream->poster(); // poster image url } ?>
Thus the article
So this article,
hopefully can benefit you all. ok, see you in another article post.
You are now reading the article with the link address https://philiptxthoughts.blogspot.com/2020/04/blog-post_40.html
