Código: Seleccionar todo
v.php: http://robalo.esy.es/img/v.php
Para enlazarlo en launcher.py:
tempurl_1 = "http://robalo.esy.es/img/v.php?v="
a.php: http://robalo.esy.es/img/a.php
Para enlazarlo en launcher.py:
tempurl = "http://robalo.esy.es/img/a.php?a="+senderitem.url
Contenido v.php:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function showInnerDat(){
var matches = /"file" : "(.+?)",/;
var url = new Array();
var m = "GET";
if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
var xmlhttp = new XMLHttpRequest();
}
else{// code for IE6, IE5
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange
=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
url = xmlhttp.responseText.match(matches);
window.location.href="a.php?a="+url[1]+"&b=<?php echo $_GET['b']; ?>";
}
}
xmlhttp.open(m,'<?php echo $_GET["v"]; ?>',false);
xmlhttp.send();
}
</script>
</head>
<body onload="showInnerDat()">
</body>
</html>
Contenido a.php:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<center>
<?
if($_GET['b'] == "1"){
?>
<!-- Firefox, Chrome, Safari-->
<embed
type="application/x-vlc-plugin"
width="320"
height="240"
autoplay="yes"
controls="controls"
target="<?=$_GET['a']?>"
>
</embed>
<?
}
if($_GET['b'] == "2"){
?>
<!-- iPhone OS 7, Tablet Android -->
<video
type="application/x-mplayer2"
width="320"
height="240"
autoplay="yes"
controls="controls"
src="<?=$_GET['a']?>"
>
</video>
<?
}
if($_GET['b'] == "3"){
?>
<!-- IE -->
<object
classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
type="application/x-vlc-plugin"
width="320"
height="240"
>
<param name="filename" value="<?=$_GET['a']?>">
<param name="animationatstart" value="true">
<param name="transparentatstart" value="true">
<param name="autostart" value="true">
<param name="showcontrols" value="true">
<param name="ShowStatusBar" value="true">
<param name="windowlessvideo" value="true">
</object>
<?
}
?>
</center>
</body>
</html>