Play Picasa Video JWPlayer
To understand easily , please watch this video .
error_reporting(E_ERROR | E_PARSE);After
function picasa_direct($link) {
$url = urldecode($link);
if (stristr($url, '#')) list($url, $id) = explode('#', $url);
$data = file_get_contents($url);
if($id) $gach = explode($id, $data);
$gach = explode('{"url":"', ($id)?$gach[7]:$data);
$v360p = urldecode(reset(explode('"', $gach[2])));
$v720p = urldecode(reset(explode('"', $gach[3])));
$v1080p = urldecode(reset(explode('"', $gach[4])));
if(strpos($v1080p, 'redirector.googlevideo.com')){
$js .= 'sources: [{file: "'.$v1080p.'&format=getlink/BaoSora.mp4",label: "1080p"},
{file: "'.$v720p.'&format=getlink/BaoSora.mp4",label: "720p"},
{file: "'.$v360p.'&format=getlink/BaoSora.mp4",label: "360p","default": "true"}]';
} elseif(strpos($v720p, 'redirector.googlevideo.com')){
$js .= 'sources: [{file: "'.$v720p.'&format=getlink/BaoSora.mp4",label: "720p"},
{file: "'.$v360p.'&format=getlink/BaoSora.mp4",label: "360p","default": "true"}]';
} else {
$js .= 'file: "'.$v360p.'&format=getlink/BaoSora.mp4"';
}
return $js;
}
echo "
<script src='http://jwpsrv.com/library/SWlTcn0MEeO43SIACi0I_Q.js'></script>
<div id='playeruMVMOjYqLNLj'></div>
<script type='text/javascript'>
jwplayer('playeruMVMOjYqLNLj').setup({
".picasa_direct('https://picasaweb.google.com/117116947522912120929/AnhNhoEm2012Full21Tap#6110189436068884690').",
image: '//www.longtailvideo.com/content/images/jw-player/lWMJeVvV-876.jpg',
width: '100%',
aspectratio: '16:9',
autostart: 'true',
repeat: 'true'
});
</script>
";
https://lh3.googleusercontent.com/l4p3jJFvMIeoDWIJnKp_usK_TBGpCHSRN02DxLma4Q=m18
starts get_headers and get necessary links. .
Play Picasa Video JWPlayer
Reviewed by Unknown
on
Monday, July 27, 2015
Rating:
Reviewed by Unknown
on
Monday, July 27, 2015
Rating:

I do not understand , how to use it. I have an example link : "https://picasaweb.google.com/100935408066587470242/TheOtherGuy?authkey=Gv1sRgCK79mvPVs-bvrgE#6160005764914093714". please help me , how to play it in jwplayer . I use wordpress , I'm puzzled how to embed that can be played on jwplayer . Sorry my English is not good
ReplyDelete