Jump to content
Fórum Script Brasil
  • 0

Stream de videos hospedados no Google Drive


msaulohenrique
 Share

Question

É o seguinte, estou tentando fazer stream de videos hospedados no Google Drive só que o link que retorna é uma página em branco.

Olha o código!

<?php

if(isset($_GET['link'])) {
	$get = file_get_contents($_GET['link']);
	$cat = explode(',["fmt_stream_map","', $get); $cat = explode('"]', $cat[1]);
	$cat = explode(',', $cat[0]);
	foreach($cat as $link){
		$cat = explode('|', $link);
		$links = str_replace(array('\u003d', '\u0026'), array('=', '&'), $cat[1]);
		if($cat[0] == 37) {$f1080p = $links;}
		if($cat[0] == 22) {$f720p = $links;}
		if($cat[0] == 59) {$f480p = $links;}
		if($cat[0] == 43) {$f360p = $links;}
	}
	if(isset($f1080p)){
		echo '<br>1080p: '.$f1080p.'
<br>720p: '.$f720p.'
<br>480p: '.$f480p.'
<br>360p: '.$f360p;
	} elseif(isset($f720p)){
		echo '<br>720p: '.$f720p.'
<br>480p: '.$f480p.'
<br>360p: '.$f360p;
	} elseif(isset($f480p)){
		echo '<br>480p: '.$f480p.'
<br>360p: '.$f360p;
	} else {
		echo '<br>360p: '.$f360p;
	}
}
?>

Executo assim:

site.com/googledrive.php?link=https://drive.google.com/file/d/0BxYylZLMow8lY3RZeHY4X2FtZTg/preview

Grato a quem poder me ajudar!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.6k
    • Total Posts
      646.2k
×
×
  • Create New...